Configuring the OSPF SR-MPLS TE Capability and Topology Report Function

Before an SR-MPLS TE tunnel is established, the OSPF SR-MPLS TE capability and OSPF topology report function must be enabled.

Context

Before an SR-MPLS TE tunnel is established, a device must assign labels, collect network topology information, and report the information to the controller so that the controller uses the information to calculate a path and a label stack for the path. SR-MPLS TE labels can be assigned by the controller or the extended OSPF protocol on forwarders. Network topology information (including labels allocated by OSPF) is collected by OSPF and reported to the controller through BGP-LS.

Procedure

  1. Configure the OSPF SR-MPLS TE capability.

    Perform the following steps on each node of an SR-MPLS TE tunnel to be established:

    1. Run system-view

      The system view is displayed.

    2. Run ospf [ process-id ]

      The OSPF view is displayed.

    3. Run opaque-capability enable

      The OSPF Opaque capability is enabled.

    4. Run segment-routing mpls

      OSPF SR enabled.

    5. Run area area-id

      The OSPF area view is displayed.

    6. Run mpls-te enable [ standard-complying ]

      TE is enabled in the OSPF area.

    7. Run commit

      The configuration is committed.

    8. Run quit

      Return to the system view.

  2. Configure a device to report topology information to the controller.

    Perform the following steps on one or more nodes of an SR-MPLS TE tunnel:

    A forwarder can report network-wide topology information to the controller after they establish a BGP-LS peer relationship. The following steps can be configured on one or multiple nodes, depending on the network scale.

    1. Run ospf [ process-id ]

      The OSPF view is displayed.

    2. Run bgp-ls enable

      OSPF is enabled to advertise network topology information to BGP-LS.

    3. Run quit

      Return to the system view.

    4. Configure the BGP-LS route advertisement capability.

      1. Run bgp { as-number-plain | as-number-dot }

        BGP is enabled, and the BGP view is displayed.

      2. Run peer ipv4-address as-number as-number-plain

        A BGP peer group is created.

      3. Run link-state-family unicast

        BGP-LS is enabled, and the BGP-LS view is displayed.

      4. Run peer { group-name | ipv4-address } enable

        The ability to exchange BGP-LS routes with the specified BGP peer is enabled.

    5. Run commit

      The configuration is committed.

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