< Home

display vrrp

Function

The display vrrp command displays the status and configuration parameters of VRRP groups.

Format

display vrrp [ interface interface-type interface-number ] [ virtual-router-id ] [ brief ]

display vrrp { interface interface-type interface-number [ virtual-router-id ] | virtual-router-id } verbose

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays the status of all VRRP groups on the specified interface.

  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

virtual-router-id

Displays the status of a VRRP group with the specified VRID.

The VRID of the VRRP group must have been created.

brief

Displays brief information about a specified VRRP group. If this parameter is not specified, detailed information about a VRRP group is displayed.

-

verbose

Displays detailed information about a VRRP group.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display vrrp command displays information about VRRP groups.

Example

# Display information about all VRRP groups on the switch.

<HUAWEI> display vrrp
Vlanif100 | Virtual Router 1              
    State : Master                                                              
    Virtual IP : 10.1.1.100                                                     
    Master IP : 10.1.1.2                                                        
    PriorityRun : 120                                                           
    PriorityConfig : 120                                                        
    MasterPriority : 120                                                        
    Preempt : YES   Delay Time : 20 s                                           
    TimerRun : 2 s                                                              
    TimerConfig : 2 s                                                           
    Auth type : MD5   Auth key : ******            
    Virtual MAC : 0000-5e00-0101                                                
    Check TTL : YES                                                             
    Config type : normal-vrrp                                                   
    Backup-forward : disabled
    Track IF : Eth-Trunk0   Priority reduced : 60    
    IF state : UP 
    Track BFD : 69                     Priority reduced : 10                    
    BFD-session state : UP                                                      
    Create time : 2011-10-07 15:43:42 UTC-08:00               
    Last change time : 2011-10-07 15:44:03 UTC-08:00
Table 1 Description of the display vrrp command output

Item

Description

Vlanif100 | Virtual Router 1

Interface where the VRRP group is configured and VRID of the VRRP group.

State

VRRP status of the device:
  • Master: The device functions as the master in the VRRP group.

  • Backup: The device functions as the backup in the VRRP group.

  • Initialize: All VRRP groups begin in Initialize state. When the interface where a VRRP group is configured becomes Down or is Administratively Down, the VRRP group status is switched to Initialize.

Virtual IP

Virtual IP address of a VRRP group. To configure a virtual IP address for a VRRP group, run the vrrp vrid virtual-ip command.

Master IP

Primary IP address of the interface configured with the VRRP group on the master.

PriorityRun

Priority of the switch when the VRRP group runs. If the switch is the IP address owner in a VRRP group, the running priority of the switch in the group is displayed as 255.

PriorityConfig

Priority configured for the switch using the vrrp vrid priority command. If the switch is the IP address owner and this value is not configured, the default priority 100 but not 255 is displayed.

MasterPriority

Priority of the master in the VRRP group. If the switch is the IP address owner in a VRRP group, the priority of the switch in the group is displayed as 255.

Preempt

Preemption mode:
  • YES: preemption

  • NO: no preemption

To disable the preemption mode, run the vrrp vrid preempt-mode disable command.

Delay Time

Preemption delay, in seconds. To set the preemption delay, run the vrrp vrid preempt-mode timer delay command.

TimerRun

Interval at which the master in the VRRP group sends VRRP Advertisement packets, in seconds.

TimerConfig

Configured interval at which the master in the VRRP group sends VRRP Advertisement packets, in seconds. To set the interval at which the master in the VRRP group sends VRRP Advertisement packets, run the vrrp vrid timer advertise command.

Auth type

VRRP Advertisement packet authentication mode:
  • NONE: non-authentication

  • SIMPLE: simple authentication

  • MD5: MD5 authentication

To set an authentication mode, run the vrrp vrid authentication-mode command. VRRPv3 does not support authentication.

Auth key

Authentication key. If authentication is configured, ****** is displayed. If no authentication is configured, this field is not displayed.

Virtual MAC

Virtual MAC address of the VRRP group.

Check TTL

Whether the TTL value of a VRRP Advertisement packet is checked:
  • YES: The TTL value of a VRRP Advertisement packet is checked.
  • NO: The TTL value of a VRRP Advertisement packet is not checked.
To configure the switch to check the TTL value in a VRRP Advertisement packet, run the vrrp un-check ttl command.

Config type

VRRP group type:
  • normal-vrrp: common VRRP group

  • admin-vrrp: mVRRP group

  • member-vrrp: service VRRP group

Backup-forward

Whether the backup is enabled to forward traffic:

  • enabled

  • disabled

To configure the backup to forward traffic, run the vrrp vrid backup-forward command.

Track IF

Name of a monitored interface when the interface monitoring function of VRRP backup group is enabled.

To configure the parameter, run the vrrp vrid track interface command.

Priority reduced or Priority increased

Value to which the devices decreases or increases a priority if the tracked interface, BFD session, or EFM session goes Down.

When the interface, BFD session, or EFM session tracked by the VRRP backup group goes Down, and the priority of the VRRP backup group is configured to increase, Priorityincreased is displayed.

To configure the parameter, run the vrrp vrid track bfd-session or vrrp vrid track interface command.

IF state

Status of the interface monitored by VRRP:

  • UP

  • DOWN

  • REMOVE

Track BFD

Local discriminator or name of the BFD session associated with the VRRP group. This field is displayed when only the BFD session is associated with the VRRP group.

To configure the BFD session associate with the VRRP group, run the vrrp vrid track bfd-session command.

BFD-session state

Status of the BFD session associated with the VRRP group:

  • UP: A BFD session is in Up state.

  • DOWN: A BFD session is in Down state.

  • AdminDown: A BFD session is in AdminDown state.

Create time

Time when the VRRP group was created.

Last change time

Last time the VRRP group status changed.

# Display brief information about all VRRP groups on the switch.

<HUAWEI> display vrrp brief
Total:1     Master:0     Backup:0     Non-active:1      
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
1     Initialize   Vlanif23                 Normal   10.1.1.100  
Table 2 Description of the display vrrp brief command output

Item

Description

VRID

VRID of the VRRP group.

State

VRRP status of the switch:
  • Master: The switch functions as the master in the VRRP group.

  • Backup: The switch functions as the backup in the VRRP group.

  • Initialize: All VRRP groups begin in Initialize state. When the interface where a VRRP group is configured becomes Down or is Administratively Down, the VRRP group status changes to Initialize.

Interface

Interface configured with the VRRP group.

Type

Type of a VRRP group:
  • normal-vrrp: common VRRP group

  • admin-vrrp: mVRRP group

  • member-vrrp: service VRRP group

Virtual IP

Virtual IP address of the VRRP group.

Total

Number of VRRP groups.

Master

Number of VRRP groups in Master state.

Backup

Number of VRRP groups in Backup state.

Non-active

Number of VRRP groups in Non-active state.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >