Setting a Preferred Value for Routes Learned from an MBGP Peer

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

Context

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

    A preferred value is set for the routes learned from an MBGP peer or peer group.

    A route with the greatest preferred value will be selected as the optimal route to a specified network if there are multiple routes to that network.

    • group-name: specifies the name of an MBGP peer group.

    • peer-address: specifies the IP address of a remote MBGP peer.

  5. Run commit

    The configuration is committed.

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