dos改网关

来源:百度知道 编辑:UC知道 时间:2024/07/07 09:52:14
如何利用dos的命令来修改网关

您好,很高兴能帮助您一起解决问题。

您可以尝试以下命令;

1.更改IP 掩码 网关

命令:netsh interface ip set address "本地连接" static IP 掩码 网关

如:
netsh interface ip set address "本地连接" static 192.168.0.10 255.255.255.0 192.168.0.1

2、更改DNS:
命令:netsh iterface ip set dns "本地连接" static DNS地址 pimary

如:
netsh interface ip set dns "本地连接" static 202.96.128.143 primary

希望我的回答可以帮助到您。