如何用批处理给一块网卡增加双IP

注意不是两个IP来回切换,这个网上多的是,而且也有软件
我希望用批处理实现如图的效果而不用手动添加
平时是通过手动增加的如图
http://static2.photo.sina.com.cn/middle/50afe898g5ec14c366b41&000

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
温馨提示:答案为网友推荐,仅供参考
相似回答