Windows Command Line IP Address Assignment

If you want to set a static IP address from the command prompt in Windows, use the following command in an elevated command prompt.

netsh interface ipv4 set address “Local Area Connection” static 10.0.0.55 255.0.0.0 10.0.0.1

where “Local Area Connection” is your network adapter name as shown in the Network and Sharing Center

where 10.0.0.55 is the ip address you wish to assign

where 255.0.0.0 is the subnet mask you wish to assign

where 10.0.0.1 is the default gateway you wish to assign.

Leave a Reply