BGP regular expression for 4-byte AS numbers
I'm working on a topology and trying to test regular expression. I have used 4-bytes AS numbers and have written the regular expression as this:
ip as-path access 2 permit ^[1-9]+$
I want to permit the routes that are local to the neighboring ASs (I mean the routes with only one AS in AS_PATH). I applied it to the neighbors with filter-list command but it blocked all the routes from the neighbors. regarding to the fact that I have used 4-buyes AS numbers on routers, the BGP routes are shown like this on devices:
* 22.214.171.124/32 126.96.36.199 0 19661100 32768500 i
*> 188.8.131.52 0 19661100 32768500 i
* i 184.108.40.206 0 100 0 400 32768500 i
if the as numbers shown above were in decimal values, the regular expression should worked fine, but it didn't. I suppose that writing regular expression for 4-byte AS numbers must be different. how can I achieve my goal in this scenario?
anyway if there is a good article about using regular expression for 4-byte AS numbers, please let me know. tnx a lot.