BGP AS path filtering - DOC CD example

From: Rasal Abdul Kader (rassal.rm@gmail.com)
Date: Fri Jun 24 2005 - 14:42:20 GMT-3


Could someone tell if the below is correct. I got it from the DOC CD
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fipr_c/ipcprt2/1cfbgp.htm#wp1002924

--------------------------------------------------------
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 .*



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