Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a networked windows pc with 2 network interfaces. The first connects to a lan with ip address 10.1.. The second connects to another lan with ip address 10.2..

Maybe it's a dumb question, however is it possible to virtualize the second network interface, so that the pc can connect to the 2 lans?

If necessary, I may switch to linux or paravirtualization.

CLARIFICATION:

I want to send DHCP broadcast packets on the second lan, but not on the first lan. I want to do it with one single physical network interface. At the moment, I'm not using any virtualization software.

FURTHER CLARIFICATION:

I have a device, which lives on the second lan, that requires a DHCP address on boot. I want my pc to respond on the second lan because on the first lan there is another DHCP server. This is the very reason for the whole "second lan" requirement: to avoid competition between DHCP servers.

share|improve this question
    
I think you are going to need to provide more information. You have stated that you have a windows PC connected to two networks, and you want the PC to connect to both networks. Do you mean you want a VM to connect to the two networks? If so, please state what VM software you are using. –  Paul Mar 23 '12 at 9:32
add comment

3 Answers 3

A PC with two network interfaces, each connected to a distinct LAN, should be able to communicate with both LANs without need for virtualisation and without needing any special configuration.

share|improve this answer
    
I forgot to add, I want to get rid of the second ethernet card, which is the point of virtualizing it –  michelemarcon Mar 23 '12 at 9:55
add comment

If both IP subnets are available on the same Ethernet LAN, then it's trivial to configure most OSes to have more than one IP configuration (address, mask, gateway) on the same Ethernet port.

If the two IP subnets are one separate Ethernet LANs that are virtual LANs on the same switch (or can be made to be VLANs on the same switch), then you could configure the PC's port on the switch to carry both VLANs. Maybe one would be untagged (native) and the other would be tagged (that is, packets for the other network would have the VLAN header on them).

Either way, it's totally doable in most OSes.

share|improve this answer
add comment

No problem at all; you don't even need to mess with "virtual" network interfaces. Just broadcast to 10.2.255.255/255.255.0.0. That's the netmask associated with the second network interface.

[edit] See this documentation how this works in practice (your DHCP server probably uses a different configuration format, but the idea is the same)

share|improve this answer
    
I've updated my requirements, sorry for the confusion. –  michelemarcon Mar 23 '12 at 13:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.