< Home

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 default maximum number of hops for collecting topology information through NTDP.

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

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 switches in the hop range can be collected, which avoids collection of infinite topology information. The larger the maximum number of hops is, the more the memory of the topology collection switch is consumed.

Prerequisites

NTDP has been enabled on the switch.

Example

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

<HUAWEI> system-view
[HUAWEI] ntdp hop 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >