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.
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.
bgp { as-number-plain | as-number-dot }
ipv6-family unicast
peer { group-name | ipv4-address | ipv6-address } preferred-value value
By default, the preferred value of the route learned from the neighbor is 0.