BGP Path Filtering By Neighbor

From: Anthony Sequeira (terry.francona@gmail.com)
Date: Mon Jun 20 2005 - 23:33:23 GMT-3


OK - looks like the DOC-CD author was a bit tired when they wrote
this. I think they are dead wrong here and also have an obvious
"binding" error:

BEGIN QUOTE
BGP Path Filtering by Neighbor Examples
The following example shows BGP path filtering by neighbor. Only the
routes that pass autonomous system path access list 2 will be sent to
193.1.12.10. Similarly, only routes passing access list 3 will be
accepted from 193.1.12.10.

router bgp 200
neighbor 193.1.12.10 remote-as 100
neighbor 193.1.12.10 filter-list 1 out
neighbor 193.1.12.10 filter-list 2 in

ip as-path access-list 1 permit _109_
ip as-path access-list 2 permit _200$
ip as-path access-list 2 permit ^100$
ip as-path access-list 3 deny _690$
ip as-path access-list 3 permit .*
END QUOTE

Am I correct in stating that it is this simple - traffic that matches
the as-path access-list will be the traffic that is filtered?

For example, if I want to filter traffic that has originated in AS 200
- I would simply say:
neighbor 189.45.23.10 filter-list 1 out

ip as-path access-list 1 permit _200$



This archive was generated by hypermail 2.1.4 : Wed Jul 06 2005 - 14:43:42 GMT-3