新建TXT 编写一下内容 改后缀为.bat 文件
netsh interface ip set address "本地连接" static 192.168.1.100 255.255.255.0 192.168.1.1
netsh interface ip set dns name="本地连接" source=static addr=114.114.114.114
netsh interface ip add dns name="本地连接" addr=114.114.115.115 index=2
改成DHCP 模式 :
netsh int ip set addr 本地连接 dhcp
netsh interface ip set dns "本地连接" dhcp
(本地连接 )名称以网卡实际名称为准