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] Creating multiple bridges

To: Andrew Kilham <andrew@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Creating multiple bridges
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Mon, 5 Apr 2010 12:09:51 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 04 Apr 2010 22:10:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BB8B981.10707@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>
References: <4BB8B981.10707@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sun, Apr 4, 2010 at 11:08 PM, Andrew Kilham <andrew@xxxxxxxxxxxxxx> wrote:
> I vaguely knew that you needed to create a wrapper script to automatically
> set up multiple bridges on boot, so I did some Googling and came up with
> this file:
>
>> dir=$(dirname "$0")
>> "$dir/network-bridge" "$@" vifnum=0 netdev=peth0 bridge=eth0
>> "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=beth1

The default network bridge script has changed over versions of Xen, so
that syntax might not work. A snippet from
/etc/xen/scripts/network-bridge from xen 3.4.2:

# network-bridge (start|stop|status) {VAR=VAL}*
#
# Vars:
#
# bridge     The bridge to use (default ${netdev}).
# netdev     The interface to add to the bridge (default gateway device).
# antispoof  Whether to use iptables to prevent spoofing (default no).

so when using 3.4.2 the syntax is probably
"$dir/network-bridge" "$@" netdev=eth0 bridge=eth0
"$dir/network-bridge" "$@" netdev=eth1 bridge=eth1

Adjust it as necessary, using the file of your current version of the file.
Note that I haven't tested it, because IMHO once you use some complex
configuration it's much easier and managable to simply use OS config
scripts.

>> [root@mars ~]# brctl show
>> bridge name     bridge id               STP enabled     interfaces
>
> The public IP assigned to dom0 works, but none of the IP's assigned to the
> domU works.

because there's no bridge. You might be able to find out "why" by
looking at error messages on xend.log

>
> So, how do I have a bridge named beth1 with the physical interface eth1
> assigned to it, in addition to the default bridge eth0/peth0 created when I
> boot the server?

You can try experimenting with the wrapper script, maybe others can
help you get it work.
Or you can simply comment out the entry from xend-config.sxp, and use
OS config scripts: /eyc/sysconfig/network-scripts/ifcfg-* on
RHEL/centos.

-- 
Fajar

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

<Prev in Thread] Current Thread [Next in Thread>