
netsh interface ip set address "本地连接" static 192.168.1.200 255.255.255.0 192.168.1.1 1
netsh interface ip add address "本地连接" 192.168.0.200 255.255.255.0 192.168.0.1 2
netsh interface ip set dns "本地连接" static 222.222.222.222
netsh interface ip add dns "本地连接" 222.222.202.202
ipconfig /flushdns
ipconfig /all
pause
在XP中代码有效
netsh interface ip set address name="本地连接" source=static addr=10.161.0.32 mask=255.255.255.0netsh interface ip add address name="本地连接" addr=1.1.1.1 mask=255.255.255.0
netsh interface ip set address name="本地连接" gateway=10.161.0.1 gwmetric=0
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)