Changing Your IP Address

1. Changing Your IP Address (Windows OS)

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 Connection” static 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 


EmoticonEmoticon