MeesterPatat
MeesterPatat

Reputation: 2831

netsh command to change to static ip only changes my default gateway?

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:

http://puu.sh/4ouAQ.png

What am i doing wrong?

Upvotes: 0

Views: 6894

Answers (1)

manimatters
manimatters

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

Related Questions