Re: Regurlar expression confirmation

From: Frank (ocsic@web.de)
Date: Thu Nov 09 2006 - 09:18:20 ART


Michael Stout schrieb:

By the way. Do you know a regular expression that matches:

Only locally on the advertising router?

R6#sh ip bgp reg ^$
BGP table version is 13, local router ID is 150.1.6.6
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
*>i150.1.3.0/24 116.1.116.3 0 100 0 i
*> 150.1.6.0/24 0.0.0.0 0 32768 i
Rack1R6#

Here one is local advertised and the other is inside the same AS advertised.
I wound if it's also possible to match these, that for example i match
only the
one that is advertise by the local router and not by the local AS.

Frank

> Hello:
> Can i get some input on the accuracy of the following regurlar
> expressions, please?
>
> Going to network that were origionated in AS 54
>
> ip as-path access-list 1 permit _54$
>
> because, the origion of the route should be the end of the as-list
> Here 54 is the origion of 100 200 300 400 54.
>
> Going to networks outside of AS 54
>
> ip as-path access-list 2 permit _54 +
>
> because this list matches one or more instances of an AS that exists
> outside of AS-54.
> this list will match someting like 100 54 200 300, or 54 100 My reference
> http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/ftersv_c/ftsappx/tcfaapre.htm
> Thank you.
>
> ------------------------------------------------------------------------
>
> Get today's hot entertainment gossip
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Fri Dec 01 2006 - 08:05:45 ART