1. 切换成自动获取IP
以下是代码片段:
@echo off
netsh interface ip set address name=local source=dhcp
netsh interface ip set dns name=local source=dhcp
2. 切换成固定IP
以下是代码片段:
@echo off
netsh interface ip set address local static 192.168.0.84 255.255.255.0 192.168.0.254
ne...[ 查看全文 ]