5.4 - My Alternative BGP Filtering, Feedback?

Mine:

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

router bgp 400
neighbor 204.12.2.254 filter-list 1 out

my verification (254 originated routes are not sent):

RSRack2SW1#show ip bgp neighbors  204.12.2.254 advertised-routes

BGP table version is 34, local router ID is 150.2.7.7

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

              r RIB-failure, S Stale

Origin codes: i - IGP, e - EGP, ? - incomplete



   Network          Next Hop            Metric LocPrf Weight Path

*> 112.0.0.0        132.2.17.1                             0 300 100 54 50 60 i

*> 113.0.0.0        132.2.17.1                             0 300 100 54 50 60 i

*> 114.0.0.0        132.2.17.1                             0 300 100 54 i

*> 115.0.0.0        132.2.17.1                             0 300 100 54 i

*> 116.0.0.0        132.2.17.1                             0 300 100 54 i

*> 117.0.0.0        132.2.17.1                             0 300 100 54 i

*> 118.0.0.0        132.2.17.1                             0 300 100 54 i

*> 119.0.0.0        132.2.17.1                             0 300 100 54 i

 

IEWB's:

ip as-path access-list 1 permit _254$

route-map STOP_TRANSIT_TO_AS_254 deny 10
 match as-path 1
route-map STOP_TRANSIT_TO_AS_254 permit 20

router bgp 400
 neighbor 204.12.1.254 route-map STOP_TRANSIT_TO_AS_254 out

 

 

 

Both look good to me, however, your feedback is important :)

Comments

Sign In or Register to comment.