windows使用netsh设置静态&动态ip的脚本
windows使用netsh设置静态&动态ip的脚本
发布时间:2016-12-27 来源:查字典编辑
摘要:使用netsh设置静态ip地址:@echooffnetshinterfaceipsetaddress"本地连接"static172.24.8...

使用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系列学习
热门Windows系列学习
操作系统子分类