2010年9月
« 8    
 12345
6789101112
13141516171819
20212223242526
27282930  

CMD模式下设置IP

@echo off
echo 正在配置IP,请稍等……
netsh interface ip set address name=”本地连接” source=static addr=10.9.172.122 mask=255.255.255.0
echo 正在配置网关,请稍等……
netsh interface ip set address name=”本地连接” gateway=10.10.172.1 gwmetric=0
echo 正在配置DNS,请稍等……
netsh interface ip set dns name=”本地连接” source=static addr=10.9.44.22 register=primary
netsh interface ip add dns name=”本地连接” addr=202.96.209.5 index=2
netsh interface ip set wins name=”本地连接” source=static addr=none
echo 恭喜您! IP配置已经完成!
echo. & pause

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

沪ICP备10001285号