12-31-2003 06:40 AM - edited 03-02-2019 12:37 PM
Hi,
I need to filter any routes that have either originated or traversed through AS100.Which of the following method is correct ?
ip as-path access-list 1 deny _100_
OR do i need two statements
ip as-path access-list 1 deny _100_
ip as-path access-list 1 deny ^100_
Thanks for your help
IQ
12-31-2003 08:25 AM
_100_ will match only those routes which traversed through AS 100. You should use ^100$ for those routes which originated from AS 100.
You will need multiple lines for matching both originated routes as well as those traversed through AS 100.
12-31-2003 07:50 PM
_100_ will actually accomplish both. _100_ will match routes that include AS number 100 anywhere in the AS_PATH. ^100$ would match routes that only had AS number 100 in the AS_PATH (and only one instance of it). The correct expression for all routes originating from AS 100 would be ^100_.
~Zach
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: