In the following output, a BGP route server has two routes from AS 21 that have been selected as best:
Route-Server# show ip bgp ipv4 unicast
BGP table version is 31, local router ID is 100.100.100.100
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, x best-external, f RT-Filter
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 10.10.10.21 23 0 21 ?
* 10.10.10.27 878 0 27 89 ?
* 100.1.1.1/32 10.10.10.27 878 0 27 89 ?
*> 10.10.10.21 23 0 21 ?
For Peer12, which has been configured as a route-server client, but not associated with any context, the bestpath is advertised
in the following output. Note that AS-path, MED, and nexthop transparency have been maintained; the routes look as if they
had not passed through the route server.
Peer12# show ip bgp ipv4 unicast
BGP table version is 31, local router ID is 10.10.10.12
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, x best-external, f RT-Filter
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 10.10.10.21 23 0 21 ?
*> 100.1.1.1/32 10.10.10.21 23 0 21 ?
Peer13 has also been configured as a route-server client, and it has been associated with a context named ONLY_AS27_CONTEXT.
The context references a route map that permits only routes that contain AS 27 in the AS path. This means that the route-server
should not send any routes to Peer13 unless they contains AS 27. In our scenario, the route server indeed sends the routes
learned via AS 27, even though the routes learned via AS 21 are marked as best. The output below demonstrates that the normal
best path was overriden by the best path based on policy. Again, MED, as-path, and nexthop transparency have been maintained.
Peer13# show ip bgp ipv4 unicast
BGP table version is 25, local router ID is 10.10.10.13
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, x best-external, f RT-Filter
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 10.10.10.27 878 0 27 89 ?
*> 100.1.1.1/32 10.10.10.27 878 0 27 89 ?