Setting the BGP4+ Priority

Setting the BGP4+ priority can control route selection between BGP routes and routes of another routing protocol.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run ipv6-family unicast

    The IPv6 unicast address family view is displayed.

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

    The BGP4+ priority is set.

    BGP4+ has the following types of routes:

    • EBGP routes learned from peers in other ASs

    • IBGP routes learned from peers in the same AS

    • Routes generated locally using the aggregate command

    You can set different priorities for the three types of routes.

    You can also apply routing policies to set priorities for the specified routes that meet the requirements. You can set default preferences for the routes that do not meet the requirements.

    At present, the peer route-policy or peer route-filter command cannot be used to set the BGP4+ priority.

  5. Run commit

    The configuration is committed.

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