Windows 系统下命令设置IP与DNS命令

设置IP命令如下:

netsh interface ip set address "以太网" static 192.168.1.100 255.255.255.0 192.168.1.1

 说明:

“以太网”:是你网络连接的名字,比如有的电脑上就是“本地连接”甚至还有“本地连接2”等,后面IP的参数分别是

IP地址、子网掩码、默认网关。

设置DNS命令如下:

netsh interface ip set dns "以太网" static 61.128.128.68

猜你喜欢

转载自yeshuang.iteye.com/blog/2197432