> Date: Tue, 9 Mar 2010 20:43:32 +0200 > From: pasik@xxxxxx > To: viaum@xxxxxxxxxxxxxxx > Subject: Re: [Xen-users] xend-config.sxp setting question & vlans > CC: fajar@xxxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx > > On Tue, Mar 09, 2010 at 10:07:36AM -0500, Mike Viau wrote: > > > Date: Tue, 9 Mar 2010 12:13:08 +0700 > > > Subject: Re: [Xen-users] xend-config.sxp setting question & vlans > > > From: fajar@xxxxxxxxx > > > To: viaum@xxxxxxxxxxxxxxx > > > CC: xen-users@xxxxxxxxxxxxxxxxxxx > > > > > > On Mon, Mar 8, 2010 at 11:49 PM, Mike Viau <viaum@xxxxxxxxxxxxxxx> > > wrote: > > > > Hello, > > > > > > > > I have a question for the xenners using 1st method of having VMs using > > VLAN > > > > interfaces with XEN. [http://wiki.xensource.com/xenwiki/XenNetworking] > > > > > > > > I've setup my /etc/network/interfaces file with bridge enteries like > > in the > > > > example: > > > > > > > > iface xen-br293 inet manual > > > > up vconfig add eth0 293 > > > > up /etc/xen/scripts/network start netdev=eth0.293 bridge=xen-br293 > > > > antispoof=no > > > > > > Why? > > > > > > IMHO you should use only one, not both. So either: > > > - have xen's networking script create the bridges, or > > > - create the bridges manually, and comment-out xen's networking script > > > on xend-config.sxp. This is what I prefer to use on complex setup. > > > > > > > I am comfortable with creating the bridges manually and commenting-out > > xen's networking script on xend-config.sxp as Pasi pointed out in another > > thread. > > > > Could someone provide a working example of debian /etc/network/interface > > file where a vlan is bridged for use with xen DomUs? > > > > To be honest, I don't think the 1st method of having VMs using VLAN > > interfaces with XEN works with with my Debain Lenny (and possibly other) > > setup. I was just trying to follow the wiki as it was written. > > > > However I quickly discovered that the above iface xen-br293 inet manual > > entry does not work, because when one tries to bring up xen-br293 one > > gets: > > > > xen-br293: ERROR while getting interface flags: No such device > > > > I believe this may be do to the fact that the xen-br# devices are not > > known by the udev system and thus the iface entries are just ignored. > > Regardless I think the wiki should demonstrate how to use xen's networking > > script create the bridges, or how to create the bridges manually (in > > /etc/network/interface or other method(s)) while comment-out xen's > > networking script on xend-config.sxp like Fajar suggested. > > > > Creating the bridges using distro network scripts is obviously distro specific task. > I can't remember how to do that in debian /etc/network/interfaces. > > In rhel/centos/fedora I do them like this: > > /etc/sysconfig/network-scripts/ifcfg-brvlanXY > DEVICE=brvlanXY > BOOTPROTO=none > >> TYPE=Bridge > > and then it's just a matter of 'ifup brvlanXY'. > > In the /etc/xen/<guest> configuration file remember > to specify "bridge=brvlanXY" for the vif. > > Someone feel free to edit the wiki :) > > -- Pasi
On Tue, March 9th - Guy Roussin wrote:
(debian lenny) eth0 => admin eth1 => 3 vlans/bridges # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.6.108 network 192.168.6.0 netmask 255.255.255.0 broadcast 192.168.6.255 gateway 192.168.6.101 auto eth1.1 iface eth1.1 inet manual auto br01 iface br01 inet manual network 172.16.0.0 netmask 255.255.0.0 broadcast 172.16.255.255 bridge-ports eth1.1 auto eth1.7 iface eth1.7 inet manual auto br07 iface br07 inet manual network 192.168.7.0 netmask 255.255.255.0 broadcast 192.168.7.255 bridge-ports eth1.7 # The primary network interface auto eth1.10 iface eth1.10 inet manual auto br10 iface br10 inet manual network x.x.x.128 netmask 255.255.255.128 broadcast x.x.x.127 bridge-ports eth1.10 -- Guy This configuration works as apposed to the 1st method for vlans on the wiki! Thanks.
> > > > -- > > > Fajar > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@xxxxxxxxxxxxxxxxxxx > > > http://lists.xensource.com/xen-users > > > > -------------------------------------------------------------------------- > > > > Stay in touch. [1]Get Messenger on your phone now. > > > > References > > > > Visible links > > 1. http://go.microsoft.com/?linkid=9712959 > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@xxxxxxxxxxxxxxxxxxx > > http://lists.xensource.com/xen-users > > _______________________________________________ > Xen-users mailing list > Xen-users@xxxxxxxxxxxxxxxxxxx > http://lists.xensource.com/xen-users
Live connected with Messenger on your phone Learn more.
|