脚本自动获取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
|