互联网

当前位置 /首页/游戏数码/互联网/列表

快速设置与切换IP地址

对于需要经常设置IP与重复切换网卡的用户来说,一步一步到本地连接设置项太过麻烦,用批处理来做是个不错的选择

快速设置与切换IP地址

操作方法

(01)首先查看需要设置的本地连接名称,如果网卡只有一个一般为【本地连接】

(02)先是本地连接的【开启】与【关闭】设置新建两个TXT文本,输入以下命令,打开本地连接用enabled,关闭用disabled两个二选一,输入后将txt后缀修改为BATnetsh interface set interface 本地连接 enablednetsh interface set interface 本地连接 disabled

(03)下面设置动态IP,自动获取IPnetsh interface ip set address 本地连接 dhcp

(04)静态IP设置方法实例:设置IP为子网掩码:网关:DNS: 备用DNS:netsh interface ip set address 本地连接 static netsh interface ip set dns 本地连接 static netsh interface ip add dns 本地连接 index=2可以多设置几个类似的静态IP批处理文件就可以根据情况自由切换了

TAG标签:ip 切换 地址 设置 #