< Home

Configuring BGP4+ Preferred Value for Routing Information

After the preferred value is configured for routing information, the route with the largest preferred value is selected when multiple routes to the same destination exist in the BGP4+ routing table.

Context

If a peer is specified with a preferred value, all routes learned from the peer have the preferred value attribute. Among multiple routes, the route with the highest preferred value is selected to reach the specified network.

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 preferred value of the peer.

    peer { group-name | ipv4-address | ipv6-address } preferred-value value

    By default, the preferred value of the route learned from the neighbor is 0.

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