SysAdmin

Here , i have shared all things as per my knowledge. These all
are sourced from internet and from my knowledge.

Thursday, 31 January 2013

Set A Static IP Address On Windows 8 at the Command Line

        Let’s say you want to give your Windows 8 system an IP address of 192.168.1.10, a subnet mask of 255.255.255.0, a default gateway of 192.168.1.1, and a DNS server address of 192.168.1.11 on Local Area Connection. Go to an elevated command prompt (right-click on the command prompt icon and select Run As Administrator) and type these two commands: 


netsh interface ipv4 set address “local area connection” static 192.168.1.10 255.255.255.0 192.168.1.1

netsh interface ipv set dnsservers “local area connection” static 192.168.1.11

If you want to switch back to receiving your networking settings from a DHCP server, use these commands:

netsh interface ipv4 set address name=”local area connection” source=dhcp

netsh interface ipv4 set dnsservers name=”local area connection” source=dhcp

No comments:

Post a Comment