How to Build True Layer 3 BGP IP Failover on Linux
If you run high-availability infrastructure across bare-metal or dedicated servers, you’ve likely hit the Layer 2 barrier. Standard VRRP solutions like Keepalived work great until your primary and backup servers sit on separate racks, distinct VLANs, or completely different subnets. When Layer 2 broadcast domains aren't shared, VRRP fails. To achieve seamless, zero-touch failover across isolated dedicated servers, BGP (Border Gateway Protocol) is the enterprise gold standard. Instead of relying on slow DNS updates or manual IP transfers, BGP lets both servers dynamically announce your public service IP directly to your datacenter's upstream routers. Key Technical Highlights & Strategy • Decoupled Interface Design: Why the failover IP must sit on a persistent local dummy0 interface rather than your physical NIC to prevent link-state dropouts. • Deterministic Path Selection: Utilizing Multi-Exit Discriminator (bgp_med) values and AS-Path prepending in BIRD 2 to guarantee ...