我是靠谱客的博主 朴素衬衫,这篇文章主要介绍windows使用netsh设置静态&动态ip的脚本,现在分享给大家,希望可以做个参考。

使用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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(217)

评论列表共有 0 条评论

立即
投稿
返回
顶部