The peer preferred-value command sets a preferred value for the routes that an MBGP device learns from its peer.
The undo peer preferred-value command deletes the preferred value set for the routes that an MBGP device learns from its peer.
By default, the preferred values of the routes that an MBGP device learns from an MBGP peer are 0.
Usage Scenario
After the peer preferred-value command is run, all the routes learned from the specified peer are assigned a preferred value. A route with the highest preferred value will be selected as the optimal route to a specified network if there are multiple routes to that network.
<HUAWEI> system-view [~HUAWEI] bgp 109 [*HUAWEI-bgp] peer 10.108.1.1 as-number 100 [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] peer 10.108.1.1 enable [*HUAWEI-bgp-af-multicast] peer 10.108.1.1 preferred-value 50