批处理(bat)设置IP地址
程序员文章站
2022-05-25 21:38:45
...
买了个TOTOLINK EX300v2中继器,想修改配置还得修改IP。。。。
搜索了一下,得到下面的批处理代码。
具体步骤请移步:[url]http://jingyan.baidu.com/article/ab0b5630b0c7d5c15afa7db7.html[/url]
修改为[color=blue]静态IP[/color],,打开管理界面:
其中"[color=red]无线网络连接[/color]"是网络名称,可以在[color=red]控制面板\网络和 Internet\网络连接[/color]下查看
修改会[color=blue]自动配置IP[/color]:
[color=blue]重新获取IP[/color]:
搜索了一下,得到下面的批处理代码。
具体步骤请移步:[url]http://jingyan.baidu.com/article/ab0b5630b0c7d5c15afa7db7.html[/url]
修改为[color=blue]静态IP[/color],,打开管理界面:
其中"[color=red]无线网络连接[/color]"是网络名称,可以在[color=red]控制面板\网络和 Internet\网络连接[/color]下查看
:设置静态 IP , 连接中继器管理界面
netsh interface ip set address name="无线网络连接" source=static addr=192.168.0.2 mask=255.255.255.0 gateway=192.168.0.254 gwmetric=0
ping localhost -n 100 :: > nul :: 等待大约5s
start http://192.168.0.254
echo 刷新页面才能进入 中继器 管理页面
pause
修改会[color=blue]自动配置IP[/color]:
netsh interface ip set address name="无线网络连接" source=dhcp
[color=blue]重新获取IP[/color]:
ipconfig /release
ipconfig /renew
上一篇: ps利用滤镜及画笔快速做出逼真的烟雾