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

Re: [Xen-users] Multiple Network Cards + Multiple Bridges on debian lenny



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


 


Rackspace

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