Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am connected to a network that assigns my IP address via DHCP, but i also need to assign my NIC an IP address that is not in the network's address range. Is this possible, maybe with some "virtual network interface"? Preferrably so that both networks work? I'm running Windows XP.

share|improve this question
What operating system? – Tadeusz A. Kadłubowski Sep 2 '09 at 8:19
Windows XP. added it. – Botz3000 Sep 2 '09 at 8:34

You can assign additional IP addresses to a network interface with the netsh interface ip add address command. However, this will disable DHCP on that interface. As you need both addresses, you could query the interface for the DHCP-assigned address using ipconfig and then assign the given address and the additional address you need as static addresses. This will work as long as the DHCP server does not assume it can assign you another address when the DHCP lease is supposed to get renewed. Also, if the DHCP IP address is dynamically assigned (rather than, say, tied to your interface's MAC address) you will need to re-enable DHCP every time you reconnect to that network and add the static addresses again.



Windows IP Configuration

Ethernet adapter Local Area Connection:
        IP Address. . . . . . . . . . . . :
        Subnet Mask . . . . . . . . . . . :
        Default Gateway . . . . . . . . . :

netsh>interface ip add address name="Local Area Connection" addr=  mask=
netsh>interface ip add address name="Local Area Connection" addr=  mask= gateway=
share|improve this answer
this looks good, but a solution that requires admin privileges only once would be better. – Botz3000 Sep 2 '09 at 9:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .