BOND & Bridges get together?

Hi Volks

I have a general question regarding Bonding and Bridges in Vyos.

if its possible to Bond two or more Interfaces with LACP for example and assigne these Bond to a Bridge with other Bonds or Interfaces which are in that Bridge?

Thanks in advice
:slight_smile:

1 Like

Why do you want to bridge in the router when you have switches? (just a reference to your question about stacking…)

I have a similar project in my head, (my reason) would be to have a router and switch on the same machine.

Let’s say I want to build a powerful enough Router to handle Gigabit connectivity and QoS at the same time, I need to do it myself :slight_smile:

eth0 - WAN

bond0 (eth1 - eth2 - eth3 - eth4)

eth1 — going to dumb 8 ports switch

eth2 to eth4 — LACP to Server

I don’t care if it needs a Quad-Core Xeon, can it be done? :wink:

I’ve done this in my VirtualBox lab:

configure
set interfaces bonding bond0 mode round-robin
set interfaces bonding bond0 member interface eth0
set interfaces bonding bond0 member interface eth2
commit
set interfaces bonding bond1 mode round-robin
set interfaces bonding bond1 member interface eth1
set interfaces bonding bond1 member interface eth3
commit
set interfaces bridge br0
set interfaces bridge br0 member interface bond0
set interfaces bridge br0 member interface bond1
commit

And then I’ve connected a ubuntu machine to bond0 and another to bond1 (with respective bonding interfaces created by ip link add mybond type bond from enp0s3 and enp0s8 ethernet ones). I’ve tried to ping themselves but i doesn’t work. I’ve tried to setting bondings to “active-backup” mode with no luck. Running the bridge without bondings works.