< Home

path-vectors

Function

The path-vectors command sets the maximum number of hops of the path vector that is used for LDP loop detection.

The undo path-vectors command restores the default setting.

By default, a maximum of 32 hops of the path vector are used for LDP loop detection.

Format

path-vectors integer

undo path-vectors

Parameters

Parameter Description Value
integer Specifies the path vector. The value is an integer ranging from 1 to 32.

Views

MPLS-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A scenario assumes that LDP loop detection is configured using the path vector, and the maximum number of hops of the path vector is n. The egress LSP triggered by local routes detects loop after n + 1 hops, whereas the egress LSP triggered by non-local routes (proxy egress) detects loops after n hops.

Prerequisites

The path-vectors command has been configured before LDP is enabled on all interfaces. The path-vectors command takes effect only after MPLS LDP is enabled in the related view.

Example

# Set the maximum value of the path vector to 3.

<HUAWEI> system-view
[HUAWEI] mpls ldp
[HUAWEI-mpls-ldp] path-vectors 3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >