电脑教程
位置:首页>> 电脑教程>> windows教程>> windows使用netsh设置静态&动态ip的脚本

windows使用netsh设置静态&动态ip的脚本

  发布时间:2023-12-18 07:37:57 

标签:静态ip,动态ip,脚本

使用netsh设置静态ip地址及动态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

0
投稿

猜你喜欢

手机版 电脑教程 asp之家 www.aspxhome.com