本文共 565 字,大约阅读时间需要 1 分钟。
把地址设为动态ip
@echo 开始设定自动获取动态IP地址...@netsh interface ip set address "WLAN" dhcp@netsh interface ip set dns name="WLAN" source=dhcp@echo IP地址设置完毕,当前IP地址信息为@ipconfig /all@pause把地址设为静态ip
@echo offtitle 静态IP设置set name=WLANset IP=192.168.1.187set mask=255.255.255.0set gw=192.168.1.1set dns=202.106.195.68netsh int ip set addr name="%name%" source=static addr=%IP% mask=%mask% gateway=%gw% gwmetric=1netsh int ip set dns name="%name%" source=static addr=%dns% register=primarynetsh interface ip set wins name="%name%" source=static addr=noneecho 静态IP设置完成ipconfig /allpause
转载地址:http://lcpei.baihongyu.com/