(VRRP) Virtual Router Redundancy Protocol
VRRP Overview
- The Virtual Router Redundancy Protocol is an open standard FHRP and is used amongst multi-vendor environments. Although not Cisco proprietary, VRRP and HSRP are closely related in terms of command structure and strive towards the same goal of providing reliable automatic failover for gateway devices on the network.
- Terminology
- Master Router
- The Master router in a VRRP configuration handles the traffic for the virtual IP Address
- Backup Router
- The Backup router in a VRRP configuration is ready to take over in case of Master router failure
- (VIP) Virtual IP Address
- A VIP is a virtual IP address that network clients use as their default gateway
- Both the Master and Backup routers are put into a VRRP group and assigned a virtual IP address
- A virtual MAC address is also used in conjunction with the VIP
- In VRRP, the physical IP address of a VRRP router is able to be used as the vIP of a group
- Advertisement Packets
- Advertisement packets are multicast messages that the master router in a VRRP group sends to maintain communication and establish master and backup roles
- Unlike HSRP, the master router in VRRP is the only device that sends Advertisement/Hello packets
- If a backup router fails to receive Advertisement packets from the master router, it will trigger failover and assume the master role
- Advertisement packets sent to multicast address 224.0.0.18
- Advertisement Packet Timers
- Advertisement Interval Timer
- By default advertisement packets are sent every 1 second
- Down Interval
- By default the down interval for missed advertisement packets is 3 seconds
- Priority
- Used by routers in a VRRP group, the priority value determines which router will become the master or backup router
- By default, the priority value is set to '100' of each router in a VRRP group
- The router with the highest priority becomes the master router
- Priority values range between 0 and 255
- Preemption
- Used in conjunction with Priority, Preemption allows a router to take over the master role if it has a higher priority than the current master router even if the current master router is still functioning
- By default, preemption is enabled in VRRP
- VRRP States
- Initial
- The starting state for all routers in the VRRP group
- In this state, routers are waiting to start the VRRP process
- Backup
- Router is in the Backup role ready to take over if the master router fails
- Backup router actively monitors the master router's advertisement packets
- Master
- Router is in the Master role and is responsible for handling traffic to and from the VIP
- Version Similarities and Differences
- Similarities
- Multicast Address
- VRRPv2 and VRRPv3 use multicast address 224.0.0.18
- Address represents the 'VRRPv2 and VRRPv3' address meaning that any packet destined to this address will reach all VRRPv2 and v3 routers on the local network
- Virtual MAC Address
- VRRPv2 and VRRPv3 use the format '0000.5e00.01XX' for the virtual mac address of the VRRP group
- The 'xx' stands for the VRRP group number in hexadecimal
- Groups
- VRRPv2 and VRRPv3 support up to 255 group instances
- Differences
- VRRPv2 is the default version when configuring VRRP
- VRRPv3 supports IPv4 and IPv6 networks
- Advanced Features
- Object Tracking
- Line Protocol
- Tracked IP Route Object
- Tracked IP SLA Object
- Authentication
- Plain-Text
- MD5
- Key Chain Keys
- Multigroup Load Sharing
- Implementing Two VRRP Groups