ntdp hop

Function

The ntdp hop command sets the maximum number of hops for collecting topology information through NTDP.

The undo ntdp hop command restores the maximum number of hops for collecting topology information through NTDP to the default number.

By default, the maximum number of hops for collecting topology information through NTDP is 8.

Format

ntdp hop max-hop-value

undo ntdp hop

Parameters

Parameter Description Value
max-hop-value Specifies the maximum number of hops for collecting topology information through NTDP. The value is an integer that ranges from 1 to 8.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the maximum number of hops for collecting topology information through NTDP is configured, topology information about devices in a specified range can be collected, which avoids collection of infinite topology information. Meanwhile, the larger the maximum number of hops for collecting topology information is, the more the memory of the topology collection switch is occupied.

Prerequisites

The ntdp hop command takes effect only after NTDP is enabled on the device.

Example

# Set the range for collecting topology information through NTDP to 5 hops.

<HUAWEI> system-view
[HUAWEI] ntdp hop 5
Related Topics
display ntdp
ntdp enable (system view)

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.