VyOS Networks Blog

Building an open source network OS for the people, together.

Building a High Availability Border Router with VyOS

Fernando Maidana
Posted 2 Dec, 2026

The dual-router, dual-provider border is a well-established high availability architecture used by large enterprises, service providers, and ISPs to deliver resilient Internet and WAN connectivity. By eliminating single points of failure across routers, upstream providers, and network paths, it provides a solid foundation for business-critical networks.

This post summarizes how a VyOS border router pair combines VRRP, eBGP, iBGP, BFD, and routing policy into one HA solution, tested and verified on VyOS 1.5 LTS (Circinus) as of July 2026. For the complete configuration and validation steps, see the VyOS High Availability Border Router Deployment Guide.

Architecture Overview

The lab uses Border Router 1 (BR-1) as the preferred router and Border Router 2 (BR-2) as the secondary. Both routers connect to the same LAN through a switch, and each has its own external ISP connection. A dedicated 172.16.0.0/30 link between the routers carries iBGP and inter-router failover routing. The LAN uses 192.168.10.0/24, with 192.168.10.1 as the VRRP virtual gateway.

How the VyOS HA Mechanisms Work Together

  • VRRP provides a shared LAN gateway at 192.168.10.1. BR-1 normally runs as MASTER thanks to its higher priority, while BR-2 stays BACKUP. BR-1 also uses a 30-second preempt delay before reclaiming the master role after recovery.
  • BFD runs on BGP peers with 200 ms transmit/receive intervals and a multiplier of 3, detecting failures much faster than standard BGP timers alone.
  • eBGP connects each router to its ISP.  Import policy accepts only 0.0.0.0/0, and export policy advertises only the internal 192.168.10.0/24 prefix.
  • iBGP between BR-1 and BR-2 distributes failover routing information. BR-1 sets local preference 200 on the ISP-1 default route before advertising it to BR-2, making ISP-1 the preferred exit while BR-1 remains reachable.

Routing policy and optional firewalling

Prefix lists and route maps control exactly what the border routers learn and advertise: providers supply only a default route, and the routers advertise only the designated internal prefix. This keeps the routing policy explicit and prevents unintended route exchange. An optional stateful IPv4 forward firewall can also be applied, with a default-drop policy that allows established/related return traffic and outbound traffic from the LAN. See the VyOS 1.5 BGP documentation for the full policy options.

Failover in Practice

Validation workflow

  • Confirm VRRP state: BR-1 shows MASTER with priority 200, and BR-2 shows BACKUP with priority 100 under normal conditions.
  • Ping the virtual gateway 192.168.10.1 from a LAN host to verify gateway availability.
  • Check BGP summaries on both routers to confirm that the eBGP sessions to ISP-1 and ISP-2 and the iBGP session between BR-1 and BR-2 are established.
  • Ping and trace toward the simulated Internet address 10.0.0.1 to confirm end-to-end reachability and the expected forwarding path.

Scenario 1: LAN-link failure on BR-1

When BR-1 loses its LAN-side link, its VRRP state changes to FAULT, and BR-2 becomes MASTER. Connectivity stays up because BR-1 is still reachable over the HA link, and its ISP-1 route remains preferred; traffic entering BR-2 crosses the inter-router link to BR-1 and exits through ISP-1.

Scenario 2: Complete BR-1 failure

If the primary router fails entirely, BR-2 becomes VRRP MASTER and forwards traffic directly through ISP-2. The guide validates this with successful ping and traceroute tests, showing that the LAN maintains Internet reachability after losing the primary router.

Key Takeaways

  • The solution combines first-hop redundancy with dynamic routing, rather than relying on ISP redundancy alone.
  • VRRP keeps a consistent default gateway for LAN devices, while BGP selects the available and preferred external path.
  • BFD speeds up the detection of routing-path failures and supports faster convergence.
  • LAN-link failures and full-router failures are handled differently: BR-2 can take over as the gateway while still using BR-1 as the preferred Internet exit.
  • Tested and verified on VyOS 1.5 LTS (Circinus) as of July 2026.

 

Conclusion

VyOS implements the dual-router, dual-provider border architecture by integrating VRRP, eBGP, iBGP, BFD, routing policy, and optional firewalling into a single HA solution. VRRP keeps the LAN default gateway highly available, while BGP and BFD provide dynamic path selection and rapid detection of upstream or routing failures.

The validation and failure scenarios show how the network preserves gateway availability and adapts the upstream forwarding path when a router, link, or provider goes down. The result is redundant, multi-provider connectivity with predictable failover and full routing control, all built on industry-standard protocols. Learn more about VyOS as an ISP border router.

 

Keep your edge online with VyOS.

Planning a dual-ISP border or tuning VRRP, BGP, and BFD failover for your network and want a second opinion?

Talk to our engineers.

Additional Links

The post categories:

Comments