脚本自动获取IP配置&脚本静态IP配置

 

脚本自动获取IP配置

netsh interface ip set address name="本地连接" source=dhcp

netsh interface ip set dns name="本地连接" source=dhcp register=PRIMARY

netsh interface ip set wins name="本地连接" source=dhcp

脚本静态IP配置

netsh interface ip set address "本地连接" static 11.3.244.9 255.255.255.0 11.3.244.1 1

netsh interface ip set dns "本地连接" static 11.3.205.163

netsh interface ip add dns name="本地连接" addr=11.3.205.164

 
 

 

 

 

posted @ 2012-09-21 15:29  天涯丿wolf  阅读(256)  评论(0)    收藏  举报