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.
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 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
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.device(config-vrrp-group-1)# priority 110
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
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
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