Wednesday, December 4, 2013

How to Change IP Address Using Command Prompt

Change IP Using Command Prompt

Most everybody can figure out how to change their IP address using Control Panel, but did you know you can set your network card’s IP address using a simple command from the command prompt?



Changing IP Steps :

Changing your IP information requires two commands, one for your IP address, subnet mask and default gateway and another for  your DNS settings. In order to change your IP address we use the netsh command, the exact command you want to use is the following:

netsh interface ip set address name=”Local Area Connection” static 192.168.0.1 255.255.255.0 192.168.0.254

Change IP Using Command Prompt

his assumes the following:
  • The name of the interface you want to change the IP address  for is Local Area Network
  • You want to statically assign an IP address of 192.168.0.1
  • You want to set a subnet mask of 255.255.255.0
  • You want to set a default gateway of 192.168.0.254

Armed with this information you should obviously switch the settings out for some that are suited to your network. You might, however, be wondering how you can go from using an already set static IP address to getting an address from DHCP. In this case the command you are looking for is:
netsh interface ip set address name=”Local Area Connection” source=dhcp

No comments:

Post a Comment