Hi all,

I am using VPP (19.04.1) as a gateway and I have two WAN connections.
I want to setup failover with the two WAN interfaces.

Example:
1. Connection on WAN-0 is lost (due to ISP being down)
2. WAN-1 becomes the new primary connection and traffic flows via WAN-1
3. WAN-0 is back up
4. WAN-0 becomes the primary connection and all traffic from WAN-1 now
flows via WAN-0

I setup bond interface and NAT44. It sort of works. When WAN-0 is
unplugged, WAN-1 become primary but when WAN-0 is plugged back in,
WAN-1 remains the primary.

But I want the primary to switch when traffic fails to traverse not
when the cable is physically unplugged.

startup.conf
-----------
vdev eth_bond0,mode=0,slave=0000:05:00.0,slave=0000:04:00.0


vpp.conf
--------
set int state BondEthernet0 up
set int ip address BondEthernet0 10.100.1.2/24
set int ip address BondEthernet0 10.200.1.2/24
ip route add 0.0.0.0/0 via 10.100.1.1 BondEthernet0
ip route add 0.0.0.0/0 via 10.200.1.1 BondEthernet0

set int state lan0 up
set int state lan1 up

nat44 add interface address BondEthernet0
set interface nat44 in lan0 in lan1 out BondEthernet0

Let me know if you need more information.

Really appreciate the help!
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13706): https://lists.fd.io/g/vpp-dev/message/13706
Mute This Topic: https://lists.fd.io/mt/32817575/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to