The bestroute routerid-prior-clusterlist command enables Router ID to take precedence over Cluster_List during BGP route selection.
The undo bestroute routerid-prior-clusterlist command restores the default configurations.
By default, Cluster_List takes precedence over Router ID during BGP route selection.
Usage Scenario
On a BGP network, after a device receives multiple routes with the same prefix but different paths from different peers, the router needs to select an optimal route from these routes to forward packets. By default, Cluster_List takes precedence over Router ID during BGP route selection. To enable Router ID to take precedence over Cluster_List during BGP route selection, run the bestroute routerid-prior-clusterlist command.
Precautions
If each route carries an Originator_ID, the Originator_IDs rather than router IDs are compared during route selection. The route with the smallest Originator_ID is preferred. Therefore, after the bestroute routerid-prior-clusterlist command is run, the Originator_ID takes precedence over the Cluster-List during BGP optimal route selection.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-instance-vpna] quit [*HUAWEI] bgp 100 instance a [*HUAWEI-bgp-instance-a] ipv4-family vpn-instance vrf1 [*HUAWEI-bgp-instance-a-vrf1] bestroute routerid-prior-clusterlist