mpls te path (Tunnel interface view)

Function

The mpls te path command specifies an explicit path for a tunnel.

The undo mpls te path command deletes an explicit path constraint for a tunnel.

By default, the tunnel has no explicit path constraint.

Format

mpls te path explicit-path path-name

mpls te path explicit-path path-name secondary

undo mpls te path

undo mpls te path [ explicit-path path-name ] secondary

Parameters

Parameter Description Value
explicit-path path-name

Specifies the name of an explicit path.

The value is a string of 1 to 128 characters.

secondary

Indicates the explicit path for a backup tunnel. This command is used only after the mpls te backup is run to configure CR-LSP backup modes.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

The mpls te path command is used to specify explicit path constraints, allowing a tunnel to pass through nodes or bypass nodes.

Example

# Configure a tunnel named Tunnel1 to use the explicit path named path1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] explicit-path path1
[*HUAWEI-explicit-path-path1] next hop 3.3.3.3
[*HUAWEI-explicit-path-path1] quit
[*HUAWEI] interface tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol mpls te
[*HUAWEI-Tunnel1] mpls te path explicit-path path1
# Create an explicit path named path1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] explicit-path path1
[*HUAWEI-explicit-path-path1] next hop 2.2.2.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >