mpls te path metric-type (Tunnel interface view)

Function

The mpls te path metric-type command specifies a link metric type used to select a path for a tunnel.

The undo mpls te path metric-type command restores the default metric values. This command can only be used in the tunnel interface view.

By default, a metric type configured in the MPLS view are used to select a path for a tunnel.

Format

mpls te path metric-type { igp | te }

undo mpls te path metric-type

Parameters

Parameter Description Value
igp

IGP metric type.

-

te

TE metric type.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

If no metric type is configured using the mpls te path metric-type command in the tunnel interface view, a metric type configured in the MPLS view takes effect. If a metric type has been configured in the tunnel interface view, this metric type takes effect.

Example

# Configure the TE metric for calculating a path for a tunnel named Tunnel10.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol mpls te
[*HUAWEI-Tunnel10] mpls te path metric-type te
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >