从办公到家庭环境,或者从会议室到办公工位上的IP切换相信已经把你搞的烦死了,win7系统下载那么用下面的2个小脚本吧,呵呵,药到病除。 : k7 w1 Z9 h6 j- @/ Q0 ]" M7 p 1. 切换成自动获取IP ) {0 o& g; G; G! f9 r3 N7 h8 _- A& i7 X @echo off& P4 W3 j/ a% X' N% X
netsh interface ip set address name=“local” source=dhcp0 D! K6 k/ I7 X& t
netsh interface ip set dns name=“local” source=dhcp2 y! G6 ~% t5 [
2. 切换成固定IP+ [4 x8 Q Y2 E, ?
@echo off; H* B# n$ e3 Q. Y, K; `1 W
netsh interface ip set address local static 192.168.0.84 255.255.255.0 192.168.0.2547 m# G6 f2 E [$ G7 s4 u
netsh interface ip set dns local 192.168.0.2549 n' g o5 p$ S
netsh interface ip add dns local 202.106.196.115 index=2 - s/ k" z: B8 F) t' }/ a+ v* `8 l netsh interface ip add dns local 202.106.0.20 index=39 b8 c; V! \* ^' J. w
“local” 是你的本地网卡名称,也可能是 “本地连接”,需要自己替换下。xp系统下载如果是2个固定IP间的来回切换,把第2个脚本自己改改吧 :) % }: @; J1 x2 T dns设置中,第一个是set,表示设置,后面两个则是添加,自己替换成当地的dns server。 ; S1 {* T' N5 t7 n/ l; ^