12-11-2002 10:17 PM - edited 03-02-2019 03:32 AM
Hi all,
I have something confuse, how to express the scope of the as path in the bgp as path access list ? I just how if you want to filter as 100 you can use ^100$,but if I want to filter from 100 to 234 ,how can I get it ?
Thank You!
Best Regards
Teru Lei
12-13-2002 02:48 AM
you should be able to specify one that is similar to the following:
^[1-2][0-3][0-4]$
using the brackets allows you to specify a range...
12-13-2002 06:19 PM
Except that expression, when expanded, only allows a few of the desired address through: those with 1 or 2 as the first digit, 0, 1, 2, or 4 as the second digit, and 0 through 3 as the last digit. So desired addresses will be blocked, such as 105 through 109, 115 through 119, 125 through 129, 135 through 199, etc.
But you can express the desired filter in three lines to get the logical OR of
100 through 199 with ^1[0-9][0-9]$,
200 through 229 with ^2[0-2][0-9]$, and
230 through 234 with ^23[0-4]$.
Good luck and have fun!
Vincent C Jones
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide