(Optional) Setting the OSPF Priority

When multiple routing protocols are used to select routes, you can set the OSPF priority to maneuver route selection.

Context

The routing protocols may share and select the routing information because the router may run multiple dynamic routing protocols at the same time. The system sets a priority for each routing protocol. When multiple routing protocols are used to select routes, the route selected by the routing protocol with a higher priority takes effect.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ospf [ process-id ]

    The OSPF process view is displayed.

  3. Run preference [ ase | inter | intra ] { preference | { route-policy route-policy-name | route-filter route-filter-name } } *

    A preference is set for OSPF.

    • ase: sets the preference for AS-External routes.

    • inter: sets the preference for inter-area routes.

    • intra: sets the preference for intra-area routes.

    • preference: sets the preference for OSPF. The smaller the value, the higher the priority.

    • route-policy-name: sets the preference for the routes matching the specified route-policy.

    • route-filter-name: sets the preference for the routes matching the specified route-filter.

  4. Run commit

    The configuration is committed.

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