Configuring multigroup VRRP routing

Before configuring this task, ensure that a virtual LAN, named vlan 10, has been created.

To implement the configuration of VRRP multigroup clusters as shown in Two routers configured for dual redundant network access for the host, configure one VRRP-E router to act as a master in the first virtual router group and as a backup in the second virtual group. Then configure the second VRRP-E router to act as a backup in the first virtual group and as a master in the second virtual group.

This example is for VRRP-E. There are minor syntax differences for VRRP, which you can determine by consulting the appropriate command reference. The task steps below are configured on Router 1 and there are three configuration examples at the end of the task showing how to configure Router 1 as a backup and Router 2 as a master and a backup VRRP-E device.

  1. Enable the VRRP-E protocol globally.
    device(config)# protocol vrrp-extended
    
  2. Create a VLAN.
    device(config)# vlan 10
    
  3. Bind the VLAN to the virtual Ethernet (ve) interface link for Router 1.
    device(config-vlan 10)# router-interface ve 10
    
  4. Enter virtual Ethernet (ve) interface 10.
    device(config-vlan 10)# interface ve 10
    
  5. Configure the IP address of the ve link for Router 1.
    device(config-if-Ve-10)# ip address 192.168.4.2/24
    
  6. To assign Router 1 to a VRRP-E group called Group 1, enter the command:
    device(config-if-Ve-10)# vrrp-extended-group 1
    
  7. Configure the ethernet port 2/4 as the tracking port for the interface ve 10, with a track priority of 20.
    device(config-vrrp-extended-group-1)# track ethernet 2/4 priority 20
    
  8. Configure an IP address for the virtual router.
    device(config-vrrp-extended-group-1)# virtual-ip 192.168.4.100
    
    Note

    Note

    (For VRRP-E only) The address you enter with the virtual-ip command cannot be the same as a real IP address configured on the interface.
  9. To configure Router 1 as the master, set the priority to a value higher than the default (which is 100).
    device(config-vrrp-group-1)# priority 110
    

Router 1 as backup

The following example configures Router 1 as a backup device for VRRP-E group 2 by configuring a priority (100) that is a lower value than the priority set for Router 2 in VRRP-E group 2.

device(config)# protocol vrrp-extended
device(config)# vlan 10
device(config-vlan-10)# router-interface ve 10
device(config-vlan-10)# interface ve 10
device(config-if-Ve-10)# ip address 192.168.4.2/24
device(config-if-Ve-10)# vrrp-extended-group 2
device(config-vrrp-extended-group-1)# track ethernet 2/4 priority 20
device(config-vrrp-extended-group-1)# virtual-ip 192.168.4.101
device(config-vrrp-group-1)# priority 100

Router 2 as master

The following example configures Router 2 as the master device for VRRP-E group 2 by configuring a priority (110) that is a higher value than the priority set for Router 1 in VRRP-E group 2.

device(config)# protocol vrrp-extended
device(config)# vlan 10
device(config-vlan-10)# router-interface ve 10
device(config-vlan-10)# interface ve 10
device(config-if-Ve-10)# ip address 192.168.4.3/24
device(config-if-Ve-10)# vrrp-extended-group 2
device(config-vrrp-extended-group-2)# track ethernet 2/4 priority 20
device(config-vrrp-extended-group-2)# virtual-ip 192.168.4.101
device(config-vrrp-group-1)# priority 110

Router 2 as backup

The following example configures Router 2 as a backup device for VRRP-E group 1 by configuring a priority (100) that is a lower value than the priority set for Router 1 in VRRP-E group 1.

device(config)# protocol vrrp-extended
device(config)# vlan 10
device(config-vlan-10)# router-interface ve 10
device(config-vlan-10)# interface ve 10
device(config-if-Ve-10)# ip address 192.168.4.3/24
device(config-if-Ve-10)# vrrp-extended-group 1
device(config-vrrp-extended-group-1)# track ethernet 2/4 priority 20
device(config-vrrp-extended-group-1)# virtual-ip 192.168.4.100
device(config-vrrp-group-1)# priority 100