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

xen-users

[Top] [All Lists]

[Xen-users] Creating multiple bridges

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Creating multiple bridges
From: Andrew Kilham <andrew@xxxxxxxxxxxxxx>
Date: 2010年4月05日 02:24:48 +1000
Delivery-date: 2010年4月04日 09:26:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4
Hi,
In addition to the standard bridge eth0 that Xen creates, I had added a second bridge using "brctl addbr beth1" command which worked fine, and I then added some IP's to my domU's using the second bridge. However, when I restarted the server the second bridge was not there any more (as expected).
When I typed in "brctl addbr beth1" it said:
device beth1 already exists; can't create bridge with the same name
Even though beth1 was not listed in "ifconfig" and there is no ifcfg-beth1 file in /etc/sysconfig/network-scripts . I wasn't sure how to fix this, so I moved on to trying a wrapper script. 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
I chmodded the file to 755 and I changed the appropriate line in xend-config.sxp to execute it. However, booting the server with this file in place returns nothing when I run "brctl show":
[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. 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?
Thanks!
Cheers,
Andrew
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-users] Creating multiple bridges , Andrew Kilham
Next by Date: Re: [Xen-devel] RE: [Xen-users] (Xenlinux) gentoo-xen-kernel patches questions? , Andrew Lyon
Previous by Thread: Re: [Xen-users] Creating multiple bridges , Nuno L. Ferreira
Next by Thread: Re: [Xen-users] Re-occuring error trying to set up first DOM , Fajar A. Nugraha
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /