写两个bat文件,内容分别如下:
file1.bat:
netsh interface ip set address 本地连接 static 193.168.17.70 255.255.255.0 193.168.17.1
netsh interface ip set dns 本地连接 static 192.168.30.30
echo. & exit
file2.bat:
netsh interface ip set address 本地连接 static 192.168.90.12 255.255.255.0 192.168.90.1
netsh interface ip set dns 本地连接 static 192.168.30.30
echo. & exit