No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


CLI-based Configuration Guide - IP Unicast Routing

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

Rate and give feedback:
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).
Setting the Priority of OSPF

Setting the Priority of OSPF


Routing protocols may share and select 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.


  1. Run system-view

    The system view is displayed.

  2. Run ospf [ process-id ]

    The OSPF process view is displayed.

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

    The priority of OSPF is set.

    • If the parameter ase is specified, it indicates that the preference of AS external routes is set.
    • The parameter preference specifies the preference of OSPF routes. The smaller the value, the higher the preference.
    • If the parameter route-policy route-policy-name is specified, it indicates that the preference is set for specified routes according to the routing policy.

    By default, the preference of OSPF routes is 10. When the parameter ase is specified, the default preference of AS external routes is 150.

Updated: 2019-12-27

Document ID: EDOC1000174069

Views: 187115

Downloads: 314

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next