Configure Windows IP Addressing from Command Prompt

For reference, because I have a mental block about remembering this:


netsh interface ipv4 set dnsservers "Local Area Connection" static 8.8.8.8 primary
netsh interface ipv4 set address "Local Area Connection" static 1.1.1.2 255.255.255.0 1.1.1.1


netsh interface ipv4 set address "Local Area Connection" source=dhcp

Published: March 30 2012

  • category:
  • tags: