使用CMD命令去切换ip设置

切换网络到自动获取ip地址

netsh interface ip set address "WLAN"  dhcp
pause

切换网络到固定ip地址

netsh interface ip set address name=WLAN source=static addr=192.168.8.107 mask=255.255.255.0 gateway=192.168.8.101  
pause  

猜你喜欢

转载自blog.csdn.net/geshi201028/article/details/126221265