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 FigureĀ 33 is assigned as a backup device. Repeat this task for all devices that are to be designated as backup devices.

  1. On the device designated as a backup VRRP device, from privileged EXEC mode, enter global configuration mode by issuing the configure terminal command.
    device# configure terminal
    
  2. Globally enable VRRP.
    device(config)# router vrrp
    
  3. Configure the Ethernet interface link.
    device(config)# interface ethernet 1/1/5
    
  4. 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.
    device(config-if-e1000-1/1/5)# ip address 10.53.5.3/24
    
  5. Assign Router 2 to VRID 1, the same VRID as Router 1.
    device(config-if-e1000-1/1/5)# ip vrrp vrid 1
    
    NOTE
    You can assign a VRID number in the range of 1 through 255.
  6. Designate this router as a backup VRRP device.
    device(config-if-e1000-1/1/5-vrid-1)# backup priority 110
    
    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.
  7. Configure the VRRP version.
    device(config-if-e1000-1/1/5-vrid-1)# version 2
    
  8. Configure the number of seconds between hello messages.
    device(config-if-e1000-1/1/5-vrid-1)# hello-interval 10
    
  9. 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.
    device(config-if-e1000-1/1/5-vrid-1)# advertise backup
    
  10. Configure the IP address of the VRID.
    device(config-if-e1000-1/1/5-vrid-1)# ip-address 10.53.5.1
    
    The VRID IP address is the same virtual IP address you used for Router 1.
  11. Enable the VRRP session.
    device(config-if-e1000-1/1/5-vrid-1)# activate
    VRRP router 1 for this interface is activating
    

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