1. 单次修改IP,批处理文件 newIP.bat @echo =========== Changing to IP : 222.192.41.%1 netsh interface ip set address "以太网" static 222.192.41.%1 255.255.255.0 222.192.41.1 usage: newIP num ; 2. 循环修改,批处理文件 callTop.bat @echo off set varIP=2 :continue echo 执行第…
例子: 本地连接修改IP netsh interface ip delete dns "本地连接" addr=allnetsh interface ip add dns "本地连接" addr=202.101.172.35netsh interface ip add dns "本地连接" addr=202.101.172.36netsh interface ip add address "本地连接" 192.168.0.133…