首页 > 其他 > 详细

脚本设置ip&自动获取ip

时间:2015-02-08 12:41:45      阅读:284      评论:0      收藏:0      [点我收藏+]

设置ip

netsh interface ip set address "本地连接 2" static 192.168.1.110 255.255.255.0 192.168.1.1 1
netsh interface ip add dns name="本地连接 2" addr=172.168.0.28

自动获取

netsh interface ip set dns name = "本地连接 2" static addr = none 
netsh interface ip set address name="本地连接 2" source=dhcp  

参考文献:http://blog.csdn.net/wuweilong/article/details/9841095

脚本设置ip&自动获取ip

原文:http://www.cnblogs.com/Percy/p/4279840.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!