Echo off
Netsh interface IP Set Address "本地连接" Static 192.168.1.203 255.255.255.0 192.168.1.1 1
Netsh interface IP Set dns "本地连接" static 192.168.1.1 primary
Echo changed ip to office 192.168.1.203 press any key ,go on
Pause
@Echo off
Netsh interface IP Set Address "本地连接" Static 192.168.0.203 255.255.255.0 192.168.0.1 1
Netsh interface IP Set dns "本地连接" static 192.168.0.1 primary
Echo changed ip to home 192.168.0.203 press any key ,go on
Pause