Re: BGP Filter

From: Bryan Bartik <bbartik_at_ipexpert.com>
Date: Fri, 8 May 2009 16:41:14 -0600

You can filter by AS-Path with a route-map. What results do you get? Did you
clear bgp? Here is an example:

R9#sho ip bgp
   Network Next Hop Metric LocPrf Weight Path
*> 100.100.100.0/24 150.50.89.8 0 8 100 2 ?
*> 100.100.101.0/24 150.50.89.8 0 8 200 2 ?
*> 150.50.24.0/30 150.50.89.8 0 8 200 2 i
r> 150.50.89.0/24 150.50.89.8 0 0 8 200 i
*> 200.0.0.4/32 150.50.89.8 0 8 200 2 ?
*> 200.0.0.9/32 0.0.0.0 0 32768 i
R9#

R9(config)#ip as-path access-list 1 pe _100_
R9(config)#route-map FILTER
R9(config-route-map)#match as-path 1

R9(config)#router bgp 65000
R9(config-router)#neighbor 150.50.89.8 route-map FILTER in

R9#sho ip bgp
   Network Next Hop Metric LocPrf Weight Path
*> 100.100.100.0/24 150.50.89.8 0 8 100 2 ?
*> 200.0.0.9/32 0.0.0.0 0 32768 i
R9#

Bryan Bartik
CCIE #23707, CCNP
Sr. Support Engineer - IPexpert, Inc.
URL: http://www.IPexpert.com

Blogs and organic groups at http://www.ccie.net
Received on Fri May 08 2009 - 16:41:14 ART

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