Windows下自动切换IP小脚本
[08-23 23:22:28] 来源:http://www.duoxue8.com 电脑技巧 阅读:402次
Windows下自动切换IP小脚本,标签:电脑技巧大全,电脑基础知识,http://www.duoxue8.com
从办公到家庭环境,或者从会议室到办公工位上的IP切换相信已经把你搞的烦死了,那么用这个电脑小技巧吧,下面的2个小脚本,呵呵,药到病除。
1. 切换成自动获取IP
@echo off
netsh interface ip set address name="local" source=dhcp
netsh interface ip set dns name="local" source=dhcp
2. 切换成固定IP
@echo off
netsh interface ip set address local static 192.168.0.84 255.255.255.0 192.168.0.254
netsh interface ip set dns local 192.168.0.254
netsh interface ip add dns local 202.106.196.115 index=2
netsh interface ip add dns local 202.106.0.20 index=3
"local"是你的本地网卡名称,也可能是"本地连接",需要自己替换下。如果是2个固定IP间的来回切换,把第2个脚本自己改改吧:)
dns设置中,第一个是set,表示设置,后面两个则是添加,自己替换成当地的dns server。
本文来自 http://www.duoxue8.com 谢谢支持
Windows下自动切换IP小脚本 结束。
从办公到家庭环境,或者从会议室到办公工位上的IP切换相信已经把你搞的烦死了,那么用这个电脑小技巧吧,下面的2个小脚本,呵呵,药到病除。
1. 切换成自动获取IP
@echo off
netsh interface ip set address name="local" source=dhcp
netsh interface ip set dns name="local" source=dhcp
2. 切换成固定IP
@echo off
netsh interface ip set address local static 192.168.0.84 255.255.255.0 192.168.0.254
netsh interface ip set dns local 192.168.0.254
netsh interface ip add dns local 202.106.196.115 index=2
netsh interface ip add dns local 202.106.0.20 index=3
"local"是你的本地网卡名称,也可能是"本地连接",需要自己替换下。如果是2个固定IP间的来回切换,把第2个脚本自己改改吧:)
dns设置中,第一个是set,表示设置,后面两个则是添加,自己替换成当地的dns server。
本文来自 http://www.duoxue8.com 谢谢支持
Windows下自动切换IP小脚本 结束。
Tag:电脑技巧,电脑技巧大全,电脑基础知识,电脑学习 - 电脑技巧
Windows下自动切换IP小脚本相关文章
- ·上一个:Windows 7自带防火墙使用全攻略
- Windows下自动切换IP小脚本
- › WindowsXP的网桥功能
- › Windows文件恢复技巧:误删文件的恢复
- › Windows 7操作系统中轻松搞定无法删除文件
- › 解决Windows 7系统的四大热门问题
- › 解决Windows 7一段时间后激活状态无效问题
- › Windows 7下DVD光驱无法使用的解决
- › 电脑技巧-用空格键调用Windows7启动管理器
- › Windows 7加密文件夹
- › 非主流秘籍:关闭Windows窗口的神奇快捷键
- › 解决Windows7下WinAPN无法连接网络的问题
- › 怎样加快Windows 7关机速度
- › Windows 7系统ADSL拨号出现本地连接显示未识别
- 在百度中搜索相关文章:Windows下自动切换IP小脚本
- 在谷歌中搜索相关文章:Windows下自动切换IP小脚本
- 在soso中搜索相关文章:Windows下自动切换IP小脚本
- 在搜狗中搜索相关文章:Windows下自动切换IP小脚本