Setting multiple IPs to one NIC in Windows
This has always been one of my pet peeves with Windows. There is no way through the UI to set multiple IPs on the same network card if you set the card to DHCP. If you set it to static IPs, you can do it through the UI and add as many IPs as you want. Once you switch to DHCP, you can’t add any other IPs.
This is very useful if you only have one network card and want to have it connect to multiple networks. To do that in Windows XP (I haven’t verified if it works on Vista or not yet), you need to do the following:
Edit your registry using “regedit.exe” and find the following keys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<interface>\IPAddress
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<interface>\SubnetMask
<interface> will be GUID that you should be able to figure out which one is your network card by looking at the settings under it.
IPAddress and SubnetMask are multistring values. When you have DHCP on, they will have 0.0.0.0 in them both. Just add a new line with the IP and subnet masks you want to use on the same NIC. Reboot…and you’re done. Enjoy :)
Thanks for reading! I'd love to hear your thoughts, feel free to leave a comment below. Don't forget to subscribe to my RSS Feed!