BGP Filter Question

From: Joe Gagznos (kemphall@yahoo.com)
Date: Wed Oct 17 2007 - 14:27:59 ART


Just want to check this. I have the following bgp
configuration:

router bgp 123
 network 1.2.3.0 mask 255.255.255.0
 neighbor 221.122.10.1 remote as 2131
 neighbor 221.122.10.1 route-map pathprepend out
 neighbor 221.122.10.1 filter-list 1 out

route-map pathprepend permit 10
 set as-path prepend 123 123
route-map pathprepend permit 20

ip as-path access-list 1 permit ^$
ip as-path access-list 1 permit ^123$
ip as-path access-list 1 deny .*

Is the as path access list going to fail this route
advertisement? If I changed the access list to the
following would I still only be allowing routes
originating from 123 and allow as much prepending as I
want?

ip as-path access-list 1 permit ^$
ip as-path access-list 1 permit _123$
ip as-path access-list 1 deny .*

Thanks for your help!



This archive was generated by hypermail 2.1.4 : Fri Nov 16 2007 - 13:11:15 ART