show vsrp

Displays the Virtual Switch Redundancy Protocol (VSRP) information.
Syntax
show vsrp [ aware ] [ vlan vlan-id [ vrid-num ] | vrid vrid-num ]
show vsrp [ brief ]
Parameters
aware
Displays information about VSRP-aware devices.
vlan vlan-id
Displays VSRP information for the VLAN ID.
vrid vrid-num
Displays information for the ports with VSRP enabled.
brief
Displays the VSRP information summary.
Modes

User EXEC mode

The show vsrp command displays the following information:

Output field Description
Total number of VSRP routers defined The total number of VRIDs configured on this device.
VLAN The VLAN on which VSRP is configured.
auth-type The authentication type in effect on the ports in the VSRP VLAN.
VRID The VRID for which the VSRP information is displayed.
state The device VSRP state for the VRID. The state can be one of the following:
  • initialize: The VRID is not enabled (activated). If the state remains "initialize" after you activate the VRID, make sure that the VRID is also configured on the other routers and that the routers can communicate with each other.
  • standby: This device is a backup for the VRID.
  • master: This device is the master for the VRID.
Administrative-status The administrative status of the VRID. The administrative status can be one of the following:
  • disabled: The VRID is configured on the interface but VSRP or VRRP-E has not been activated on the interface.
  • enabled: VSRP has been activated on the interface.
Advertise-backup Whether the device is enabled to send VSRP Hello messages when it is a backup. This field can have one of the following values:
  • disabled: The device does not send Hello messages when it is a backup.
  • enabled: The device sends Hello messages when it is a backup.
Preempt-mode Whether the device can be preempted by a device with a higher VSRP priority after this device becomes the master. This field can have one of the following values:
  • disabled: The device cannot be preempted.
  • enabled: The device can be preempted.
save-current The source of VSRP timer values preferred when you save the configuration. This field can have one of the following values:
  • false: The timer values configured on this device are saved.
  • true: The timer values most recently received from the master are saved instead of the locally configured values.
Configured Indicates the parameter value configured on this device.
Current Indicates the parameter value received from the master.
Unit Indicates the formula used tor calculating the VSRP priority and the timer scales in effect for the VSRP timers. A timer true value is the value listed in the Configured or Current field divided by the scale value.
priority The device preferability for becoming the master for the VRID. During negotiation, the backup with the highest priority becomes the master. If two or more backups are tied with the highest priority, the backup interface with the highest IP address becomes the master for the VRID.
hello-interval The number of seconds between Hello messages from the master to the backups for a given VRID.
dead-interval The configured value for the dead interval. The dead interval is the number of seconds a backup waits for a Hello message from the master for the VRID before determining that the master is no longer active. If the master does not send a Hello message before the dead interval expires, the backups negotiate (compare priorities) to select a new master for the VRID. If the value is 0, then you have not configured this parameter.
hold-interval The number of seconds a backup that intends to become the master will wait before actually beginning to forward Layer 2 traffic for the VRID. If the backup receives a Hello message with a higher priority than its own before the hold-down interval expires, the backup remains in the backup state and does not become the new master.
initial-ttl The number of hops a Hello message can traverse after leaving the device before the Hello message is dropped. A metro ring counts as one hop, regardless of the number of nodes in the ring.
next hello sent in The amount of time until the master dead interval expires. If the backup does not receive a Hello message from the master by the time the interval expires, either the IP address listed for the master will change to the IP address of the new master, or this Layer 3 switch itself will become the master. This field applies only when this device is a backup.
Member ports Lists the ports in the VRID.
Operational ports Lists the member ports that are currently up.
Forwarding ports Lists the member ports that are currently in the forwarding state. Ports that are forwarding on the master are listed. Ports on the Standby, which are in the blocking state, are not listed.
Restart ports Lists the member ports that have VSRP fast start enabled and displays in parentheses the failover downtime configured for each port. Only ports that are on the master are listed. If the device is in the standby state, then “None” is displayed.

The show vsrp aware command displays the following information:

Output field Description
Last Port The most recent active port connection to the VRID. This is the port connected to the current master. If a failover occurs, the VSRP-aware device changes the port to the port connected to the new master. The VSRP-aware device uses this port to send and receive data through the backed-up node.
Examples

The following example shows the output of the show vsrp aware command.

device# show vsrp aware
Aware port listing
VLAN ID    VRID    Last Port
100        1       1/3/2
200        2       1/4/1

The following example shows the output of the show vsrp vlan vlan-idvrid-num command.

device# show vsrp vlan 100 100
VLAN 100
auth-type no authentication
VRID 100
========
State     Administrative-status    Advertise-backup    Preempt-mode    save-current
master    enabled                  disabled            true            false
Parameter          Configured       Current            Unit/Formula
priority           100              50                 (100-0)*(2.0/4.0)
hello-interval     1                1                  sec/1
dead-interval      3                3                  sec/1
hold-interval      3                3                  sec/1
initial-ttl        2                2                  hops
next hello sent in 00:00:00.3
Member ports:      ethe 1/2/5 to 1/2/8
Operational ports: ethe 1/2/5 ethe 1/2/8
Forwarding ports:  ethe 1/2/5 ethe 1/2/8
Restart ports:     1/2/5(1) 1/2/6(1) 1/2/7(1) 1/2/8(1)