win7网卡IP切换脚本

制作为bat文件,运行即可

11代表网卡序号

netsh interface ip set address 11 static 192.168.0.5 255.255.255.0 192.168.0.1
netsh interface ip set dns 11 static 8.8.8.8
netsh interface ip add dns 11 8.8.4.4 index=2
pause

posted @ 2017-01-17 17:15  Jacob_tian  阅读(379)  评论(0编辑  收藏  举报