Thursday, March 20, 2014

How to change IP Address of Computer

How To Change IP Address Of Computer

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?




Note: The following commands require you to have an administrative command prompt open by right-clicking on the icon and choosing Run as Administrator.
1. Changing Your IP Address
netsh interface ip set address name=”Local Area Connection
static 192.168.0.1 255.255.255.0 192.168.0.254

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


2. Set static IP address to getting an address from DHCP
netsh interface ip set address name=”Local Area Connection
source=dhcp



3. Changing Your DNS Settings
netsh interface ip set dns name=”Local Area Connectionstatic
192.168.0.250



4. The name of the interface you want to change the primary
DNS setting for is Local Area Network
The IP address of the DNS Server is 192.168.0.250



5. To change the IP address of the secondary DNS server you will need to specify the index parameter:
netsh interface ip add dns name=”Local Area Connection
8.8.8.8 index=2



6. Set your DNS settings to be assigned dynamically
netsh interface ip set dnsservers name=”Local Area Connection
source=dhcp
for more cmd>netsh help

No comments:

Post a Comment