使用netsh设置静态ip地址:
复制代码
代码如下:@echo off
netsh interface ip set address "本地连接" static 172.24.83.239 255.255.255.0 172.24.83.247
netsh interface ip set dns "本地连接" 172.24.102.110
netsh interface ip add dns "本地连接" 172.24.102.110 index=2
pause
使用netsh设置动态ip地址:
复制代码
代码如下:@echo off
netsh interface ip set address name="本地连接" source=dhcp
netsh interface ip set dns name="本地连接" source=dhcp
pause
最后
以上就是朴素衬衫最近收集整理的关于windows使用netsh设置静态&动态ip的脚本的全部内容,更多相关windows使用netsh设置静态&动态ip内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复