- 动态IP
netsh interface ip set address name="以太网" source=dhcp
- 静态IP.
netsh interface ip set address name="以太网" source=static addr=192.168.1.100
mask=255.255.255.0 gateway=192.168.1.254
netsh interface ip set dns name="以太网" source=static addr=8.8.8.8 register=primary
netsh interface ip add dns name="以太网" addr=114.114.114.114 index=2
添加到cmd里,把后缀名字改为bat,以管理员身份运行即可
版权声明:本文为Jakobus原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。