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 ipv set dnsservers “local area connection” static 192.168.1.11
netsh interface ipv4 set address name=”local area connection” source=dhcp
netsh interface ipv4 set dnsservers name=”local area connection” source=dhcp

