以管理员权限运行,wlan是网络适配器名称
1、设置静态IP
netsh interface ip set address "wlan" static 192.168.1.100 255.255.255.0 192.168.1.1
2、自动获取
netsh interface ip set address name="wlan" source=dhcp
3、设置主DNS
netsh interface ip set dns "wlan" static 114.114.114.114 primary
4、设置备用DNS
netsh interface ip add dns name="wlan" 10.3.0.222 index=2