BGP Prepend
Just a note - the second regex will NOT allow self-prepending directly connected customers... Here it is:
BB1#sh ip bgp regexp ^([0-9]+)?$ BGP table version is 94, local router ID is 212.18.3.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path *>i28.119.16.0/24 172.16.4.3 ...
Any one have any idea how can I use the regular expression to check the bgp routes from specific number of AS path away? The prepending AS should be merged and considered from single AS.
For example:-
2 AS away 500 20 500 10 10 10
3 AS away 500 20 30 500 500 30 30 40
...