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

[Xen-users] Attaching a bond to a bridge

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Attaching a bond to a bridge
From: Jens Ahrens <jensampol@xxxxxxxx>
Date: Tue, 29 Jul 2008 13:57:13 +0000 (GMT)
Delivery-date: Tue, 29 Jul 2008 06:58:02 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=bS2n0m5aFPgElD4qsFoZG+Mf3x2CU4w8QHpH6fn33rfdOm7ZP/x4h6WmJmlddJv2Pd6Uy5vQvygMYKVz7TNWogI22AVnWdULqyOb9sTI/8jN4kNxy7+o+5xdmUrB5cFLIiWbLstvKockQ/9w7IzDbyZikLJaTskUyyRQKL15o2s=;
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>
Reply-to: jensampol@xxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi everybody,

I'm having a little bit of trouble with a non-standard (xen) bridge-setup.
I'm using FedoraCore7 and xen3.1.2.
The topology is as follows:

----------------------
|                DOM0|
|  ______________    |
|  | xen-pvm DomU|   |
|  --------------    |
|       |            |
|  ____________      |
|  | bridge b0 |     |
|  -------------     |
|       |            |
|  ____________      |
|  | bond0     |     |
|  -------------     |
|   |         |      |
|  ____      ____    |
| |eth0|    |eth1|   |
| ------    ------   |
|   |          |     |
----------------------
    |          |


Doing the following:
-----------------------
1)  brctl addbr b0
2)  brctl stp b0 off
3)  brctl setfd b0 0
4)  ip addr add 192.168.xx.xx brd 192.168.xx.255 scope global dev b0
5)  ifdown bond0
6)  ip link set bond0 down
7)  ip addr flush bond0
8)  ip link set bond0 up
9)  ifup bond0
10) brctl addif b0 bond0
11) ip link set b0 up
-----------------------
I end up with both bond0 and b0 having the same IP. If I leave out 9) I can't 
add bond0 to the bridge


What I usually do when setting up a bridge for a single NIC is the following:
----------------------
|                DOM0|
|  ______________    |
|  | xen-pvm DomU|   |
|  --------------    |
|       |            |
|  ______________    |
|  | bridge eth0 |   |
|  ---------------   |
|       |            |
|      _____         |
|     |peth0|        |
|     -------        |
|        |           |
----------------------
         |

1)  brctl addbr tmpbridge
2)  brctl stp tmpbridge off
3)  brctl setfd tmpbridge 0
4)  ip addr add 192.168.xx.xx brd 192.168.xx.255 scope global dev tmpbridge
5)  ifdown eth0 
6)  ip link set eth0 name peth0
7)  ip link set tmpbridge name eth0
8)  ip link set peth0 down
9)  ip addr flush peth0
10) ip link set peth0 up
11) brctl addif eth0 peth0
12) ip link set peth0 up
13) ifup eth0

This works fine - the bridge eth0 gets the ip and peth0 remains without ip.

Any idea what I'm doing wrong?

Thanks and cheers,
Jens




      __________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com

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

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