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.
    1. On the router intended as the owner for a particular network or subnet, enter the global configuration context and enable VRRP:router vrrp ipv4 enableor router vrrp ipv6 enable

    2. 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.

    3. Configure the router's real IP address for the current VLAN interface as the VIP for the VR instance. virtual-ip-address ipaddr

    4. Activate the owner VR instance:enable

    5. 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 1.
    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 enableor router vrrp ipv6 enable

    2. 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)

    3. 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

    4. 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

    5. Activate the backup VR instance:enable

    6. 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.