[nsp] BGP RegEx

Cristian BICA bcd at rdsnet.ro
Fri Mar 12 14:34:17 EST 2004


ip as-path access-list 101 deny ^1_2$
ip as-path access-list 101 permit .*

router bgp X
 nei a.b.c.d filter-list 101 in

for more advanced regexps read
http://www.cisco.com/en/US/tech/tk365/tk80/technologies_tech_note09186a00800c95bb.shtml#asregexp

> Hi everyone,
>
> I am trying to do BGP filtering and is wondering if
> anyone can help me out on the following issue.
>
> Assuming I have an AS-PATH as follows:
>
> 1 2
> 1 3
> 1 4
>
> For route-maping, is it possible to write a regex that
> filters out only "1 2" but accepts everything else
> that is "1 *" ?
>
> Thanks,
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Search - Find what you’re looking for faster
> http://search.yahoo.com
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>


-- 
Cristian  Bica


More information about the cisco-nsp mailing list