Configuring BGP Route Attributes

Configuring route attributes can change route selection results.

Usage Scenario

BGP has many route attributes. You can change route selection results by configuring attributes for routes.

  • BGP priority

    Setting the BGP priority can control route selection between BGP routes and routes of other routing protocols.

  • Preferred values

    After preferred values are set for BGP routes, the route with the greatest value is preferred when multiple routes to the same destination exist in the BGP routing table.

  • Local_Pref

    The Local_Pref attribute has the same function as the preferred value of a route. If both of them are configured for a BGP route, the preferred value takes precedence over the Local_Pref attribute.

  • MED

    The MED attribute is used to determine the optimal route for traffic that enters an AS. The route with the smallest MED value is selected as the optimal route if the other attributes of the routes are the same.

  • Next_Hop

    BGP route selection can be controlled by changing Next_Hop attributes for routes.

  • AS_Path

    The AS_Path attribute is used to prevent rooting loops and control route selection.

  • AIGP

    BGP prefers the route with the smallest AIGP value during BGP route selection.

Pre-configuration Tasks

Before configuring BGP route attributes, configure basic BGP functions.

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