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] Multiple Network Cards + Multiple Bridges on debian lenn

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Multiple Network Cards + Multiple Bridges on debian lenny
From: Maximilian Wilhelm <max@xxxxxxxxxxx>
Date: Mon, 31 Aug 2009 01:14:20 +0200
Delivery-date: Sun, 30 Aug 2009 16:15:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A9AFD72.9050807@xxxxxxxxxx>
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>
Mail-followup-to: xen-users@xxxxxxxxxxxxxxxxxxx
References: <4A9AFD72.9050807@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
Anno domini 2009 Alexander Pirsig scripsit:

Hi!

> I'm searching for a tutorial how to setup multiple network cards with
> xen network bridge setup in debian lenny. My problem is, bridges seams
> only to work if i put an ip adress in dom0 to them.

Can you be a bit more specific about your problem?

When you have install the bridge-utils package, which is required for
configuring bridges on Debian, you can put stanzas like this into the
/etc/network/interfaces file:


auto br123
iface br123 inet manual
        bridge_ports eth42
        bridge_stp no
        bridge_fd 2

This will setup the bridge 'br123' and attach the physical NIC 'eth42'
to it, which practically means you have a virtual switch inside your
Dom0 where you can plug DomUs in. Dom0 will not be able to directly
communicate with them, though.

If you want your Dom0 to be part of this network, you have to
configure an IP address on the bridge which can be done like this:

auto br123
iface br123 inet static
        addresss 10.0.123.42
        netmask 255.255.255.0
        bridge_ports eth42
        bridge_stp no
        bridge_fd 2

Beware of the 'static' vs. 'manual' thing.


If you are using VLANs you can go one step further an do something
like this (package vlan required)

auto eth0
iface eth0 inet manual
        post-up ifconfig eth0 0.0.0.0 up
        pre-down ifconfig eth0 0.0.0.0 down

auto eth0.123
iface eth0.123 inet manual
        vlan_raw_device eth0
        post-up ifconfig $IFACE 0.0.0.0 up
        pre-down ifconfig $IFACE 0.0.0.0 down

auto br123
iface br123 inet static
        addresss 10.0.123.42
        netmask 255.255.255.0
        bridge_ports eth0.123
        bridge_stp no
        bridge_fd 2


HTH
Ciao
Max
-- 
"Ich habe eher spontan mitbestellt, ohne genau zu wissen, was ich da gerade 
kaufe.
 Immer noch besser, als Schuhe zu kaufen."
  -- uschebit zum Thema SheevaPlug

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