Virtual Router Redundancy Protocol (VRRP)
The Virtual Router Redundancy Protocol (VRRP) is an industry-standard Layer-3 redundancy protocol, originally defined in RFC 2338. VRRP is nearly identical to HSRP, with some notable exceptions:
1. The router with the highest priority becomes the master router.
2. All of the other routers become backup routers.
3. The virtual MAC address is the reserved 0000.5e00.01xx, with xx representing the hexadecimal group number.
4. Hello packets are sent every 1 second (by default) to the multicast address representing the hexadecimal group number.
5. Hello packets are sent every 1 second (by default) to the multicast address 224.0.0.18.
6. VRRP will preempt by default.
7. VRRP cannot directly track interfaces – it can track an object which is tied to an interface, though.
The configuration of VRRP is also very similar to that of HSRP:
[Huawei]inter g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[Huawei-GigabitEthernet0/0/0]vrrp vrid 10 virtual-ip 192.168.1.100
[Huawei-GigabitEthernet0/0/0]vrrp vrid 10 priority 150
[Huawei-GigabitEthernet0/0/0]vrrp vrid 10 authentication-mode simple plain Huawei
As with HSRP, the default VRRP priority is 100 and a higher priority is preferred. Unlike HSRP, preemption is enabled by default.
To manually disable preempt:
[Huawei-GigabitEthernet0/0/0]vrrp vrid 10 preempt-mode disable
To view the status of each VRRP group:
[Huawei]disp vrrp
GigabitEthernet0/0/0 | Virtual Router 10
State : Initialize
Virtual IP : 192.168.1.100
Master IP : 0.0.0.0
PriorityRun : 150
PriorityConfig : 150
MasterPriority : 0
Preempt : NO
TimerRun : 1 s
TimerConfig : 1 s
Auth type : SIMPLE Auth key : Huawei
Virtual MAC : 0000-5e00-010a
Check TTL : YES
Config type : normal-vrrp
Backup-forward : disabled
Create time : 2019-03-31 07:33 UTC-08:00
Last change time : 2019-03-31 07:33