mpls te hop-limit (SR 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 maximum number of hops on a backup CR-LSP is 32.

Format

mpls te hop-limit hop-limit-value

mpls te hop-limit hop-limit-value secondary

undo mpls te hop-limit

undo mpls te hop-limit secondary

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.

-

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.

Precautions

If the default value (32) is used in the hop-limit command, both adjacency and node SIDs can be used for local SR-MPLS TE path calculation. If a non-default value (1?31) is used in the hop-limit command, only adjacency SIDs can be used for local SR-MPLS TE path computation.

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 signal-protocol segment-routing
[*HUAWEI-Tunnel1] mpls te hop-limit 10
[*HUAWEI-Tunnel1] mpls te hop-limit 10 secondary
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >