Re: as-path

From: Rajib Khan (rajib56666@yahoo.com)
Date: Tue Jul 05 2005 - 06:45:08 GMT-3


SO basically following both will work. It just i havn't got enough router to test it
 
1. ^54_[0-9]*$
 
2.^54(_[0-9]+)?$

Right??
 
Thanks
 
Raj

Amit Jain <netsteps@rediffmail.com> wrote:
John

This example came in IE labs and it does work. I tried it twice. It removes
prefixes from AS's that are not directly attached to neighbor.

Amit
----- Original Message -----
From: "John Matus"
To: "Kumar, Manoj" ; "Sheikh Rahman"
;
Sent: Tuesday, July 05, 2005 5:16 AM
Subject: Re: as-path

> this is an interesting question and one that i did not get untill i
studied
> regex in more detail. i will tell you now, it is not enuf to memorize
just
> how to do this particular questing.....you need to know the WHY and HOW
this
> one works. the one that kumar show's is an Internetwork Experts example
> (i'm guessing kumar) and is supposed to work (i tried this one a few times
> and never got it to work.
> you can also break this down into a few simpler statements to satify the
> question.
>
> ip as-path access-l 10 permit ^54$
> ip as-path access-l 10 permit ^54_[0-9]+
>
> this will match as-path 54 as well as 1 instance of 54 and a directly
> connected neighbor.
> you can also use
> ip as-path access-l 10 permit ^54_[0-9]*$
>
> this will match as path 54 AND zero or more instances of a directly
> connected neighbor.
> both examples satisfy the requirements. but like i said, it is not enuf
to
> memorize the question so much is it is understanding the answer!
>
>
> Regards,
>
> John D. Matus
> MCSE, CCNP
> Office: 818-782-2061
> Cell: 818-430-8372
> jmatus@pacbell.net
> ----- Original Message -----
> From: "Kumar, Manoj"
> To: "Sheikh Rahman" ;

> Sent: Monday, July 04, 2005 12:43 PM
> Subject: RE: as-path
>
>
> > Here is my try...
> >
> > ip as-path access-list 10 permit ^54(_[0-9]+)?$
> >
> > Regards,
> > Manoj
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
> > Sheikh Rahman
> > Sent: Monday, July 04, 2005 10:36 PM
> > To: ccielab@groupstudy.com
> > Subject: as-path
> >
> >
> > Hello There,
> >
> > Does any one know how to filter bgp prefix using as-path advertised from
> > as 54 and its directly connected as
> >
> > Thanks
> >
> > Sheik
> >
> >
> > **********************************************************************
> > This email and any files transmitted with it are confidential and
intended
> > solely for the use of the individual or entity to whom they are
addressed.
> > If you have received this email in error please notify the system
manager.
> >
> > Although Dimension Data has taken reasonable precautions to ensure no
> > viruses are present in this email, the company cannot accept
> > responsibility for any loss or damage arising from the use of this email
> > or attachments.
> >
> > www.uk.didata.com
> > **********************************************************************
> >
> > _______________________________________________________________________
> > 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 : Sun Sep 04 2005 - 17:00:29 GMT-3