The peer preferred-value command sets a preferred value for the routes that an MBGP device learns from its peer group.
The undo peer preferred-value command deletes the preferred value set for the routes that an MBGP device learns from its peer group.
By default, the preferred values of the routes that an MBGP device learns from an MBGP peer are 0.
Parameter | Description | Value |
---|---|---|
peerGroupName |
Specifies the name of an MBGP peer group. |
The value is a string of 1 to 47 case-sensitive characters, spaces not supported. |
preferredvalue |
Specifies the preferred value of the routes that an MBGP device learns from its peer. |
The value can be an integer ranging from 0 to 65535. |
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 test as-number 100 [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] peer test enable [*HUAWEI-bgp-af-multicast] peer test preferred-value 50