mpls te path metric-type (MPLS view)

Function

The mpls te path metric-type command in the MPLS view specifies a link metric type used to select paths for TE tunnels.

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, TE metric values are used to select a path for a tunnel.

Format

mpls te path metric-type { te | igp }

undo mpls te path metric-type

Parameters

Parameter Description Value
te

TE metric type.

-

igp

IGP metric type.

-

Views

MPLS 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 IGP metric for calculating paths for TE tunnels if no metric type is configured.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] mpls te path metric-type igp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >