|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] Attaching a bond to a bridge
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>
|
- [Xen-users] Attaching a bond to a bridge,
Jens Ahrens <=
|
|
|
|
|