bgp bestpath compare-routerid
Use this command to compare router IDs for identical eBGP paths. When comparing similar routes from peers, the BGP router does not consider the router ID of the routes. By default, it selects the first received route. Use this command to include router ID in the selection process; similar routes are compared and the route with the lowest router ID is selected. The router IS is the highest IP address on the router, with preference given to loopback addresses. Router ID can be manually set by using the
bgp router-id command.
Use the no parameter with this command to disable this functionality.
Command Syntax
bgp bestpath compare-routerid
no bgp bestpath compare-routerid
Parameters
None
Default
BGP receives routes with identical eBGP paths from eBGP peers and selects the first route received as the best path.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router bgp 100
(config-router)#bgp bestpath compare-routerid
(config)#router bgp 100
(config-router)#no bgp bestpath compare-routerid
Last modified date: 07-13-2023