netsh interface ip set address "本地连接" static IP gateway 修改IP 网关
netsh interface ip set dnsserver xxx.xxx.xxx.xxx 修改DNS
netdom renamcomputer localhost /newname:"名称" /reboot 修改计算机名称
netsh interface set interface name="本地连接" newname="lan" 修改网卡名称
netsh interface ipv4 add dnsserver name="本地连接" source=static address= xxx.xxx.xxx.xxx index=1
netsh interface ipv4 add dnsserver name="本地连接" address= xxx.xxx.xxx.xxx index=1
netsh interface ipv4 add dnsserver name="本地连接" address= xxx.xxx.xxx.xxx index=2
@echo off
@echo 开始设置IP
netsh interface ip set address name=”本地连接” source=static addr=192.168.1.2 mask=255.255.255.0 gateway=192.168.1.1 gwmetric=auto
netsh interface ip set dns name=”本地连接” source=static addr=210.52.149.2 register=primary
netsh interface ip add dns name=”本地连接” addr=202.106.0.133 index=2
@echo on
@echo IP已设置
@echo off
pause
exit
win7减肥之终极攻略 更多精品教程 就在电脑技术吧 www.zhishiwu.com
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)