< Home

Configuring the BGP4+ Preference

Setting the BGP4+ preference can affect route selection between BGP4+ and another routing protocol.

Context

There are three BGP4+ routes:

  • External BGP (EBGP) routes

  • Internal BGP (IBGP) routes

  • Routes generated locally

You can set different priorities for the routes.

In addition, you can configure the priority of the routes that match specific conditions by applying the routing policy. Routes that do not match the conditions use the default priority.

Procedure

  1. Access the system view.

    system-view

  2. Access the BGP view.

    bgp { as-number-plain | as-number-dot }

  3. Access the BGP IPv6 unicast address family view.

    ipv6-family unicast

  4. Set the priority of BGP4+.

    preference { external internal local | route-policy route-policy-name }

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