After PrefVal values are set for routes, the route with the largest PrefVal is preferred when multiple routes to the same destination exist in the BGP routing table.
The system view is displayed.
The BGP view is displayed.
The IPv4 unicast address family view is displayed.
A PrefVal is configured for all the routes learned from a specified peer.
After the peer preferred-value command is run, all the routes learned from a peer have the same PrefVal.
The configuration is committed.