Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

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.

share|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
add comment

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).

share|improve this answer
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.