public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Networkconfiguration with KVM
@ 2010-04-04 12:17 Dan Johansson
  2010-04-04 13:00 ` sudhir kumar
  0 siblings, 1 reply; 12+ messages in thread
From: Dan Johansson @ 2010-04-04 12:17 UTC (permalink / raw)
  To: kvm

Hi,

I am new to this list and to KVM (and qemu) so please be gentle with me.
Up until now I have been running my virtualizing  using VMWare-Server. Now I 
want to try KVM due to some issues with the  VMWare-Server and I am having 
some troubles with the networking part of KVM.

This is a small example of what I want (best viewed in a fix-font):

  +-----------------------------------+
  | Host                              |
  |  +----------+                eth0 |---- 192.168.1.0/24
  |  |      eth0|-- +                 |
  |  | VM1  eth1|---(---+------- eth1 |---- 192.168.2.0/24
  |  |      eth2|---(---(---+         |
  |  +----------+   |   |   |         |
  |                 |   |   |         |
  |  +----------+   +---(---(--- eth2 |---- 192.168.1.0/24
  |  |      eth0|---+   |   |         |
  |  | VM2  eth1|-------+   +--- eth3 |---- 192.168.3.0/24
  |  |      eth2|-----------+         |
  |  +----------+                     |
  |                                   |
  +-----------------------------------+

Host-eth0 is only for the Host (no VM)
Host-eth1 is shared between the Host and the VM's (VM?-eth1)
Host-eth2 and Host-eth3 are only for the VMs (eth0 and eth2)

The Host and the VMs all have fixed IPs (no dhcp or likewise).
In this example th IPs could be:
Host-eth0:	192.168.1.1
Host-eth1:	192.168.2.1
Host-eth2:	-
Host-eth3:	-
VM1-eth0:		192.168.1.11
VM1-eth1:		192.168.2.11
VM1-eth2:		192.168.3.11
VM2-eth0:		192.168.1.22
VM2-eth1:		192.168.2.22
VM3-eth2:		192.168.3.22

And, yes, Host-eth0 and Host-eth2 are in the same subnet, with eth0 dedicated 
to the Host and eth2 dedicated to the VMs.

In VMWare this was quite easy to setup (three bridged networks).

Does someone know how I can set this up with KVM/QEMU?

Regards,
-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-04-11 15:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-04 12:17 Networkconfiguration with KVM Dan Johansson
2010-04-04 13:00 ` sudhir kumar
2010-04-04 18:02   ` Dan Johansson
2010-04-04 20:23     ` Held Bernhard
2010-04-05 10:09       ` Dan Johansson
     [not found]         ` <z2sbb653c6e1004050434g209dcc0cmc330c2e391cd68d4@mail.gmail.com>
2010-04-05 14:35           ` Dan Johansson
2010-04-05 16:00             ` David Mair
     [not found]             ` <4BBA024A.7060504@mgpi.de>
2010-04-05 16:25               ` Dan Johansson
     [not found]               ` <4BBA2281.906@mgpi.de>
2010-04-05 18:04                 ` Dan Johansson
2010-04-05 18:34                   ` David S. Ahern
2010-04-05 20:04                   ` Held Bernhard
2010-04-11 15:41                     ` Dan Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox