dhcp:
netsh interface ip set address "本地连接 4" dhcp
ipconfig /release "本地连接 4"
static ip:
rem netsh interface ip set address "本地连接 4" static 192.168.0.4 255.255.255.0 192.168.1.1 1
REM netsh interface ip set address "本地连接 4" static 192.168.2.4 255.255.255.0 none
netsh interface ip set address "本地连接 4" static 192.168.2.4 255.255.255.0 none
switch between dhcp and static ip in windows,布布扣,bubuko.com
switch between dhcp and static ip in windows
原文:http://blog.csdn.net/llrraa2010/article/details/20863123