• No results found

Displaying VSRP Information Using the CLI

You can display the following VSRP information:

• Configuration information and current parameter values for a VRID or VLAN

• The interfaces on a VSRP-aware device that are active for the VRID Displaying VRID Information

To display VSRP information, enter the following command:

HP9300(config-vlan-200-vrid-1)# 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 100 80 (100-0)*(4.0/5.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.8 Member ports: ethe 1/1 to 1/5 Operational ports: ethe 1/1 to 1/4 Forwarding ports: ethe 1/1 to 1/4

Syntax: show vsrp [vrid <num> | vlan <vlan-id>]

This display shows the following information when you use the vrid <num> or vlan <vlan-id> parameter. For information about the display when you use the aware parameter, see “Displaying the Active Interfaces for a VRID” on page 10-36.

Table 10.5: CLI Display of VSRP VRID or VLAN Information This Field...

Total number of VSRP routers defined

VLAN auth-type

VRID parameters

Displays...

The total number of VRIDs configured on this device.

The VLAN on which VSRP is configured.

The authentication type in effect on the ports in the VSRP VLAN.

VRID state

The VRID for which the following information is displayed.

This device’s 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.

Note: If the state is “initialize” and the mode is incomplete, make sure you have specified the IP address for the VRID.

• standby – This device is a Backup for the VRID.

• master – This device is the Master for the VRID.

Table 10.5: CLI Display of VSRP VRID or VLAN Information (Continued) This Field...

Administrative-status

Advertise-backup

Preempt-mode

save-current

Displays...

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 VRRPE has not been activated on the interface.

• enabled – VSRP has been activated on the interface.

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 does send Hello messages when it is a Backup.

Whether the device can be pre-empted 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 pre-empted.

• enabled – The device can be pre-empted.

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.

Note: For the following fields:

• 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’s true value is the value listed in the Configured or Current field divided by the scale value.

priority

hello-interval

The device’s 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.

The number of seconds between Hello messages from the Master to the Backups for a given VRID.

Table 10.5: CLI Display of VSRP VRID or VLAN Information (Continued)

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.

Note: If the value is 0, then you have not configured this parameter.

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.

The number of hops a Hello message can traverse after leaving the device before the Hello message is dropped.

Note: An MRP ring counts as one hop, regardless of the number of nodes in the ring.

The amount of time until the Master’s 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 Routing Switch itself will become the Master.

Note: This field applies only when this device is a Backup.

The ports in the VRID.

The member ports that are currently up.

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.

Displaying the Active Interfaces for a VRID

On a VSRP-aware device, you can display VLAN and port information for the connections to the VSRP devices (Master and Backups).

To display the active VRID interfaces, enter the following command on the VSRP-aware device:

HP9300(config-vlan-200-vrid-1)# show vsrp aware

This display shows the following information when you use the aware parameter. For information about the display when you use the vrid <num> or vlan <vlan-id> parameter, see “Displaying VRID Information” on page 10-34.

Table 10.6: CLI Display of VSRP-Aware Information This Field...

VLAN ID

VRID Last Port

Displays...

The VLAN that contains the VSRP-aware device’s connection with the VSRP Master and Backups.

The VRID.

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.

Related documents