Learn how to protect your VRRP group from rogue routers and calculate failover timing.
A rogue router can join your VRRP group and try to become Master.
Authentication stops that: only routers with the right key can join.Types of Authentication
IOS supports two types: plaintext and MD5.
Plaintext sends the key in clear text, so anyone capturing the Advertisements can read it.
Always use MD5 in production.Configuring MD5
Configure MD5 authentication on R1:
R1# conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# int g0/0 R1(config-if)# vrrp 1 authentication md5 key-string PINGMYNETWORK_SECRET R1(config-if)# endR1 now requires the key on every Advertisement.
R2 doesn't have the key yet, so it rejects R1's Advertisements.With mismatched keys, each router ignores the other and both end up as Master for the same VIP.
Configure the same key on R2:
R2# conf t Enter configuration commands, one per line. End with CNTL/Z. R2(config)# int g0/0 R2(config-if)# vrrp 1 authentication md5 key-string PINGMYNETWORK_SECRET R2(config-if)# endVerify on R1 with the usual command:
R1# show vrrp GigabitEthernet0/0 - Group 1 State is Master Virtual IP address is 192.168.10.3 Virtual MAC address is 0000.5e00.0101 Advertisement interval is 1.000 sec Preemption enabled Priority is 110 Authentication MD5, key-string Master Router is 192.168.10.1 (local), priority is 110 Master Advertisement interval is 1.000 sec Master Down interval is 3.570 secThe new Authentication MD5, key-string line confirms the group now requires the shared secret.
Answer the question below
Is an Advertisement with a mismatched key accepted or rejected?
You secured the group.
Now see what happens when the Master fails: how fast does the group notice, and what happens next?Advertisement and Master Down Interval
The Master sends an Advertisement every second by default, VRRP's equivalent of HSRP's Hello.
Backup routers wait for a Master Down Interval before declaring the Master gone.
Figure 6 – VRRP Advertisement and Master Down Interval
The Advertisement interval is 1 second by default.
The Master Down Interval is not a flat value like HSRP's Hold timer.
It's calculated as 3 x Advertisement interval + Skew time.Skew time = (256 - priority) / 256, in seconds.
A higher priority gives a shorter skew, so the router that should become Master reacts first.
That way, backups don't all jump to Master at the exact same instant.Check R1's own view:
R1# show vrrp GigabitEthernet0/0 - Group 1 State is Master Virtual IP address is 192.168.10.3 Virtual MAC address is 0000.5e00.0101 Advertisement interval is 1.000 sec Preemption enabled Priority is 110 Authentication MD5, key-string Master Router is 192.168.10.1 (local), priority is 110 Master Advertisement interval is 1.000 sec Master Down interval is 3.570 secCheck R2's view:
R2# show vrrp GigabitEthernet0/0 - Group 1 State is Backup Virtual IP address is 192.168.10.3 Virtual MAC address is 0000.5e00.0101 Advertisement interval is 1.000 sec Preemption enabled Priority is 100 Authentication MD5, key-string Master Router is 192.168.10.1, priority is 110 Master Advertisement interval is 1.000 sec Master Down interval is 3.609 sec (expires in 2.877 sec)R1's own Master Down Interval is 3.570 sec (priority 110), while R2 calculates 3.609 sec for itself (priority 100, the default).
Each router computes this value from its own priority, so the two numbers differ even on the same group.Answer the question below
What is the default VRRP Advertisement interval?
Answer the question below
With a 2-second Advertisement interval and priority 100, what Master Down interval does R2 show?
Assume R1, the Master, loses power.

Figure 7 – R1 fails and Advertisements stop
The Advertisements stop instantly.
R2 counts down its own Master Down Interval, 3.609 seconds, then declares R1 gone and transitions to Master.%VRRP-6-STATECHANGE: GigabitEthernet0/0 Grp 1 state Backup -> Master
Figure 8 – R2 takes over the VIP and Virtual MAC
R2 immediately sends a gratuitous ARP sourced from the same Virtual MAC, 0000.5e00.0101.
Every switch on the path relearns that MAC on the port leading to R2.
A host in the LAN never notices anything: same VIP, same VMAC, only the physical router changed.Group secured and timers set: let's explore default preemption and VRRPv3 features.
Answer the question below
With the default priority of 100, how long does R2 wait before declaring the Master down?