< Home

display vrrp

Function

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

Format

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

Parameters

Parameter Description Value
interface interface-type interface-number Displays the status of VRRP backup groups on a specified interface. -
virtual-router-ID Displays the status of a specified VRRP backup group. The value is an integer ranging from 1 to 255.
brief Displays brief information about the VRRP backup group. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can view the status and configuration parameters of the current VRRP backup group:

  • If neither the interface name nor the backup group ID is set in the command, you can view the status of all VRRP backup groups associated with the FW.
  • If only the interface name is set in the command, you can view the status of all VRRP backup groups associated with the interface.
  • If both the interface name and the backup group ID are set in the command, you can view the status of the relevant VRRP backup group.

Example

# Display all VRRP backup groups associated with the FW.

HRP_M<sysname> display vrrp
  GigabitEthernet0/0/1 | Virtual Router 1                                       
    State : Master                                                              
    Virtual IP : 10.100.10.1                                                     
    Master IP : 10.100.10.10 
    PriorityRun : 120                                                           
    PriorityConfig : 100                                                        
    MasterPriority : 120                                                        
    Preempt : YES   Delay Time : 0                                              
    TimerRun : 60 s                                                                 
    TimerConfig : 60 s                                                              
    Auth Type : SIMPLE   Auth key : ******  
    Virtual Mac :  0000-5e00-0101                                               
    Check TTL : YES                                                             
    Config type : vgmp-vrrp                                                     
    Backup-forward : disabled                                                   
    Create time : 2015-07-21 16:33:58 UTC+08:00                                 
    Last change time : 2015-07-21 16:33:58 UTC+08:00           

 GigabitEthernet0/0/1 | Virtual Router 2                                       
    State : Master                                                              
    Virtual IP : 10.100.30.1                                                    
    Master IP : 10.100.30.10
    PriorityRun : 120                                                           
    PriorityConfig : 100                                                        
    MasterPriority : 120                                                        
    Preempt : YES   Delay Time : 0                                              
    TimerRun : 60 s                                                                 
    TimerConfig : 60 s                                                              
    Auth Type : SIMPLE   Auth key : ******          
    Virtual Mac :  0000-5e00-0102                                               
    Check TTL : YES                                                             
    Config type : vgmp-vrrp                                                     
    Backup-forward : disabled                                                   
    Create time : 2015-07-21 16:34:58 UTC+08:00                                 
    Last change time : 2015-07-21 16:34:58 UTC+08:00           

  GigabitEthernet0/0/3 | Virtual Router 3                                       
    State : Master                                                              
    Virtual IP : 10.100.50.1                                                    
    Master IP : 10.100.50.10
    PriorityRun : 120                                                           
    PriorityConfig : 100                                                        
    MasterPriority : 120                                                        
    Preempt : YES   Delay Time : 0                                              
    TimerRun : 60 s                                                                 
    TimerConfig : 60 s                                                              
    Auth Type : SIMPLE   Auth key : ******      
    Virtual Mac :  0000-5e00-0103                                               
    Check TTL : YES                                                             
    Config type : vgmp-vrrp                                                     
    Backup-forward : disabled                                                   
    Create time : 2015-07-21 16:35:58 UTC+08:00                                 
    Last change time : 2015-07-21 16:35:58 UTC+08:00           

# Display information about all VRRP backup groups on the interface.

HRP_M<sysname> display vrrp interface GigabitEthernet 0/0/1
  GigabitEthernet0/0/1 | Virtual Router 1  
    State : Master                                                              
    Virtual IP : 10.100.10.1                                                     
    Master IP : 10.100.10.10
    PriorityRun : 120                                                           
    PriorityConfig : 100                                                        
    MasterPriority : 120                                                        
    Preempt : YES   Delay Time : 0                                              
    TimerRun : 60 s                                                                 
    TimerConfig : 60 s                                                              
    Auth Type : SIMPLE   Auth key : ******    
    Virtual Mac :  0000-5e00-0101                                               
    Check TTL : YES                                                             
    Config type : vgmp-vrrp                                                     
    Backup-forward : disabled                                                   
    Create time : 2015-07-21 16:33:58 UTC+08:00                                 
    Last change time : 2015-07-21 16:33:58 UTC+08:00           

  GigabitEthernet0/0/1 | Virtual Router 2    
    State : Master                                                              
    Virtual IP : 10.100.30.1                                                    
    Master IP : 10.100.30.10
    PriorityRun : 120                                                           
    PriorityConfig : 100                                                        
    MasterPriority : 120                                                        
    Preempt : YES   Delay Time : 0                                              
    TimerRun : 60 s                                                                 
    TimerConfig : 60 s                                                              
    Auth Type : SIMPLE   Auth key : ******      
    Virtual Mac :  0000-5e00-0102                                               
    Check TTL : YES                                                             
    Config type : vgmp-vrrp                                                     
    Backup-forward : disabled                                                   
    Create time : 2015-07-21 16:34:58 UTC+08:00                                 
    Last change time : 2015-07-21 16:34:58 UTC+08:00           

# Display information about the specified VRRP backup groups on the interface.

HRP_M<sysname> display vrrp interface GigabitEthernet 0/0/1 1
  GigabitEthernet0/0/1 | Virtual Router 1                                       
    State : Master                                                              
    Virtual IP : 10.100.10.1                                                     
    Master IP : 10.100.10.10
    PriorityRun : 120                                                           
    PriorityConfig : 100                                                        
    MasterPriority : 120                                                        
    Preempt : YES   Delay Time : 0               
    TimerRun : 60 s                              
    TimerConfig : 60 s                                  
    Auth Type : SIMPLE   Auth key : ******   
    Virtual Mac :  0000-5e00-0101                                               
    Check TTL : YES                                                             
    Config type : vgmp-vrrp                                                     
    Backup-forward : disabled                                                   
    Create time : 2015-07-21 16:33:58 UTC+08:00                                 
    Last change time : 2015-07-21 16:33:58 UTC+08:00           
Table 1 Description of the display vrrp command output

Item

Description

GigabitEthernet0/0/x | Virtual Router y

Interface where the VRRP backup group resides and ID of the VRRP backup group.

State

VRRP status:
  • Master: The device works as the Master in the backup group.

  • Backup: The device works as the Backup in the backup group.

  • Initialize: A state of the VRRP backup group. All VRRP backup groups originate from this status. When the status of an interface is Down or administratively Down, the status of the VRRP backup group on the interface is switched to Initialize.

Virtual IP

Virtual IP address.

Master IP

IP address of the main interface on the master device.

PriorityRun

Priority of a VRRP backup group.

PriorityConfig

Configured priority.

MasterPriority

Priority value of the Master device in the VRRP backup group

Preempt

Preemption mode:
  • YES: preemption

  • NO: no preemption.

Delay Time

Delay time (seconds) in the preemption mode.

TimerRun

Current value of the VRRP timer, 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 packet authentication type:
  • NONE

  • SIMPLE

  • MD5

To set an authentication mode, run the vrrp vrid authentication-mode command.

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.

Check TTL

Whether to check TTL of a VRRP packet:
  • YES
  • NO

Config type

Type of a VRRP backup group:
  • vgmp-vrrp

Backup-forward

Whether a backup device is enabled to forward traffic:

  • enabled
  • disabled

Create time

Date and time when the VRRP backup group was created.

Last change time

Last time for the status of the VRRP backup group to change.

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