家里
netsh interface ip set address name="本地连接" source=static addr=192.168.1.2 mask=255.255.255.0 gateway=192.168.1.1 gwmetric=auto
办公室
netsh interface ip set address name="本地连接 2" source=dhcp
netsh interface ip set dns name="本地连接 2" source=dhcp
家里
netsh interface ip set address name="本地连接" source=static addr=192.168.1.2 mask=255.255.255.0 gateway=192.168.1.1 gwmetric=auto
办公室
netsh interface ip set address name="本地连接 2" source=dhcp
netsh interface ip set dns name="本地连接 2" source=dhcp