Setting the Preferred Value for BGP4+ Routes

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

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 peer { ipv4-address | ipv6-address | group-name } preferred-value preferredvalue

    The original preferred value of a route learned from a peer defaults to 0.

    After the peer preferred-value command is run, all the routes learned from a specified peer have the same preferred value.

  5. Run commit

    The configuration is committed.

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