display nhrp peer

Function

The display nhrp peer command displays NHRP peer entries.

Format

display nhrp peer { all | protocolAddress }

display nhrp peer { static | dynamic } [ protocolAddress ]

display nhrp peer interface { interface-name | interface-type interface-number } { [ static | dynamic ] | [ protocolAddress ] }

Parameters

Parameter Description Value
all

Displays all NHRP peer entries.

-

protocolAddress

Displays NHRP peer entry information based on the subnet IP address of the NHRP peer.

The value is in dotted decimal notation.

static

Displays static NHRP peer entries.

-

dynamic

Displays dynamic NHRP peer entries.

-

interface interface-name

Specifies the name of an interface.

-

interface-type

Specifies the type of an interface.

-

interface-number

Specifies the number of an interface.

The interface number must already exist.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
nhrp read

Usage Guidelines

To determine whether a spoke has successfully registered, run the display nhrp peer command on the Hub to check whether NHRP peer entries of the spoke are generated. When a communication fault occurs between two spokes, run the display nhrp peer command on a spoke to check whether NHRP peer entries of the destination spoke are generated.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display all NHRP peer entries.
<HUAWEI> display nhrp peer all
------------------------------------------------------------------------------- 
Protocol-addr   Mask                  NBMA-addr       NextHop-addr    Type         Flag         
------------------------------------------------------------------------------- 
172.17.1.103    255.255.255.255    192.168.111.1   172.17.1.103    remote-network      up 
------------------------------------------------------------------------------- 
Tunnel interface: Tunnel0 (VPN instance: _public_)                                          
Created time    : 03:13:38                                                      
Expire time     : 01:46:22                                                      
------------------------------------------------------------------------------- 
Protocol-addr   Mask                NBMA-addr       NextHop-addr    Type         Flag         
------------------------------------------------------------------------------- 
172.17.1.104    255.255.255.255    10.1.1.2        172.17.1.104    registered      up|unique 
------------------------------------------------------------------------------- 
Tunnel interface: Tunnel0 (VPN instance: _public_)                               
Created time    : 00:00:35                                                      
Expire time     : 01:59:25
Table 1 Description of the display nhrp peer command output
Item Description
Protocol-addr

Subnet address or tunnel interface address of the NHRP peer.

Mask

Subnet address mask or tunnel interface address mask of the NHRP peer.

NBMA-addr

Public address of the NHRP peer, which corresponds to the source tunnel interface address of the NHRP peer.

NextHop-addr

Address of the next hop pointing to the protocol address.

Type

Type of the NHRP peer table.

  • dynamic: indicates that the NHRP peer table is dynamically generated by the device.
  • static: indicates that the NHRP peer table is configured by the administrator manually.
  • hub: indicates a static entry with the register parameter.
  • static: indicates a static entry without the register parameter.
  • local: indicates an entry whose peer is itself.
  • registered: indicates a dynamically generated branch registration entry.
  • remote: indicates a dynamically generated entry in which the remote address is a tunnel interface address.
  • remote-network: indicates a dynamically generated entry in which the remote address is a subnet address. If branches save only summarized routes to the headquarters, the source branch can dynamically learn the subnet address of the destination branch.
Flag

NHRP peer entry status:

  • up: indicates that the NHRP peer entry is Up.
  • down: indicates that the NHRP peer entry is Down.
  • unique: indicates that conflicting NHRP peer entries are not overwritten during NHRP registration.
  • no-unique: indicates that conflicting NHRP peer entries are overwritten during NHRP registration.

up/down and unique/no-unique can be displayed simultaneously.

Tunnel interface

Tunnel interface number.

Created time

Time when an NHRP peer entry is created.

Expire time

Time when an NHRP peer entry expires.

VPN instance

VPN instance to which the Tunnel is bound.

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