cmd快速设置本机ip和dns【转】

.


参考: https://wenku.baidu.com/view/74c59947336c1eb91a375dbe.html

 

家里配置如下

 

尾部的1不要忘了

netsh interface ip set address "以太网" static 192.168.2.111 255.255.255.0 192.168.2.1 1
netsh interface ip set dns "以太网" static 218.108.248.200

 

公司配置如下

尾部的1不要忘了

netsh interface ip set address "以太网" static 192.168.2.111 255.255.255.0 192.168.2.1 1
netsh interface ip set dns "以太网" static 218.108.248.200

 

posted @ 2017-10-26 20:23  苦涩泪滴  阅读(693)  评论(0编辑  收藏  举报