Command line 更改为静态ip的netsh命令仅更改我的默认网关?
我正在尝试使用以下netsh命令将我的ip地址更改为静态ip地址: netsh接口ip设置地址name=“Wi-Fi”静态x.x.x.x 255.255.0 x.x.x.x 1 但这只会更改我的默认网关,不会影响其他任何内容。有时它甚至不会影响网关。结果如下所示:Command line 更改为静态ip的netsh命令仅更改我的默认网关?,command-line,static,window,ip,netsh,Command Line,Static,Window,Ip,Netsh,我正在尝试使用以下netsh命令将我的ip地址更改为静态ip地址: netsh接口ip设置地址name=“Wi-Fi”静态x.x.x.x 255.255.0 x.x.x.x 1 但这只会更改我的默认网关,不会影响其他任何内容。有时它甚至不会影响网关。结果如下所示: 我做错了什么?您可以尝试并明确说明所有值: netsh interface ip set address name="Wi-Fi" source=static addr=x.x.x.x mask=255.255.255.0 gate
我做错了什么?您可以尝试并明确说明所有值:
netsh interface ip set address name="Wi-Fi" source=static addr=x.x.x.x mask=255.255.255.0 gateway=x.x.x.x 1