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

软件发布|下载排行|最新软件

当前位置:首页操作系统windows系列

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

  2020-12-09 我要评论
使用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

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们