How to prevent BGP aggregate from entering RIB?

From: YourPal (dearprudence28@gmail.com)
Date: Sat Feb 23 2008 - 10:11:37 ARST


Hi Group,

I have the following config:
SW2:
!
router bgp 65078
 no synchronization
 network 150.1.8.0 mask 255.255.255.0
 aggregate-address 150.1.0.0 255.255.240.0 summary-only
 no auto-summary
!

The aggregate goes into the RIB as follows:

B 150.1.0.0/20 [200/0] via 0.0.0.0, 00:00:01, Null0

I'd like to prevent it from entering the RIB. I can think of two methods:

Method 1
--------
!
router bgp 65078
 distance bgp 20 200 255
!

Method 2
--------
!
router bgp 65078
 distribute-list prefix DENY_AGG in
!
ip prefix-list DENY_AGG seq 5 deny 150.1.0.0/20
ip prefix-list DENY_AGG seq 10 permit 0.0.0.0/0 le 32
!

Both methods work. Can anyone advise me, in general what should I watch out
for if I were to use any of the above methods in a lab scenario?

Thank you.

BR,
Emil



This archive was generated by hypermail 2.1.4 : Sat Mar 01 2008 - 16:54:49 ARST