How to assign static IP address from command prompt

It is really simple to assign static IP address ,default gateway and subnet mask through command prompt on your Windows computer. We can set these on any Interface throgh a simple command. The steps to to assign static IP on any interface are:


Steps to Assign static IP on any Interface through command prompt


1. Click on start

2. Click on Run and type cmd. Press OK.

Now the command prompt will be opened.

3. Type the command

netsh interface ip set address name="Local Area Connection" static 192.168.1.5 255.255.255.0 192.168.1.1


Where Local Area Connection is the interface name.

The static IP address we assigned to the interface is 192.168.1.5.

The subnet mask is 255.255.255.0

The default gateway address is 192.168.1.1

Related Topics

1. How to enable disabled adapter on your computer

2. How to track an IP address and find location

3. How to check the accessibility of a website in any country

New Topics

1 comments:

SPM said...

Just don't forget, if you mentioned GW in syntax, you should also fill in [metric] parameter!!