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

Warning: File `makefile’ has modification time in the future

本地时间不准确:
解决方法,同步时间。
中国国家授时中心的IP地址是:210.72.145.44。
net time /setsntp:210.72.145.44

沪ICP备10001285号