No relevant resource is found in the selected language.
Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Metrics for Path Calculation
Configuring Metrics for Path Calculation
Context
You can configure the metric type that is used for setting up a tunnel.
Procedure
Specifying the metric type used by the tunnel
Perform the following configurations on the ingress node of an MPLS TE tunnel.
Run system-view
The system view is displayed.
Run interface tunnelinterface-number
The tunnel interface view is displayed.
Run mpls te path metric-type { igp | te }
The metric type for path computation is configured.
Run quit
Return to the system view.
(Optional) Run mpls
The MPLS view is displayed.
(Optional) Run mpls te path metric-type { igp | te }
The path metric type used by the tunnel during route selection is specified.
If the mpls te path metric-type command is not run in the tunnel interface view, the metric type in the MPLS view is used; otherwise, the metric type in the tunnel interface view is used.
By default, path metric type used by the tunnel during route selection is TE.
Run commit
The configuration is committed.
(Optional) Configuring the TE metric value of the path
If the metric type of a specified tunnel is TE, you can modify the TE metric value of the path on the outbound interface of the ingress and the transit node by performing the following configurations.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The view of the MPLS-TE-enabled interface is displayed.
On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.
If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batchinterface-type { interface-number1 [ tointerface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.
Run mpls te metricvalue
The TE metric value of the path is configured.
By default, the path uses the IGP metric value as the TE metric value.
If the IGP is OSPF and the current device is a stub router, the mpls te metric command does not take effect.