Re: BGP reg. expressions

From: Jonathan Stevens (jonathanstevens.net@googlemail.com)
Date: Mon Jan 30 2006 - 05:21:40 GMT-3


Mike,
    I'm not so sure about those... decoding them says
    ^ At the beginning of the as-path
    + One or more
    (701) 701s
    Then a space or the end of the line _
    So I reckon that would match
        701
        701701
        701701701
    But I can't see why you would want to do that.
    ^(701_)+ would make more sense to me, which would match any route
directly originated in AS 701 (no matter how many times it was prepended).
    So it would accept
    701
    701 701
    701 701 701
    etc
    Maybe I'm misunderstanding here, but I can't see what your examples
would achieve.

Mike O wrote:

> I was checking out a config that an ISP did for my old company and
> little confused on the expressions
>
> ip as-path access-list 111 permit ^(6272)+_
>
> ip as-path access-list 112 permit ^(701)+_
>
>
>
> Those were set for inbound, can someone drop me a hint on what it is
> doing?
>
>
>
> Thanks.
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Wed Feb 01 2006 - 07:45:50 GMT-3