Re: BGP Filter

From: Dale Shaw <dale.shaw_at_gmail.com>
Date: Sat, 9 May 2009 10:52:06 +1000

Hi,

On Sat, May 9, 2009 at 7:55 AM, Cisco Fanatic <ebay_products_at_hotmail.com> wrote:
> Now, I want R4 to learn only those prefixes that originated in AS 254 from
> BB2.
>
> R4
> ++
> !
> router bgp 22
> neighbor 22.22.252.254 route-map FILTER in
> !
> route-map FILTER permit 10
> match as-path 90
> !
> ip as-path access-list 90 permit ^254$
> !
>
> But, I am not getting the desired result. Humm??

This *should* work. Did you perform a route refresh ('clear ip bgp
22.22.252.254 soft') or reset the peer session ('clear ip bgp
22.22.252.254') after applying the config?

Turn on 'debug bgp ipv4 unicast 22.22.252.254 updates' (same as 'debug
ip bgp 22.22.252.254 updates'), reset the peer session and see if you
can spot something in the output.

Did you post a complete BGP config?

(as mentioned, 'neighbor 22.22.252.254 filter-list 90 in' is a cleaner
solution, if this is the only inbound policy you are applying)

cheers,
Dale

Blogs and organic groups at http://www.ccie.net
Received on Sat May 09 2009 - 10:52:06 ART

This archive was generated by hypermail 2.2.0 : Mon Jun 01 2009 - 07:04:42 ART