te metric

Function

The te metric command sets a TE metric value for links.

The undo te metric command deletes the TE metric value.

By default, an IGP metric value is used as the TE metric value for links.

Format

te metric metric-value

undo te metric

undo te metric metric-value

Parameters

Parameter Description Value
metric-value

Sets a TE metric value for links.

The value is an integer ranging from 1 to 16777215.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE optical interface view, GE sub-interface view, GE electrical interface view, GMPLS-UNI interface view, Tunnel interface view, XGE sub-interface view, XGE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

If the metric type of a tunnel is TE, you can run the te metric value command on the outbound interfaces of the ingress and transit nodes of the tunnel to set or modify the TE metric values. CSPF calculation and CR-LSP setup can then be adjusted accordingly.

Configuration Impact

An IGP will flood each configured TE metric value to other nodes, and CSPF will select a link with the smallest metric value.

Precautions

MPLS TE-related commands apply only to MPLS TE and SR-MPLS TE. However, this command applies to SRv6 TE Policies, besides MPLS TE and SR-MPLS TE.

Example

# Set the TE metric value to 20.
<HUAWEI> system-view
[~HUAWEI] te attribute enable
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] te metric 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >