• 21 July 2026

Internet Router Redundancy Example 1

We have a topology above. I will tell about it from left to right. I have a PC. Its gateway is R0 that has 50.0.0.0/24 subnet and R0 do SNAT from fa0/1 (inside) to fa0/0 (outside). R0 has a default route to virtual address of 10.130.0.1.

R1 is VRRP master and R2 is VRRP backup. R1 and R2 has a BGP neighborship with R3, and they receives a default route from R3. R1 has a track definition to decrement VRRP priority when it losts neighborship with R3 and default route. R1 also has preemption.

R1 and R2 are announcing prefix of 50.0.0.0/24.

Now let’s have a look at the configs and some show outputs.

It’s important to track the default route to change the VRRP role of R1. To change it quickly, we want to optimize the track timers. Line of “track timer ip route 1” means every 1 second to check if the related route is in the routing table or not. Some IOS versions let us configure it as msec. Under track 1 definition, we also configured “delay down 0 up 5”. It means after up event of the track, it waits 5 seconds to run the related action and immediately for down state. In our situation, R1 decrements or increments 150 VRRP 1 priority, so R1 and R2 changes their roles.

R3 knows R1 is the master. Thanks to local preference R3 prefers R1 to R2. We see that local preference is a BGP local path attribute for only R3. We used it to prefer R1 to R2 when we go to 50.0.0.0/24. We also could use weight path attribute on R3 to do it.

When we cut the neighbourship between R1 and R3, 5 pings times unreachable to 8.8.8.8.. Here are the logs when we cut it.

There is also one point that we should think is what if R1 lost local connectivity but it has BGP neighorship with R3 and it is VRRP master still. Under VRRP, unless there is a physical issue on the interface VRRP mastership doesn’t change. Actually, we would better also prefer to use a track for local reachability. Maybe it use a track as below..

We mentioned that we can use weight instead of local preference before. Let’s try it. First, delete route-map lines and set the weights for R1 and R2 neighbourships. After clearing BGP, we see R1 has 500 and R2 has 400 weight.

We will improve this topology to learn more about BGP..

Leave a Reply

Your email address will not be published. Required fields are marked *