WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] can't get multiple VLANs to work

To: Tomasz Chmielewski <mangoo@xxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] can't get multiple VLANs to work
From: Andrew Ross <aross@xxxxxxxxxx>
Date: Wed, 30 Aug 2006 10:57:15 +1000
Delivery-date: Tue, 29 Aug 2006 17:57:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44F465E3.8080107@xxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Openpgp: id=D0A1507C
Organization: Gentoo
References: <44F465E3.8080107@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.5 (Macintosh/20060719)
Tomasz Chmielewski wrote:
> I'm trying to set up Xen 3.0.2 to serve multiple guest domains, each
> using a unique VLAN.

> Is there anyone out there using Xen with a couple of domains, which use
> different VLANs? I would be thankful for any suggestions on where the
> problem might be (and no, it's not checksumming).

I'm afraid I can't offer any specific suggestions for your setup, but I
will mention that I'm successfully running several domUs with different
VLANs.

However, both my dom0 and domU are Gentoo, and both our init.d system
and its interaction with Xen is a little different from other distros.

I'm using tagged VLANs on a single physical interface (eth0), with the
vlan interfaces named vlanN . I create a separate bridge for each VLAN,
named after the VLAN's common-name (eg. dmz, external, staff, student,
etc). Each vlanN interface is added to the corresponding bridge, and any
domU which needs networking on that particular VLAN has its vif assigned
to the necessary bridge, in the usual bridge=whatever manner.

This is all handled using the stock Gentoo init.d scripts. While this
may only be of use to Gentoo users, here is my current config:


aross@oak ~ $ ls -la /etc/init.d/ | fgrep net.
lrwxrwxrwx  1 root root     8 Aug 28 12:55 net.dmz -> net.eth0
lrwxrwxrwx  1 root root     6 Aug 17 16:00 net.eth0 -> net.lo
lrwxrwxrwx  1 root root    12 Aug  2 14:11 net.external -> net.eth0
-rwxr-xr-x  1 root root 30045 Aug 17 16:00 net.lo
lrwxrwxrwx  1 root root     8 Aug  2 14:09 net.printers -> net.eth0


aross@oak ~ $ cat /etc/conf.d/net
vlans_eth0="3 10 11"
vconfig_eth0=( "set_name_type VLAN_PLUS_VID_NO_PAD" )
config_eth0=( "dhcp" )

config_vlan3=( "null" )
config_vlan10=( "null" )
config_vlan11=( "null" )

bridge_external="vlan10"
config_external=( "null" )
depend_external() {
        need net.eth0
}

bridge_printers="vlan3"
config_printers=( "null" )
depend_printers() {
        need net.eth0
}

bridge_dmz="vlan11"
config_dmz=( "null" )
depend_dmz() {
        need net.eth0
}


aross@oak ~ $ cat /etc/xen/printing
memory  = 128;
kernel = "/boot/xen-domU-2.6.16.26";
disk = [ "phy:evms/printing,xvda,w" ];
root = "/dev/xvda ro";
vif = [ "mac=00:16:3E:77:69:07,bridge=dmz",
"mac=00:16:3E:77:69:08,bridge=printers" ]


aross@oak ~ $ cat /etc/xen/gentoo
memory  = 128;
kernel = "/boot/xen-domU-2.6.16.26";
disk = [ "phy:evms/gentoo,xvda,w" ];
root = "/dev/xvda ro";
vif = [ "mac=00:16:3E:77:69:01,bridge=external" ]


Cheers

Andrew

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users