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.


Configuration Guide - IP Unicast Routing

S7700 and S9700 V200R011C10

This document describes IP Unicast Routing configurations supported by the switch, including the principle and configuration procedures of IP Routing Overview, Static Route, RIP, RIPng, OSPF, OSPFv3, IS-IS(IPv4), IS-IS(IPv6), BGP, Routing Policy ,and PBR, and provides configuration examples.

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).
Configuring the BGP Priority

Configuring the BGP Priority


The routing protocols may share and select routing information because switches may run multiple dynamic routing protocols at the same time. The system sets a default 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 bgp { as-number-plain | as-number-dot }

    The BGP view is displayed.

  3. Enter the corresponding address family view based on network type to configure BGP devices on networks.

    • Run ipv4-family { unicast | multicast }

      The IPv4 address family view is displayed.

    • Run ipv6-family [ unicast ]

      The IPv6 address family view is displayed.

  4. Run preference { external internal local | route-policy route-policy-name } or preference external internal local route-policy route-policy-name

    The BGP priority is set.

    The default BGP priority is 255.

    The smaller the preference value, the higher the preference.

    BGP has the following types of routes:

    • EBGP routes learned from peers in other ASs

    • IBGP routes learned from peers in the same AS

    • Locally originated routes (A locally originated route is a route summarized by using the summary automatic command or the aggregate command.)

    Different preference values can be set for these three types of routes.

    In addition, a routing policy can also be used to set the preferences for the routes that match the policy. The routes that do not match the policy use the default preference.


    You cannot use the peer route-policy command on BGP peers to apply routing policies to set the BGP priority.

Updated: 2019-10-18

Document ID: EDOC1000178324

Views: 273676

Downloads: 222

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next