VRRP
Problem
You want to implement VRRP on your Cisco router.
Solution
To configure Router1 to be
the Master VRRP router, use the following set of commands and assign a
higher priority level:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#interfaceRouter1(config-if)#FastEthernet0/1ip addressRouter1(config-if)#10.1.1.2 255.255.255.0vrrp1ipRouter1(config-if)#10.1.1.1vrrp1preemptRouter1(config-if)#vrrp1priorityRouter1(config-if)#200endRouter1#
The configuration of the Backup VRRP router is identical, except the priority is set to a lower level:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#interfaceRouter2(config-if)#FastEthernet0/0ip addressRouter2(config-if)#10.1.1.3 255.255.255.0vrrp1ipRouter2(config-if)#10.1.1.1vrrp1preemptRouter2(config-if)#vrrp1priorityRouter2(config-if)#150endRouter2#
Discussion
The VRRP configuration commands are very similar to the HSRP commands, which makes configuring VRRP quite easy if you’re already familiar with HSRP. One noticeable difference is that the VRRP group numbers range from 1 to 255, instead of 0 to 255 (or 0 to 4,095 for HSRP Version 2), and you must supply a group number.
Another interesting difference is the way you modify the timers for VRRP. You are only allowed to modify the hello timer. The hold timer is calculated automatically:
Router1(config-if)#vrrp1timers advertise2
By default, the hello timer ...