BGP regexp Match on Originating AS

From: Tom Nooning (t.nooning@insightbb.com)
Date: Wed Jul 20 2005 - 20:44:54 GMT-3


All,

I've searched the archives and read what sparse info Cisco provides, but I
seem to keep coming up with conflicting information. I am fairly confident
that the expression _600$ matches routes that "originated" in AS 600. Now at
http://www.cisco.com/warp/public/459/26.html and in a few posts here I see
^600_[0-9]*$ provided as the expression to match "routes that 'originated' in
AS 600 and are directly connected to AS 600". But '^' matches the beginning
of the string and would match the adjacent AS, right? Are routes seen
differently when being filtered inbound with an AS path access list than when
displayed in 'sh ip bgp n'? I have thoroughly confused myself I know, can
someone set me straight?

R5#s ip bgp reg _600$
BGP table version is 30, local router ID is 5.5.201.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
*> 100.100.21.0/24 186.5.5.100 0 0 100 400 500 600
i
*> 100.100.22.0/24 186.5.5.100 0 0 100 400 500 600
i
*> 100.100.23.0/24 186.5.5.100 0 0 100 400 500 600
i

R5#s ip bgp reg ^600_[0-9]*$

R5#



This archive was generated by hypermail 2.1.4 : Sun Sep 04 2005 - 17:00:30 GMT-3