I have two static IPs, e.g 220.220.220.220 and 220.220.220.221. I have one network card on the host machine. Can i configure each VM to have it's own IP?

link|improve this question

45% accept rate
feedback

2 Answers

up vote 1 down vote accepted

You don't need two network cards to allow two VMs. The host will act like a network switch, and send the packets where they need to go.

link|improve this answer
Would you know how I should configure this Womble? I'm new to the VM stuff and I'm really lost. Thanks. – Mridang Agarwalla Jul 19 '11 at 5:36
No, I don't use the commodity VM management stuff. – womble Jul 19 '11 at 5:44
Hello Womble, would I need three IPs for my two VMs — 2 for the guest VMs and one for the KVM host? Am I right? – Mridang Agarwalla Jul 19 '11 at 9:25
1  
Don't ask questions in comments, ask them in questions. – womble Jul 19 '11 at 10:17
feedback

Yes you can. With 2 IP addresses you can configure 2 machines to have their own IP addresses (does not matter if they are virtual or real machines). If you set up 2 virtual machines with these IP addresses, you do not have any left for the host machine (which is often fine and some times even desirable).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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