The mpls te path explicit-path command configures an explicit path for a tunnel.
The undo mpls te path command deletes a configured explicit path.
By default, no explicit path for a tunnel is configured.
mpls te path explicit-path path-name [ secondary ]
undo mpls te path [ secondary ]
undo mpls te path explicit-path path-name secondary
Parameter | Description | Value |
---|---|---|
path-name | Specifies the name of the explicit path for a tunnel. | The value is an existing explicit path name. |
secondary | Indicates that the explicit path is configured for a backup tunnel. The parameter is applied only to configuring a backup CR-LSP using the mpls te backup command. | - |
The mpls te path explicit-path command can be run successfully only after an explicit path is set up by running the explicit-path command in the system view, and the nodes on the path are specified.
# Apply the explicit path named path1 to Tunnel1.
<HUAWEI> system-view [HUAWEI] explicit-path path1 [HUAWEI-explicit-path-path1] next hop 10.2.2.9 [HUAWEI-explicit-path-path1] quit [HUAWEI] interface tunnel 1 [HUAWEI-Tunnel1] tunnel-protocol mpls te [HUAWEI-Tunnel1] mpls te path explicit-path path1 [HUAWEI-Tunnel1] mpls te commit