概述
使用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的脚本所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复