< Home

mpls te metric

Function

The mpls te metric command configures the TE metric value of a link.

The undo mpls te metric command restores the default configuration.

The IGP metric value of a link is used as the TE metric value by default.

Format

mpls te metric value

undo mpls te metric

Parameters

Parameter Description Value

metric value

Specifies the TE metric of a link.

An integer ranging from 1 to 16777215.

Views

VLANIF interface view, GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-trunk interface view

Default Level

2: Configuration level

Usage Guidelines

If the IGP is OSPF and the current device is a stub router, the mpls te metric command does not take effect.

Example

# Set the TE metric of the link to 20 on interface VLANIF100.

<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] mpls
[HUAWEI-Vlanif100] mpls te
[HUAWEI-Vlanif100] mpls te metric 20
# Set the TE metric of the link to 20 on interface GE0/0/1.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] mpls
[HUAWEI-GigabitEthernet0/0/1] mpls te
[HUAWEI-GigabitEthernet0/0/1] mpls te metric 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >