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.
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.
<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