详细内容如下:
autochip.bat
@echo off
ping -n 1 133.184.15.8|find "out" && call chgto2.bat
ping -n 1 133.184.15.2|find "out" && call chgto8.bat
chgto2.bat
@echo off
::Change the gateway to 133.184.15.2
netsh interface ip set address 本地连接 static 133.184.15.233 255.255.255.0 133.184.15.2 1
chgto8.bat
@echo off
::Change the gateway to 133.184.15.8
netsh interface ip set address 本地连接 static 133.184.15.233 255.255.255.0 133.184.15.8 1
修改IP和子网掩码类似