[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.