Basic configuration process
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.
- Configure the owner for VRRP
operation and a VR instance.
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
orrouter vrrp ipv6 enable
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.Configure the router's real IP address for the current VLAN interface as the VIP for the VR instance.
virtual-ip-address ipaddr
Activate the owner VR instance:
enable
Inspect the configuration for the owner VR:
show vrrp vlan vid vrid vrid-# config
(IPv4)show vrrp ipv6 vlan vid vrid vrid-# config
(IPv6)
- Leave the owner's advertisement interval at its default (1 second).
- Configure a backup for the
same VR instance as for the owner in step 1.
On another router with an interface in the same network or subnet as is the owner configured in step 1, enter the global configuration context and enable VRRP:
router vrrp ipv4 enable
orrouter vrrp ipv6 enable
Configure (and enter) the same VR instance as was configured for the owner in step 1:
vlan vid
vrrp vrid 1 - 255
(for IPv4)vrrp ipv6 vrid 1-255
(for IPv6)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
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
Activate the backup VR instance:
enable
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).
- Repeat step 2 for each backup router on the same VR.