知识屋:更实用的电脑技术知识网站
所在位置:首页 > 编程技术  > 批处理

用DOS指令切换局域网IP

发表时间:2014-09-27来源:网络


用DOS指令切换局域网IP
 
公司为每位员工分配一个固定IP,用来收邮件,而要上外网又必须
切换到另一个网段IP才行,手工操作十分麻烦,于是百度了一下,最终
用批处理文件搞定.如下:
[plain] www.zhishiwu.com  
netsh interface ip set address name="本地连接" 
 
source=static address=192.168.3.182 mask=255.255.255.0 gateway=192.168.3.1  
 
netsh interface ip set dns name="本地连接" source=static addr=xx.xx.xx.xx 
 
register=PRIMARY
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜