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.
Parameter | Description | Value |
---|---|---|
metric value |
Specifies the TE metric of a link. |
An integer ranging from 1 to 16777215. |
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
If the IGP is OSPF and the current device is a stub router, the mpls te metric command does not take effect.
# 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
<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