Gentoo Archives: gentoo-user

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] KVM networking help
Date: Wed, 17 Jul 2013 18:31:24
Message-Id: CAOazyz0iiOJz-eUpK9XAScR_r2JoYajNEDFFzdxZH82oK07gfQ@mail.gmail.com
In Reply to: [gentoo-user] KVM networking help by Nilesh Govindrajan
1 On Wed, Jul 17, 2013 at 9:28 PM, Nilesh Govindrajan <me@××××××××.com> wrote:
2 >
3 > Hi,
4 >
5 > I need some help settling up networking with KVM machines.
6 >
7 > I have one public interface with four publicly accessible IPs.
8 >
9 > I want to run a private virtual network for the VMs, such that every VM can access every other VM and host, also host can access every VM (required for NAT).
10 >
11 > So far I tried this:
12 >
13 > Create two tap interfaces.
14 > Add them to a bridge
15 > Assign IP to bridge
16 > Set different MACs for VMs' NICs.
17 >
18 > This let's me access one VM to another also VM to host (not sure about this, ping works).
19 > But I'm not able to use host to VM (ping works), I'm not able to connect to sshd running inside VM from host.
20
21 See if the following[1] helps.
22
23 [1] http://alonbl.tropicalwikis.com/wiki/Gentoo/VM_Tap_Networking