Question Locked

Set Static IP using netsh command?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Suppose, I want to setup static ip for my computer (because my ISP uses static IP), then can I use the netsh command? If so how?

TIA,

Rgds,

Praveen

3 replies

by Member 25348569

netsh interface ip set address name="LAN" static 192.168.0.100 255.255.255.0 192.168.0.254

This will add the static address 192.168.0.100 with a Class C subnet mask and a default gateway of 192.168.0.254 to the interface called "LAN".

God bless the Command Line. You can break a system so much more quickly than with the GUI!

:)

Seriously! Take care.

netsh ?
netsh interface ?
netsh interface ip ? and so on until you get to
netsh interface ip add address ?

The last one will show you how.

This discussion is closed to new replies.