From: dara tomar (wish2ie@gmail.com)
Date: Mon Dec 10 2007 - 14:10:57 ART
*The regexp of ^600_620(_[0-9])*$
is responsible of matching
the AS starting by 600 followed by 620 and the third as path [can only be a
single character, whose occurrence can be zero or multiple times as by *]
The regexp of ^600(_[0-9]*)$
matches routes with AS starting from As-path 600 followed by single AS whose
character can have a value between 0-9, however by assigning * the character
can have zero or multiple occurrences.
the difference is only that
(_[0-9])* ==> <matches routes with AS path of 0,1,2,3,4,5,6,7,8,9> |
<occurrence can be [zero or more]>.
(_[0-9]*) ==> matches route with AS path of any integer but single
as-path.
Have tried my best to put in words ...... :) :)
HTH,
Regards,
Dara*
On Dec 10, 2007 9:13 PM, Athaide, Dwayne <DAthaide@eprod.com> wrote:
> Hi
>
> I am exp with regexp and don't quite follow how the following regexp
> only matches the one route
>
>
>
> Network Next Hop Metric LocPrf Weight Path
>
> *> 172.16.1.0/24 10.10.10.5 0 600 620 610
> i
>
> *> 172.16.2.0/24 10.10.10.5 0 600 620 610
> i
>
> *> 172.16.3.0/24 10.10.10.5 0 600 620 610
> i
>
> *> 172.16.4.0/24 10.10.10.5 0 600 620 610
> i
>
> *> 192.168.1.0 10.10.10.5 0 600 620 i
>
> R7#sho ip bgp regexp ^600_620(_[0-9])*$
>
>
>
> Network Next Hop Metric LocPrf Weight Path
>
> *> 192.168.1.0 10.10.10.5 0 600 62
>
>
>
> And would this regexp ^600(_[0-9]*)$ match all the network above. What
> am I doing wrong as I can only get the 192.168.1.0 network matched
>
>
>
>
>
> Thanks
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Tue Jan 01 2008 - 12:04:30 ARST