Re: IP AS-PATH ACL & Regular Expressions

From: Sage Vadi (sagevadi@yahoo.co.uk)
Date: Fri Dec 20 2002 - 11:54:44 GMT-3


That's fantastic Chris, I tested in my lab and this
was what I was missing (for all others interested):

1. ip as-path access-list 1 deny _3_
2. ip as-path access-list 1 permit .*

Line 2 wasn't in there!!! I have now configured line 2
and it works like a charm.

 --- chrisa <chris_atkins@blueyonder.co.uk> wrote: >
Depends what you are trying to do.
>
> Here is a example.
>
> neighbor x.x.x.x route-map foo in
>
> route-map foo permit 10
> match as-path 1
>
> ip as-path access-list 1 deny _3_
> ip as-path access-list 1 permit .*
>
> This would deny anything with a AS 3 in the AS path
> and permits all others.
>
>
> Another
>
> neighbor x.x.x.x route-map foo in
>
> route-map foo permit 1
> match as-path 1
>
>
> ip as-path access-list 1 permit ^50$
> ip as-path access-list 1 deny .*
>
>
> This would only allow AS 50.
>
> Suggest play with in a lab very powerful tool but
> needs practice good
> examples on routing TCP II and appendix B has a good
> tutorial.
>
>
>
>
>
>
>
> ----- Original Message -----
> From: "Sage Vadi" <sagevadi@yahoo.co.uk>
> To: <ccielab@groupstudy.com>
> Sent: Friday, December 20, 2002 12:21 PM
> Subject: IP AS-PATH ACL & Regular Expressions
>
>
> > Hi all!
> >
> > Currently I have -
> >
> > ip as-path access-list 1 permit _3_
> > ~
> > route-map foo permit 10
> > match as-path 1
> > ~
> > neighbor x.x.x.x route-map foo in
> >
> > Which does what it is meant to do - ensure that
> the AS
> > path has got a 3 in it's list.
> >
> > Q) How do I do the OPPOSITE - DENY any routes that
> > have a 3 in the AS-PATH ???
> >
> > Can you show me how to set the route-map (deny or
> > permit) and how to set the as-path acl (deny or
> > permit). I've tried various permutations with
> little
> > success.
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
> > .
> .
>



This archive was generated by hypermail 2.1.4 : Fri Jan 17 2003 - 17:21:50 GMT-3