mpls te metric

Function

The mpls te metric command sets the TE metric value for links.

The undo mpls te metric command deletes the TE metric value.

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

Format

mpls te metric metric-value

undo mpls te metric

Parameters

Parameter Description Value
metric-value

TE Metric Value.

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 is TE on a tunnel, the mpls te metric value command is used on the ingress and every transit node to set TE metric values. This impacts CSPF calculation and adjusts the path for a CR-LSP to be established.

Configuration Impact

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

Precautions

The link metric type has been set to TE using the mpls te path metric-type command in the MPLS view or the tunnel interface view.

NOTE:

After the metric type is set to TE in the MPLS view, the TE metric type takes effect on a tunnel interface and is unable to change to an IGP metric type.

Example

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