如何一键设置双ip?最好是批处理形式的。

如何一键设置双ip?最好是批处理形式的。,第1张

@echo off

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.0

netsh 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


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/bake/11881650.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-19
下一篇2023-05-19

发表评论

登录后才能评论

评论列表(0条)

    保存