nhrp registration interval

Function

The nhrp registration interval command sets the interval at which a spoke registers with the hub.

The undo nhrp registration interval command restores the interval to the default value.

By default, a spoke registers with the hub at an interval of 2400 seconds.

Format

nhrp registration interval regInterval

undo nhrp registration interval regInterval

undo nhrp registration interval

Parameters

Parameter Description Value
regInterval

Specifies the interval at which a spoke registers with the hub.

The value is an integer that ranges from 5 to 31845, in seconds.

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nhrp write

Usage Guidelines

Usage Scenario

When the tunnel address and public network address of a spoke change or the NHRP peer entry of the hub ages, the hub may fail to update the NHRP peer entry in time. In this case, run the nhrp registration interval command on the spoke to set the interval at which a spoke registers with the hub to a value smaller than the aging time of NHRP peer entries.

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.

Configuration Impact

When you run this command to change the interval at which a spoke registers with the hub:

  • If the interval is too long, the spoke fails to immediately inform the hub of the latest branch information.
  • If the interval is too short, the spoke frequently registers with the hub, wasting network resources.

Precautions

The value of the parameter seconds cannot be larger than the aging time of NHRP peer entries configured by using the nhrp entry holdtime command.

Example

# Configure a spoke to register with the hub at an interval of 600 seconds.
<HUAWEI> system-view
[~HUAWEI] nhrp enable
[*HUAWEI] interface tunnel 0
[*HUAWEI-Tunnel0] tunnel-protocol gre p2mp
[*HUAWEI-Tunnel0] nhrp enable
[*HUAWEI-Tunnel0] nhrp registration interval 600
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >