设置网卡IP,还每次都挨个地址输入吗?批处理一下【转】

1、设置网卡ip,子网掩码和默认网关,注意修改网卡名称,跟本地连接汇总的网卡名称保持一直

netsh interface ip set address "以太网" static 192.168.3.164 255.255.255.0 192.168.3.1

2、修改默认dns

netsh interface ip set dns "以太网" static 211.137.191.26 primary

2、添加dns

netsh interface ip add dns "以太网" 202.102.152.3

全部提供给你,方便拷贝

netsh interface ip set address "以太网" static 192.168.3.164 255.255.255.0 192.168.3.1

netsh interface ip set dns "以太网" static 211.137.191.26 primary

netsh interface ip add dns "以太网" 202.102.152.3

拷贝在txt中把扩展名改成bat,地址改成自己合适的地址,以管理员身份运行即可!

转自

设置网卡IP,还每次都挨个地址输入吗?批处理一下 - 今日头条(www.toutiao.com)
http://www.toutiao.com/i6430927236521525762/

上一篇:4-51单片机WIFI学习(开发板51单片机自动冷启动下载原理)


下一篇:[IDE - Eclipse] JSP报错:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path