Skip to main content

192.168.1.1 > 新闻资讯 >

如何使用CMD更改IP地址

2014-01-27 23:04 浏览:
今天客户说不能改IP地址,过去一看,这个"确定"按钮是灰色的,改了IP之后还是灰色的.把网卡卸载了还是一样.想起了以前用CMD改过IP,但是现在全部忘记了,于是上网查了一下,把过程写下来,也算当个备忘吧.

 

方法一,建个BAT

netsh interface ip set address name="本地连接 2" source=static addr=X.X.X.Xmask=255.255.255.0
netsh interface ip set address name="本地连接 2" gateway=X.X.X.X gwmetric=0
netsh interface ip set dns name="本地连接 2" source=static addr=X.X.X.X register=PRIMARY

方法二,

netsh -c interface dump>c:\ip.txt       //把本机网络配置导出到C盘下的  ip.txt 文件中

 netsh -f c:\ip.txt                                   //修改后再导入回本机

相关文章

家里新装了宽度,怎么挑选路由器

2024-09-12 21:49:25    浏览: 154

中国人使用最多的十大路由器品牌,TP-LINK、华为、小米、水星路由器上榜

2024-09-12 21:43:21    浏览: 56

手机wifi显示已连接,却还是上不了网怎么办

2024-01-23 22:03:27    浏览: 121

普通用户装光纤宽带,能不折腾就别折腾,尤其是“老破小”

2023-01-28 19:43:36    浏览: 142

光猫可以设置WiFi,为什么还要买路由器?

2023-01-28 19:39:48    浏览: 165