< Home

mpls te path metric-type

Function

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

The undo mpls te path metric-type command restores the default settings.

The TE metric is used to select a path for a tunnel by default.

Format

mpls te path metric-type { igp | te }

undo mpls te path metric-type

Parameters

Parameter Description Value
igp Indicates that the IGP metric is used. -
te Indicates that the TE metric is used. -

Views

MPLS view, tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

If the mpls te path metric-type command is not configured in the tunnel interface view, the metric type set in the MPLS view is used. Otherwise, the metric type set in the tunnel interface view will be used.

Example

# Adopt the IGP metric that is used to select a path for the tunnel that is not configured with any metric type.

<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] mpls te path metric-type igp

# Adopt the TE metric that is used to select a path for Tunnel 1.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol mpls te
[HUAWEI-Tunnel1] mpls te path metric-type te
[HUAWEI-Tunnel1] mpls te commit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >