display vrrp binding

Use display vrrp binding to display master-to-subordinate IPv4 VRRP group bindings.

Syntax

display vrrp binding [ interface interface-type interface-number [ vrid virtual-router-id ] | name name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

interface interface-type interface-number: Specifies an interface by its type and number. The interface must be an interface to which master IPv4 VRRP groups belong.

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

name name: Specifies a master IPv4 VRRP group by its name, a case-sensitive string of 1 to 20 characters.

Usage guidelines

If you do not specify any parameters, this command displays all master-to-subordinate IPv4 VRRP group bindings.

If you specify an interface but do not specify the virtual router ID of a master VRRP group, this command displays all master-to-subordinate VRRP group bindings on the specified interface.

If you specify an interface and the virtual router ID of a master VRRP group, this command displays the binding information about the specified master VRRP group on the specified interface.

Examples

# Display master-to-subordinate IPv4 VRRP group bindings.

[Sysname] display vrrp binding
IPv4 virtual router binding information:
  Total number of master virtual routers            : 1
  Total number of subordinate virtual routers       : 2
Interface : Vlan2                     Master VRID : 1
  Name      : a                         Status      : Backup
  Subordinate virtual routers : 1
    Interface : Vlan2                   VRID        : 4

  Interface : --                        Master VRID : --
  Name      : c                         Status      : --
  Subordinate virtual routers : 1
    Interface : Vlan2                   VRID        : 5

Table 35: Command output

Field

Description

Total number of master virtual routers

Total number of master VRRP groups.

Total number of subordinate virtual routers

Total number of subordinate VRRP groups.

Interface

Interface to which the master VRRP group belongs. If the master VRRP group does not exist, this field displays two hyphens (--).

Master VRID

Virtual router ID of the master VRRP group. If the master VRRP group does not exist, this field displays two hyphens (--).

Name

Name of the master VRRP group.

Status

Status of the router in the master VRRP group:

  • Master.

  • Backup.

  • Initialize.

  • Inactive.

If the master VRRP group does not exist, this field displays two hyphens (--).

Subordinate virtual routers

Number of subordinate VRRP groups.

Interface

Interface to which the subordinate VRRP group belongs.

VRID

Virtual router ID of the subordinate VRRP group.

Related commands

vrrp vrid follow

vrrp vrid name