Refer to the exhibit. A network administrator is configuring BGP route filtering on R1. The objective is to advertise only locally originated routes to its neighbor to avoid undesirable transit connectivity. Which AS path ACL should the administrator configure?
- ip as-path access-list 1 permit *$
- ip as-path access-list 1 permit ^$
- ip as-path access-list 1 permit _$
- ip as-path access-list 1 permit [^$]
Answers Explanation & Hints:
To restrict traffic to only locally originated traffic, configure the AS path ACL using the regex pattern ^$. |