nhrp entry

Function

The nhrp entry command adds static NHRP peer entries to the local NHRP mapping table.

The undo nhrp entry command deletes static NHRP peer entries from the local NHRP mapping table.

By default, no static NHRP peer entry is added to the local NHRP mapping table.

Format

nhrp entry protocol-address nbma-address [ register ]

undo nhrp entry protocol-address [ nbma-address [ register ] ]

Parameters

Parameter Description Value
protocol-address

Specifies the tunnel interface address of an NHRP peer device.

The value is in dotted decimal notation.

nbma-address

Specifies the NBMA address of the NHRP peer device.

The value is in dotted decimal notation.

register

Configures a spoke to register with the hub to generate NHRP peer entries on the hub.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nhrp write

Usage Guidelines

Usage Scenario

This command configures mapping between the tunnel interface address of the NHRP peer device (the hub) and the NBMA address or mapping between the tunnel interface address and the host name.

When the spoke registers with the hub, the hub generates mapping between the tunnel interface address of the spoke and the NBMA address, so that the spoke and the hub communicate with each other through a VPN tunnel.

Prerequisites

The following operations have been performed:

  • Run the interface tunnel command to create a tunnel interface and display the tunnel interface view.
  • Run the tunnel-protocol gre p2mp command to set the tunnel encapsulation mode to mGRE.

Example

# Configure mapping between tunnel interface address 10.10.10.10 and NBMA address 172.16.1.1.
<HUAWEI> system-view
[~HUAWEI] nhrp enable
[*HUAWEI] interface tunnel 0
[*HUAWEI-Tunnel0] tunnel-protocol gre p2mp
[*HUAWEI-Tunnel0] nhrp enable
[*HUAWEI-Tunnel0] nhrp entry 10.10.10.10 172.16.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >