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] Re: second bridge for dual homed machine!

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Re: second bridge for dual homed machine!
From: Kris Hollingsworth <kris@xxxxxxxxxxxx>
Date: Thu, 09 Feb 2006 08:18:16 -0600
Delivery-date: Thu, 09 Feb 2006 14:29:50 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <OFECF26894.912A136B-ON05257110.0048C5B3-85257110.004A6959@xxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <OFECF26894.912A136B-ON05257110.0048C5B3-85257110.004A6959@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5 (Windows/20051201)
I made a script that called the original script
-----------
#/etc/xen/scripts/makebridge

for i in 0 1; do
  /etc/xen/scripts/network $1 antispoof=no bridge=xen-br$i netdev=eth$1
done
-------------

This properly starts and stops the network bridge with xend. Just change the pointer in /etc/xen/xend-config.sxp to point to the new makebridge script instead of network.

-Kris Hollingsworth


John S Little wrote:
Good Morning!

What I did was copy the network-bridge script to network-custom (you can name it anything) and change vifnum=${vifnum:-0} to vifnum=${vifnum:-1} in the second script. Then for the last line in the network-bridge script I put in the path to the second script: /etc/xen/scripts/network-custom start so that it calls the second script when the first finishes. Make sure your new script is executable. Like the previous writer mentioned the developers expect these scripts to be customized. If there is an 'official' way to do it I haven't seen it. Note that if you do ./network-bridge stop that it will *not* stop xenbr1. You will need to do that manually just as you did xenbr0. (I'll eventually get something written for that).

Regards,

John

Hi!

I don't know anything about the "official" way, but I adjusted /etc/xen/scripts/network-bridge. If you take at a look at the source you

can easily find out where the first bridge is started and where it is stopped. Just duplicate the commands for your custom bridge.

This is quiet a hack! But I don't know a neater solution. And I think I read that the scripts are intended for customization.

Cheers!


Sven Sternberger wrote:
Hello!

I set up a second bridge for a second nic. i made that
manually with
brctl addbr br1
ifconfig br1 up

is there an "official" way how to configure such a second bridge
in '/etc/xen/*'





_______________________________________________
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

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