Bonding


Userlevel 1
I was trying to establish connectivity from Host1 (10.1.1.3) over to DSW (10.1.1.2), however noticed that you couldn't put an individual swp already configured in a bond as a bridge-port on a bridge. With that being said, the only way I was able to ping from 10.1.1.3 over to 10.1.1.2, was by adding the entire bond to the bridge's bridge-port configuration on both ASW and DSW.
Can you tell me if that was the proper way of doing it? Could it have been done a better way? Thanks.

DSW (10.1.1.2)
swp3 || swp1
||
|| bond0
||
||
|| bond0
||
swp3 || swp1
ASW (10.1.1.1)
swp5 / \ swp6
/ \
/ \
Host1 Host2
10.1.1.3 10.1.1.4

ASW Configuration:

auto swp1
iface swp1
auto swp3
iface swp3
auto swp5
iface swp5
auto swp6
iface swp6
auto bridge
iface bridge
bridge-vlan-aware yes
bridge-ports swp5 swp6 bond0 <=========
bridge-pvid 1
bridge-stp on

auto bridge.1
iface bridge.1
address 10.1.1.1/24
up ip route add 0.0.0.0/0 via 10.1.1.2
auto bond0
iface bond0
bond-slaves swp1 swp3
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 1
bond-min-links 1
bond-xmit-hash-policy layer3+4

DSW Configuration:

auto swp1
iface swp1

auto swp3
iface swp3

auto bridge
iface bridge
bridge-vlan-aware yes
bridge-ports bond0 <========
bridge-pvid 1
bridge-stp on
auto bridge.1
iface bridge.1
address 10.1.1.2/24

auto bond0
iface bond0
bond-slaves swp1 swp3
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 1
bond-min-links 1
bond-xmit-hash-policy layer3+4

4 replies

This is the proper way.
Userlevel 1
Jan Marquardt wrote:

This is the proper way.

Thanks Jan!
Userlevel 1
Hi B,

That's correct. On DSW, swp3 and swp1 are bond-slaves, while the bond is the virtual interface that is used for all further configuration. The bond-slaves only negotiate LACP, while the bond is responsible for hashing any L2 traffic across the slave links.
Since bridging is involved, the bond is then made a member of the bridge

If this was an L3 bond, then you could configure an IP address directly under the bond interface, as shown by this example:
https://docs.cumulusnetworks.com/display/DOCS/Bonding+-+Link+Aggregation#Bonding-LinkAggregation-Exa...
Userlevel 1
Nipul Shah wrote:

Hi B,

That's correct. On DSW, swp3 and swp1 are bond-slaves, while the bond is the virtual inter...

Greatly appreciated Nipul!

Reply