Configuring device redundancy using VSRP

Virtual Switch Redundancy Protocol (VSRP) provides device redundancy for specific ports in a port-based VLAN. Configuring VSRP device redundancy in your network leads to faster failover times if an interface goes offline.

VSRP is enabled after assigning a Virtual Routing ID (VRID) on specific ports in a port-based VLAN and setting a backup priority for the device. Repeat this task on each device selected for VSRP redundancy.
NOTE
VSRP is enabled by default on Brocade devices, but may be disabled if Virtual Router Redundancy Protocol (VRRP) or VRRP Extended (VRRP-E) is currently enabled.
  1. On any device on which you want to configure VSRP service, from privileged EXEC mode, enter global configuration mode by issuing the configure terminal command.
    device# configure terminal
    
  2. Optionally, globally enable the VSRP protocol.
    This is required only if VSRP was disabled earlier and you want to re-enable it.
    device(config)# router vsrp
    
  3. Configure a VLAN by assigning an ID to the VLAN.
    device(config)# vlan 200
    
  4. Configure the interfaces on which VSRP service is to be enabled by adding ports to the VLAN.
    device(config-vlan-200)# tagged ethernet 1/1/1 to 1/1/8
    
    In this example, a range of tagged Ethernet interfaces is configured.
  5. Assign a VSRP VRID to the VLAN.
    device(config-vlan-200)# vsrp vrid 1
    
  6. (Optional) Add additional ports to the VSRP instance.
    device(config-vlan-200-vrid-1)# include-port ethernet 1/1/10
    
  7. (Optional) Configure VRID IP address if you are configuring Layer 3 redundancy.
    device(config-vlan-200-vrid-1)# ip-address 10.10.10.1
    
    VSRP does not require you to specify an IP address. If you do not specify an address, VSRP provides Layer 2 redundancy. If you specify an IP address, VSRP provides Layer 2 and Layer 3 redundancy.
  8. Designate this device as a backup VSRP device with a priority higher than the default priority.
    device(config-vlan-200-vrid-1)# backup priority 110
    
    The priority is used to determine the initial VSRP master device. If a VSRP master device goes offline, the backup device with the highest priority will assume the role of master device.
  9. Enable a backup router to send hello messages to the master VSRP device.
    device(config-vlan-200-vrid-1)# advertise backup
    
    By default, backup VSRP devices do not send hello messages to advertise themselves to the master.
  10. Enable the VRRP session.
    You can also use the enable command to enable the VRRP session.
    device(config-vlan-200-vrid-1)# activate
    
  11. Return to privileged EXEC mode.
    device(config-vlan-200-vrid-1)# end
    
  12. Display VSRP information about the VRID to verify the configuration steps in this task.
    device# show vsrp vrid 1
    
    Total number of VSRP routers defined: 2
    VLAN 200
    auth-type no authentication
    VRID 1
    State    Administrative-status  Advertise-backup  Preempt-mode  save-current
    standby  enabled                disabled          true          false
    
    Parameter      Configured   Current   Unit
    priority       110          80        (100-0)*(4.0/5.0)
    hello-interval 10           1         sec/1
    dead-interval  10           3         sec/1
    hold-interval  3            3         sec/1
    initial-ttl    5            5         hops
    next hello sent in 00:00:00.8
    Member ports: ethe 1/1/1 to 1/1/8
    Operational ports: ethe 1/1/1 to 1/1/6
    Forwarding ports:  ethe 1/1/1 to 1/1/6
    
    This is an optional step. Before entering the show vsrp vrid command, you may need to activate several VSRP backup devices.

The following example configures VSRP service for VRID 1 on Ethernet interfaces 1/1/1 to 1/1/8 of VLAN 200.

device# configure terminal
device(config)# router vsrp
device(config)# vlan 200
device(config-vlan-200)# tagged ethernet 1/1/1 to 1/1/8
device(config-vlan-200)# vsrp vrid 1
device(config-vlan-200-vrid-1)# backup priority 110
device(config-vlan-200-vrid-1)# advertise backup
device(config-vlan-200-vrid-1)# activate
device(config-vlan-200-vrid-1)# end
device# show vsrp vrid 1