cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
407
Views
7
Helpful
3
Replies

what is the difference about these 3 commands.

att-sgcops
Level 1
Level 1

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_

~~~~~~~~~~~~~~~~~~~~~~~~~~~

3 Replies 3

devang_etcom
Level 7
Level 7

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

devang_etcom
Level 7
Level 7

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

olorunloba
Level 5
Level 5

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

http://www.cisco.com/warp/public/459/26.html