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.
Parameter | Description | Value |
---|---|---|
igp | Indicates that the IGP metric is used. | - |
te | Indicates that the TE metric is used. | - |
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.
# 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