12-19-2008 07:47 AM - edited 03-04-2019 12:46 AM
My ISP's ASN is 7018.
Is following the correct syntax?
^7018_?[0-9]*$
If so, how the heck do I get the "?" in there?
The 7200 tells me:
"Router(config)#ip as-path access-list 1 permit ?
LINE A regular-expression to match BGP AS paths. Use "ctrl-v ?" to enter "?"
When I do ctrl-v ? though, it gives me "^_" instead of "?".
Anyone have any idea?
12-19-2008 11:47 AM
Hello Huang,
if you want to match BGP paths originated in AS 7018 you can use
^7018$
if you want match AS paths of AS length 2 with first AS 7018 you can use
^7018_[0-9]+$
I would use a two lines as path ACL is a good tradeoff between complexity and your needs
I know that first digit cannot be zero so a match for first digit would be [1-9] but also there can be no additional digits
Hope to help
Giuseppe
12-19-2008 01:36 PM
Hit CTRL-V then enter ? and continue typing the next text.
Rack1R1(config)#ip as-path access-list 1 permit ? ?
LINE
HTH,
__
Edison.
12-19-2008 05:47 PM
Very helpful, Thanks guys
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: