Enabling a Backup VRRP Device
This task is performed on any device that is designated as a backup VRRP device. For each VRRP virtual routing instance, there is one master device and all other devices are backups. For example, Router 2 in Basic VRRP Topology is assigned as a backup device. Repeat this task for all devices that are to be designated as backup devices.
- On the device designated as a backup VRRP device, from privileged EXEC mode, enter
global configuration mode by issuing the
configure terminalcommand. - Globally enable VRRP.
- Configure the Ethernet interface link.
- Configure the IP address of the interface for Router 2. All devices configured for the same virtual router ID (VRID) must be on the same subnet.
- Assign Router 2 to VRID 1, the same VRID as Router 1.
Note: You can assign a VRID number in the range of 1 through 255.
- Designate this router as a backup VRRP device.
While configuring a backup device, you can set a priority that is used when a master VRRP device goes offline. The backup device with the highest priority will assume the role of master device.
- Configure the VRRP version.
- Configure the number of seconds between hello messages.
- By default, backup VRRP devices do not send hello messages to advertise themselves to the master. Use the following command to enable a backup router to send hello messages to the master VRRP device.
- Configure the IP address of the VRID.
The VRID IP address is the same virtual IP address you used for Router 1.
- Enable the VRRP session.
The following example configures a VRRP backup device.
device# configure terminal device(config)# router vrrp device(config)# interface ethernet 1/1/5 device(config-if-e1000-1/1/5)# ip address 10.53.5.3/24 device(config-if-e1000-1/1/5)# ip vrrp vrid 1 device(config-if-e1000-1/1/5-vrid-1)# backup priority 110 device(config-if-e1000-1/1/5-vrid-1)# version 2 device(config-if-e1000-1/1/5-vrid-1)# hello-interval 10 device(config-if-e1000-1/1/5-vrid-1)# advertise backup device(config-if-e1000-1/1/5-vrid-1)# ip-address 10.53.5.1 device(config-if-e1000-1/1/5-vrid-1)# activate VRRP router 1 for this interface is activating