Steps for provisioning VRRP operation
Basic configuration process
This process assumes the following for VRRP operation:
• VLANs on the selected routers are already configured and IP-enabled.
• IP routing (IPv4) or IPv6 unicast-routing (IPv6) is enabled.
• The network topology allows multiple paths for routed traffic between edge devices.
Procedure
1.
Configure the owner for VRRP operation and a VR instance.
a.
On the router intended as the owner for a particular network or subnet, enter the global configuration
context and enable VRRP:
router vrrp ipv4 enable
or
router vrrp ipv6 enable
b.
Enter the desired VLAN context and configure a VR instance:
vlan
vid
vrrp vrid 1 - 255
(for
IPv4)
vrrp ipv6 vrid 1-255
(for IPv6)This step places the CLI in the context of the specified VR.
c.
Configure the router's real IP address for the current VLAN interface as the VIP for the VR instance.
virtual-ip-address
ipaddr
d.
Activate the owner VR instance:
enable
e.
Inspect the configuration for the owner VR:
show vrrp vlan
vid
vrid
vrid-#
config
(IPv4)
show
vrrp ipv6 vlan
vid
vrid
vrid-#
config
(IPv6)
2.
Leave the owner's advertisement interval at its default (1 second).
3.
Configure a backup for the same VR instance as for the owner in step
.
a.
On another router with an interface in the same network or subnet as is the owner configured in step
,
enter the global configuration context and enable VRRP:
router vrrp ipv4 enable
or
router vrrp
ipv6 enable
b.
Configure (and enter) the same VR instance as was configured for the owner in step
:
vlan
vid
vrrp
vrid 1 - 255
(for IPv4)
vrrp ipv6 vrid 1-255
(for IPv6)
c.
Optional: If there is only one backup router, or if you want the priority among backups to be determined by
the lowest IP address among the backups, leave the VR instance priority for the current backup router at
the default of 100. (Applies only to the "real" IP addresses that are part of this VR—there may be other
addresses on the routers that are lower—but only the interfaces participating in the VR are part of this
determination.) If you want to control backup router priority by creating a numeric hierarchy among the
backup routers in the VR, set the priority on each accordingly:
priority 1 - 254
d.
Configure the VIP for the current VR. Use the same address as you used for the owner router's instance of
the VR.
virtual-ip-address
ipaddr
e.
Activate the backup VR instance:
enable
f.
Inspect the configuration for the owner VR:
show vrrp vlan
vid
vrid
vrid-#
config show vrrp
ipv6 vlan
vid
vrid
vrid-#
config
(for IPv6)Leave the advertisement interval for backup routers
at the default (1 second).
4.
Repeat step 2 for each backup router on the same VR.
Chapter 16 Virtual Router Redundancy Protocol (VRRP)
343