06-16-2006 02:24 AM - edited 03-03-2019 01:01 PM
Can someone tell me the difference (I try to filter the routing based on AS-PATH):
~~~~~~~~~~~~~~~~~~~~~~~`
neighbor 204.12.1.254 filter-list 1 out
ip as-path access-list 1 deny _254_
~~~~~~~~~~~~~~~~~~~~~~~~
neighbor 204.12.1.254 route-map no254 out
route-map no254 deny 10
match as-path 1
route-map no254 permit 20
ip as-path access-list 1 permit _254_
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
neighbor 204.12.1.254 route-map no254 out
route-map no254 permit 10
match as-path 1
ip as-path access-list 1 deny _254_
~~~~~~~~~~~~~~~~~~~~~~~~~~~
06-16-2006 02:39 AM
neighbor ipaddress filter list...this command sets up an AS path access list that filter BGP routes sent to or received from a specific neighbor...and out keyword applies filter to outgoing routes...
means here your total configuration post by you is used for the route filtering...
hope this will help you
rate this post if it helps
regards
Devang
06-16-2006 02:43 AM
ip as-path accesslist...
this command used to build an access list for the BGP AS paths...you can have this list appled to aneighbor with the filter list option to the neighbor command as you have done...
ip as-path access-list deny_254_
this command denies the routes that include AS 254...
rate this post if it helps
regards
Devang
06-16-2006 02:54 AM
neighbor 204.12.1.254 filter-list 1 out
ip as-path access-list 1 deny _254_
This uses a filter-list to filter all routes that have passed through AS 254. But because there is an implied deny all at the end of an access-list, all other routes are denied as well, and nothing is advertised. To correct this,
include ip as-path access-list 1 permit .*
neighbor 204.12.1.254 route-map no254 out
route-map no254 deny 10
match as-path 1
route-map no254 permit 20
ip as-path access-list 1 permit _254_
This uses a route-map deny the advertising routes that have passed through AS 254. The line route-map no254 permit 20 ensures that the other routes are not denied and advertised.
neighbor 204.12.1.254 route-map no254 out
route-map no254 permit 10
match as-path 1
ip as-path access-list 1 deny _254_
This permit the advertisement of only routes that have passed through AS 254. Other routes are denied.
Look in the following links for more example
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide