[j-nsp] AS_PATH regular expression question.

Sorin CONSTANTINESCU consta at gmail.com
Fri Oct 7 13:29:58 EDT 2005


On 10/7/05, Vladimir S. Blazhkun <v.blazhkun at pcs-net.net> wrote:
>
> True or False: The regular expression of: 64512 .+ matches an AS path of
> 64521 64567 65000?

.+ = one or more instance of "." (any AS).

>
> Theory ( JNCIS study guide by Joseph M. Soricelli ) says: false.
>

Can you be more specific (page number).

> Practice ( my Juniper M5 based network ) says: true.
>
> test at lab> show route aspath-regex "64512 .+" terse
> Restart Complete
> + = Active Route, - = Last Active, * = Both
>
> A Destination        P Prf   Metric 1   Metric 2  Next hop        AS path
>    3.0.0.0/8          B 170        100        210 >10.186.0.125   64512 702 703 80 I
>    6.5.0.0/19         B 170        100        210 >10.186.0.125   64512 702 702 702 702 I
>
> As you see it matches AS_PATH "64512 702 703 80", and not only "64512 702 702 702 702".
>
> What is the right answer you think?
>
> --
> Vladimir S. Blazhkun,
> Lead IP NCC Specialist, JNCIA #773, OOO "PCS-Moscow",
> Work phone: +7 095 7847617.
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp
>


--
Sorin CONSTANTINESCU
Cisco CCNP / JNCIA #845
consta at gmail.com



More information about the juniper-nsp mailing list