您的位置:首页 > 其它

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

2013-05-10 09:45 579 查看
使用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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: