< Home

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.

    1. Run system-view

      The system view is displayed.

    2. Run interface tunnel interface-number

      The tunnel interface view is displayed.

    3. Run mpls te path metric-type { igp | te }

      The metric type for path computation is configured.

    4. Run mpls te commit

      The current configuration of the tunnel is committed.

    5. Run quit

      Return to the system view.

    6. (Optional) Run mpls

      The MPLS view is displayed.

    7. (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.

  • (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.

    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The view of the MPLS-TE-enabled interface is displayed.

    3. (Optional) 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.

      Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

    4. Run mpls te metric value

      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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >