Assign a Secondary IP Address on Windows


Problem: Want a second IP address on the same NIC on Windows. For example, you need a DHCP address to get DNS, etc., but a fixed address for services to run against.

Summary of solution:

  1. configure to run DHCP
  2. ipconfig /all to check
  3. run regedit (XP) regedt32 (2k/NT)
  4. edit at HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces+ navigate to the NIC via its GUID (it's the one that has the DHCP address)
  5. add the IP addresses under "IPAddress"
  6. add each subnet mask under "SubnetMask"
  7. disable and re-enable the NIC
  8. ipconfig /all to verify


source: http://www.petri.co.il/configure_tcp_ip_to_use_dhcp_and_a_static_ip_address_at_the_same_time.htm
date: 06/06/2007