cmd /c netsh interface ip set address name="本地连接" source=static addr=192.168.1.100 mask=255.255.255.0 gateway=192.168.1.1 gwmetric=1 cmd /c netsh interface ip set dns name="本地连接" source=static addr=208.67.222.222 cmd /c netsh interface ip add dns name="本地连接" addr=8.8.8.8 index=2 |
修改为DHCP自动获取
netsh interface ip set address name="本地连接" source=dhcp
netsh interface ip delete dns "本地连接" all
No comments:
Post a Comment