display vrrp

Use display vrrp to display the states of IPv4 VRRP groups.

Syntax

display vrrp [ interface interface-type interface-number [ vrid virtual-router-id ] ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface interface-type interface-number: Specifies an interface by its type and number.

vrid virtual-router-id: Specifies an IPv4 VRRP group by its virtual router ID in the range of 1 to 255.

verbose: Displays detailed IPv4 VRRP group information. If the verbose keyword is not specified, this command displays brief IPv4 VRRP group information.

Usage guidelines

Examples

# Display brief information about all IPv4 VRRP groups on the device when VRRP operates in standard mode.

<Sysname> display vrrp
IPv4 Virtual Router Information:
 Running Mode      : Standard
 Total number of virtual routers : 1
 Interface          VRID  State        Running Adver   Auth     Virtual
                                       Pri     Timer   Type        IP 
 ---------------------------------------------------------------------
 Vlan2              1     Master       150     100     Simple   1.1.1.1

Table 18: Command output (in standard mode)

Field

Description

Running Mode

VRRP operating mode (standard mode).

Total number of virtual routers

Total number of VRRP groups.

Interface

Interface where the VRRP group is configured.

VRID

Virtual router ID (VRRP group number).

State

Status of the router in the VRRP group:

  • Master.

  • Backup.

  • Initialize.

  • Inactive.

Running Pri

Current priority of the router.

When a track entry is associated with a VRRP group on the router, the router's priority changes when the track entry's status changes.

Adver Timer

VRRP advertisement sending interval in centiseconds.

Auth Type

Authentication type:

  • None—No authentication.

  • Simple—Simple text authentication.

  • MD5—MD5 authentication.

Virtual IP

Virtual IP address of the VRRP group.

# Display detailed information about all IPv4 VRRP groups on the device when VRRP operates in standard mode.

<Sysname> display vrrp verbose
IPv4 Virtual Router Information:
 Running Mode      : Standard
 Total number of virtual routers : 2
   Interface Vlan-interface2
     VRID           : 1                    Adver Timer  : 100
     Admin Status   : Up                   State        : Master
     Config Pri     : 150                  Running Pri  : 150
     Preempt Mode   : Yes                  Delay Time   : 5
     Auth Type      : Simple               Key          : ******
     Virtual IP     : 1.1.1.1
     Virtual MAC    : 0000-5e00-0101
     Master IP      : 1.1.1.2
   VRRP Track Information:
     Track Object   : 1                    State : Positive   Pri Reduced : 50
   Interface Vlan-interface2
     VRID           : 11                   Adver Timer  : 100
     Admin Status   : Up                   State        : Backup
     Config Pri     : 80                   Running Pri  : 80
     Preempt Mode   : Yes                  Delay Time   : 0
     Become Master  : 2370ms left
     Auth Type      : None
     Virtual IP     : 1.1.1.11
     Master IP      : 1.1.1.12

Table 19: Command output (in standard mode)

Field

Description

Running Mode

VRRP operating mode (standard mode).

Total number of virtual routers

Total number of VRRP groups.

Interface

Interface where the VRRP group is configured.

VRID

Virtual router ID (VRRP group number).

Adver Timer

VRRP advertisement sending interval in centiseconds.

Admin Status

Administrative status: up or down.

State

Status of the router in the VRRP group:

  • Master.

  • Backup.

  • Initialize.

  • Inactive.

Config Pri

Configured priority of the router, which is configured through the vrrp vrid priority command.

Running Pri

Current priority of the router.

When a track entry is associated with a VRRP group on the router, the router's priority changes when the track entry's status changes.

Preempt Mode

Preemptive mode:

  • Yes.

  • No.

Delay Time

Preemption delay time in seconds.

Become Master

Time, in milliseconds, that a backup router has to wait before it becomes the master.

Auth Type

Authentication type:

  • None—No authentication.

  • Simple—Simple text authentication.

  • MD5—MD5 authentication.

Key

Authentication key, which is not displayed if no authentication is required.

Virtual IP

Virtual IP address of the VRRP group.

Virtual MAC

Virtual MAC address of the VRRP group's virtual IP address, which is displayed when the router is the master.

Master IP

Primary IP address of the interface where the master resides.

VRRP Track Information

Track entry information. This field is displayed only after you have configured the vrrp vrid track command.

Track Object

Track entry which is associated with the VRRP group.

State

Track entry state:

  • Negative.

  • Positive.

  • NotReady.

Pri Reduced

Value by which the priority decreases when the status of the associated track entry becomes negative.

Switchover

Switchover mode. When the status of the associated track entry becomes negative, the backup immediately becomes the master.