mpls te hop-limit (P2P Tunnel interface view)

Function

The mpls te hop-limit command sets the maximum number of hops on a tunnel.

The undo mpls te hop-limit command restores the default setting for the maximum number of hops.

By default, the path hop limit of a tunnel is 32.

Format

mpls te hop-limit hop-limit-value

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

undo mpls te hop-limit

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

Parameters

Parameter Description Value
hop-limit-value

Specifies the hop limit value.

The value is an integer ranging from 1 to 32.

secondary

Set parameter for secondary.

-

best-effort

Set parameter for best-effort LSP.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

The number of hops on a CR-LSP to be established cannot exceed the hop limit configured using the mpls te hop-limit command.

Example

# Set the hop limit to 10 for primary and backup tunnels and best-effort paths.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >