RE: BGP Reg Exp

From: Bit Gossip (bit.gossip@chello.nl)
Date: Wed Dec 27 2006 - 17:29:28 ART


Hi Rene, GS,
the original pb was: match all route of AS54 and its directly attached
customers, where a customer could prepend once or more
The trick here is that you don't know the AS of the customer before
hand, so I agree that unless you list all possible ASs, there is no
solution for this problem with a regular expression....
Luca.

On Wed, 2006-12-27 at 20:48 +0100, Huizinga, Rene wrote:
> Hi Luca,
>
>
> Not certain if I understand your question correctly, but if you want to
> accept all, with AND without prepending, try:
>
> ^54(_1234)+_
>
> Or ONLY when prepended:
>
> ^54(_1234)*_1234_
>
> In my understanding, this should be correct, correct me if I'm wrong or
> please explain your question in case of misunderstandings...
>
>
> Cya
>
> Rene.
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of Bit
> Gossip
> Sent: Wednesday, December 27, 2006 8:23 PM
> To: ccielab@groupstudy.com
> Subject: RE: BGP Reg Exp
>
> I was wandering if it is possible to make the expression smarter so that it
> can cope with the customer prepending once or more time; something
> like:
> 54 1234 1234 1234
> but not like
> 54 1234 4321
>
> I couldn't come to any solution....
>
> Luca.
>
> On Wed, 2006-12-27 at 09:11 -0500, Scott Morris wrote:
> > Both will work. Yours does 0 or more of the single character 0-9.
> > The first does one or more, but makes the whole thing optional with
> > the ? (0 or
> > 1 of preceeding).
> >
> > Different logic, same result!
> >
> >
> > Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713,
> > JNCIE #153, CISSP, et al.
> > CCSI/JNCI-M/JNCI-J
> > IPExpert VP - Curriculum Development
> > IPExpert Sr. Technical Instructor
> > smorris@ipexpert.com
> > http://www.ipexpert.com
> >
> >
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
> > Of JB
> > Sent: Wednesday, December 27, 2006 4:59 AM
> > To: ccielab@groupstudy.com
> > Subject: BGP Reg Exp
> >
> > Hi all, question asks for a router to accept prefixes from BB1 that
> > have been originated by themselves and their directly connected customers.
> >
> > Solution says: ^54(_[0-9]+)?$
> >
> > I got ^54_[0-9]*$.
> >
> > I ran mine thru looking-glass and it "seems" to work. I would
> > appreciate it if someone could explain the differences, if any,
> > between the two to further my understanding.
> >
> > TIA,
> >
> > JB
> >
> > ______________________________________________________________________
> > _ Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> > ______________________________________________________________________
> > _ Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Tue Jan 02 2007 - 07:50:39 ART