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 terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#interface
Router1(config-if)#
FastEthernet0/1
ip address
Router1(config-if)#
10.1.1.2 255.255.255.0
vrrp
1
ip
Router1(config-if)#
10.1.1.1
vrrp
1
preempt
Router1(config-if)#vrrp
1
priority
Router1(config-if)#
200
end
Router1#
The configuration of the Backup VRRP router is identical, except the priority is set to a lower level:
Router2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router2(config)#interface
Router2(config-if)#
FastEthernet0/0
ip address
Router2(config-if)#
10.1.1.3 255.255.255.0
vrrp
1
ip
Router2(config-if)#
10.1.1.1
vrrp
1
preempt
Router2(config-if)#vrrp
1
priority
Router2(config-if)#
150
end
Router2#
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)#vrrp
1
timers advertise
2
By default, the hello timer ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.