Community discussions

Topic Author
Posts: 29
Joined: Sun Feb 24, 2019 7:43 am
Location: Sydney, Australia

Monitoring of BGP session and VRRP Failover

Sun Feb 24, 2019 9:09 am

Hi All,

Just looking for some input/feedback into a BGP and VRRP setup I have with my upstream provider. Let me explain:

The Setup
Two VMs are configured as BGP routers. Both have BGP sessions configured to the carrier's router using IP address (via multihop) to the same carrier and announcing upstream a /24 v4 and /48 v6. The carrier also requires a default route be configured (due to the multi-hop BGP). Each router has a public IP configured as below:
  • CR1 - IP:, Gateway:
  • CR2 - IP:, Gateway
VRRP is also configured between the two routers with a floating IP from the /24 and /48.

The Configuration
I have configured the two routers as follows:
  • Changed the default route on cr1 to the following (so that the BGP session can establish with the carrier but won't route any other internet traffic until the BGP session is up): dst-address -, gateway -
  • Configured BGP on both cr1 and cr2 to announce the /24 and /48 to the carrier.
  • Configured VRRP over the private network to float the gateway IP from the /24 prefix I am announcing.
  • Configured NetWatch on cr1 to monitor and change the VRRP priority when it is unable to reach
I've confirmed that this configuration works by disabling the BGP session and seeing NetWatch not being able to monitor, and then changing the VRRP priority to preference cr2 as the master. When BGP on cr1 comes back up, NetWatch then changes the priority on the VRRP interface back to it's former glory, thereby moving the floating IP back.

The Question
Is there a better way of achieving this? Does anyone else have a similar setup and configured things a little differently? Please let me know below.

Christopher H.

*Note: All IPs used are example IPs taken from RFC 5737 with the exception of CloudFlare's DNS Server (

Who is online

Users browsing this forum: No registered users and 1 guest