[Fedora-xen] Confused on how to have each guest reach a VLAN

Dale Bewley dlbewley at lib.ucdavis.edu
Mon Jun 25 20:25:02 UTC 2007


You could create each vlan in your dom0 like this

# cat ifcfg-vlan20
DEVICE=eth0.20
BOOTPROTO=static
ONBOOT=yes
VLAN=yes
BRIDGE=xenbr20

And define a bridge for each one like this

# cat ifcfg-xenbr20
DEVICE=xenbr20
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
IPADDR=172.19.20.253
NETMASK=255.255.255.128
NETWORK=172.19.20.128
BROADCAST=172.19.20.255

Then edit your domU config to use xenbr20 etc.* Comment out the network-bridge script in your xend config. When you fire up the instance Xen will create the virtual interface on the fly. The domU doesn't know or care what broadcast domain (VLAN) it is in. It only knows it's subnet information.

You might put a dhcp server on VLAN 20 above and tell all your domU's to use BOOTPROTO=dhcp.

*This format for the bridge name is deprecated in Fedora 7, but it works.
--
Dale Bewley - Unix Administrator - Shields Library - UC Davis
GPG: 0xB098A0F3 0D5A 9AEB 43F4 F84C 7EFD  1753 064D 2583 B098 A0F3




More information about the Fedora-xen mailing list