Reputation: 2831
I'm trying to change my ip address to a static ip addres with the following netsh command: netsh interface ip set address name="Wi-Fi" static x.x.x.x 255.255.255.0 x.x.x.x 1
But this only changes my default gateway and doesn't affect anything else. Sometimes it doesn't even affect the gateway. The result looks like this:
What am i doing wrong?
Upvotes: 0
Views: 6894
Reputation: 434
You can try and explicitly state all the values:
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
Upvotes: 0