[ovs-discuss] Bond-Failover between VM and PHY possible

Ben Pfaff blp at ovn.org
Fri Mar 12 02:22:01 UTC 2021


On Fri, Mar 12, 2021 at 01:51:14AM +0100, ToXiC ToXiC wrote:
> Hello,
> I was wondering if it would be possible to use OVS to create a failover
> bond and attach it to a bridge.
> 
> I know how to setup an ovs bridge so that all my VMs can communicate, one
> of them is my virtualRouter using opnSense. Whe this virtualRouter is down
> I would like to add a physical NIC as failover for my virtualRouter since I
> can plug this physical NIC to my switch who also have connection to a
> failover opnSense router that could take over and keep traffic flowing,
> albeit at lower speeds since my virtualRouter has several physical NICs in
> a LAG and a single 10GB/s virtual link to my other VMS, while the failover
> would only have 1GB/s to the ovs bridge to my other VMs....
> 
> Confirmation of the feasibility and insights on how to set that up would be
> realy welcome.

OVS has a couple of mechanisms that can help with implementing failover.
One of them is the "bundle" action that you can find documented in the
ovs-actions manpage.  Another is "fast-failover" groups, which work as
documented in the OpenFlow specifications.  Either way, you would need
to figure out how OVS can decide that the virtual router has
failed.  I think that you could use OVS's support for BFD or CFM for
this; some other method might be appropriate.

Some assembly would be required here.  I don't know of a place where you
can find a documented recipe for this.


More information about the discuss mailing list