[ ]设置IP、DNS、网关
代码语言:javascript复制>netsh interface ip set address name="本地连接" source=static addr=192.168.132.5 mask=255.255.255.0
>netsh interface ip set address name="本地连接" gateway=192.168.132.1 gwmetric=0
>netsh interface ip set dns name="本地连接" source=static addr=192.168.132.1 register=PRIMARY
>netsh interface ip set wins name="本地连接" source=static addr=none
[ ]查看IP、DNS、网关
代码语言:javascript复制>netsh interface ip show address
****