< Home

mpls te hop-limit

Function

The mpls te hop-limit command limits the maximum number of hops of a CR-LSP.

The undo mpls te hop-limit command restores the default setting.

By default, the maximum number of hops of a CR-LSP is 32.

Format

mpls te hop-limit hop-limit-value [ best-effort | secondary ]

undo mpls te hop-limit [ best-effort | secondary ]

undo mpls te hop-limit hop-limit-value { secondary | best-effort }

Parameters

Parameter Description Value
hop-limit-value Specifies the value of the hop limit. The value is an integer that ranges from 1 to 32. The default value is 32.
best-effort Indicates the hop limit of a best-effort path. -
secondary Indicates the hop limit of a backup CR-LSP. -

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

After a CR-LSP is configured with a hop limit, the hop limit acts as one of routing conditions such as the link bandwidth and affinity property when the CR-LSP is created. After the hop limit is set, the number of hops of a CR-LSP cannot exceed this limit.

Example

# Set the maximum number of hops of the primary CR-LSP, bypass CR-LSP, and best-effort path in hot-standby to 10.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol mpls te
[HUAWEI-Tunnel1] mpls te hop-limit 10
[HUAWEI-Tunnel1] mpls te hop-limit 10 secondary
[HUAWEI-Tunnel1] mpls te hop-limit 10 best-effort
[HUAWEI-Tunnel1] mpls te commit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >