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] correct steps to add XEN bridge to Debian squeeze?

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] correct steps to add XEN bridge to Debian squeeze?
From: Dominic Mason <dominic@xxxxxxxxxx>
Date: Thu, 08 Sep 2011 13:09:45 +0100
Delivery-date: Thu, 08 Sep 2011 05:11:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <sig.02321d64eb.CAAj3Djn97Zy8QqyZAu_sjOKqa6t+QJyUz+=4-3Ap59tMkJp0PQ@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: OpusVL
References: <sig.02321d64eb.CAAj3Djn97Zy8QqyZAu_sjOKqa6t+QJyUz+=4-3Ap59tMkJp0PQ@xxxxxxxxxxxxxx>
Reply-to: dominic@xxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
We decided not to use xen for bridging, but put all out bridges in 

/etc/network/interfaces


Something like this

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

# network bonding
auto bond0
iface bond0 inet manual
        slaves eth1 eth2 eth3
        bond_mode 802.3ad
        bond_miimon 100
        bond_downdelay 200
        bond_updelay 200

# vlans 
auto vlan201
iface vlan201 inet manual
        vlan-raw-device bond0

auto vlan202
iface vlan202 inet manual
        vlan-raw-device bond0

# bridges sit on the vlans
auto br201
iface br201 inet static
        bridge_ports vlan201
        bridge_fd    2
        address 10.10.254.1
        netmask 255.255.255.0

auto br202
iface br202 inet manual
        bridge_ports vlan202
        bridge_fd    2


This is on a machine with four physical interfaces, three of which are
bonded together, and you can add bridges and vlans on the fly as and
when required.


And in /etc/xen/xend-config.sxp leave all the entries like

# (network script network-bridge)

commented out.




On Thu, 2011-09-08 at 13:54 +0200, Rudi Ahlers wrote:
> Hi all,
> 
> Does anyone know what the correct steps are to add a XEN bridge, let's
> say xenbr0 to Debian Squeeze?
> 
> 
> 
> I have added the following to /etc/network/interfaces
> 
> 
> # XEN Bridge
> auto xenbr0
>         iface xenbr0 inet manual
>         bridge ports eth0
>         bridge_stp off
>         bridge_fd 0
> 
> And then rebooted the server but brctl show still shows eth0 as bridge:
> 
> 
> newusaxen:~# brctl show
> bridge name     bridge id               STP enabled     interfaces
> eth0            8000.003048c461be       no              peth0
>                                                         vif2.0
> 
> 
> 
> newusaxen:~# ifup xenbr0
> ifup: interface xenbr0 already configured
> 
> 
> 
> newusaxen:~# ifconfig |grep xenbr0
> newusaxen:~#
> 
> 
> 
> 
> 
> What else should I be doing to get it up and running?

-- 
Dominic Mason <dominic@xxxxxxxxxx>
OpusVL

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