From: Dan Johansson <kvm@dmj.nu>
To: kvm@vger.kernel.org
Subject: Networkconfiguration with KVM
Date: Sun, 4 Apr 2010 14:17:41 +0200 [thread overview]
Message-ID: <201004041417.41918.kvm@dmj.nu> (raw)
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!
***************************************************
next reply other threads:[~2010-04-04 12:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-04 12:17 Dan Johansson [this message]
2010-04-04 13:00 ` Networkconfiguration with KVM 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201004041417.41918.kvm@dmj.nu \
--to=kvm@dmj.nu \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox