网站地图    收藏   

主页 > 系统 > windows >

Windows设置静态&动态ip的脚本 - Windows操作系统

来源:自学PHP网    时间:2015-04-17 17:13 作者: 阅读:

[导读] Windows设置静态动态ip的脚本使用netsh设置静态ip地址:@echo offnetsh interface ip set address 本地连接 static 172.24.83.239 255.255.255.0 172.24.83.247netsh interface ip set dns 本......


Windows设置静态&动态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
 

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论