#设置新的IP地址/掩码/网关
netsh interface ip set address name="Local Area Connection" source=static addr=192.168.100.100 mask=255.255.0.0 gateway=192.168.100.200
#设置新IP地址对应的第一个DNS
netsh interface ip set dns "Local Area Connection" source=static addr=192.168.200.100
#设置新IP地址对应的第二个DNS
netsh interface ipv4 add dns "Local Area Connection" 192.168.200.200 index=2
#增加一个不同网段新的IP_1地址
netsh interface ipv4 add address name="Local Area connection" address=192.168.111.111 mask=255.255.255.0
#增加一个不同网段新的IP_2地址
netsh interface ipv4 add address name="Local Area connection" address=192.168.222.222 mask=255.255.255.0
阅读(887) | 评论(0) | 转发(0) |