< Home

mpls te record-route

Function

The mpls te record-route command enables the system to record routes and labels during tunnel establishment.

The undo mpls te record-route command configures the system not to record routes and labels during tunnel establishment.

By default, the system does not record routes and labels during tunnel establishment.

Format

mpls te record-route [ label ]

undo mpls te record-route

Parameters

Parameter Description Value
label Indicates that a label is also recorded when the system records a route. -

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If an MPLS TE tunnel is not established over an explicit path, the system does not record detailed path information. In this case, to view detailed path information about the tunnel, run this command on a tunnel interface. After the configuration, RROs are carried in Path and Resv messages and record the IP address of each hop along the tunnel. In addition, the keyword label can be configured to record the label of each hop along the tunnel.

Precautions

After the mpls te record-route command is configured and the MPLS TE tunnel is established, the display mpls te tunnel path command can be run to display detailed path information about the tunnel.

Do not run the mpls te record-route command on a large-scale network. On such a network, a large number of hops exist along a tunnel. Running this command allows the Path and Resv messages to carry RROs that record the IP address of each hop along the tunnel. As a result, the Path or Resv message will be oversized, lowering the system performance.

After the mpls te fast-reroute, mpls te backup, or mpls te bypass-tunnel command has been configured on a tunnel interface, the route record function is automatically enabled.

Example

# Enable the system to record routes and labels during tunnel establishment.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol mpls te
[HUAWEI-Tunnel1] mpls te record-route label
[HUAWEI-Tunnel1] mpls te commit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >