使用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
标签:
静态ip,动态ip,脚本

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
评论“windows使用netsh设置静态&动态ip的脚本”
暂无“windows使用netsh设置静态&动态ip的脚本”评论...