Setting the Local_Pref Attribute for MBGP Routes

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

Context

The Local_Pref attribute determines the optimal route for the traffic that leaves an AS. If an MBGP device obtains multiple routes from different IBGP peers and these routes have different next hops to the same destination, the MBGP device will select the route with the largest Local_Pref value.

Perform the following steps on the router that is configured as an MBGP peer:

This configuration is optional.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run ipv4-family multicast

    The BGP-IPv4 multicast address family view is displayed.

  4. Run default local-preference preference-value

    The Local_Pref attribute is set for the local device.

  5. Run commit

    The configuration is committed.

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