╃苍狼山庄╃╃苍狼山庄╃

Clang出品,
必属精品!

使用批处理修改本地IP和DNS

使用批处理修改本地IPDNS
自动获取.bat:

@echo off
netsh interface ip set address name="本地连接" source=dhcp
ipconfig /flushdns

手动分配.bat:

@echo off
netsh interface ip delete dns "本地连接" addr=all
netsh interface ip add dns "本地连接" addr=202.97.224.69
netsh interface ip add dns "本地连接" addr=202.97.224.68
netsh interface ip add address "本地连接" 192.168.1.133 255.255.255.0
netsh interface ip add address "本地连接" gateway=192.168.1.1 gwmetric=2
ipconfig /flushdns


注:使用时复制上面的代码保存为bat文件,并更改其中的网络连接为你要修改的网卡名称(如:本地连接2 根据自身情况处理),IP和DNS修改为您自己的就OK了!

本原创文章未经允许不得转载 | 当前页面:╃苍狼山庄╃ » 使用批处理修改本地IP和DNS

评论

文章评论已关闭!