cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
735
Views
0
Helpful
4
Replies

BGP as-path filter for repeated AS numbers

Hello,

I am trying to implement an AS Path filter for repeated AS Numbers without typing a long list.

For example, in the below statement, I have to define the AS Number 65022 6 times using standard BGP regular expresison.

ip as-path access-list 1 permit 65022 65022 65022 65022 65022 65022

Is there anyway the above command can be written efficiently   ?. for example instead of typing the AS Number 65022  multiple times, can it be written somethinglike "65022{6}" ? .

Thanks for your support.

Franklin

4 Replies 4

ubsaccount
Level 1
Level 1

ip as-path access-list 10 permit ^(600)+

try that

+ specify one or many options. But can I specify the exact iteration?

I honestly never seen it.  Unless someone has some ninja tricks I've never seen.

ideally the pattern "65022 65022 65022 65022 65022 65022" could've been validated using the following expression..

ip as-path access-list 10 permit (65022 ) {5}

But it didn't work.

Review Cisco Networking products for a $25 gift card