cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
438
Views
0
Helpful
2
Replies

Use of the BGP Aggregation Command

networkwise
Level 1
Level 1

Hello,

I have a BGP network that I am trying to be more efficient with. Just trying to advertise one summary route into the provider cloud. I have an internal routingprotocal of OSPF that I am redistrubuting into BGP via a route map (this is so I can control what I send into BGP). However I then would like to only send a summary route into the proiders AS. I am not doing something correctly as when I look at the routes advertised into the providers AS I see the summary route and the routes with longer prefixes that I am trying to hide.

Andy

Any advise would be appreciated.

!
router ospf 100
router-id 3.3.3.3
log-adjacency-changes
area 5.5.5.5 authentication
passive-interface default
network 10.10.50.200 0.0.0.0 area 5.5.5.5 These two nets I am trying to summerize
network 10.10.60.200 0.0.0.0 area 5.5.5.5 These two nets I am trying to summerize
!
router bgp 65008
no synchronization
bgp log-neighbor-changes
network 10.10.48.0 mask 255.255.240.0
aggregate-address 10.10.48.0 255.255.240.0
redistribute ospf 100 route-map OSPF_Into_BGP
neighbor 68.136.91.1 remote-as 65000
neighbor 68.136.91.1 route-map Set_ASPATH_Prepend out
neighbor 68.136.92.1 remote-as 65000
neighbor 68.136.92.1 weight 4000
no auto-summary
!
ip http server
no ip http secure-server
!
ip access-list standard OSPF_Into_BGP_ACL
permit 10.10.48.0 0.0.15.255 log
deny   any log
!
!
!
!
route-map Set_ASPATH_Prepend permit 10
set as-path prepend 65008 65008 65008
!
route-map OSPF_Into_BGP permit 5
match ip address OSPF_Into_BGP_ACL
!

lab-br1-gwan1-rtr#sh ip bgp neighbors 68.136.91.1 advertised-routes
BGP table version is 4, local router ID is 3.3.3.3
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
*> 10.10.48.0/20    0.0.0.0                            32768 i
*> 10.10.50.0/24    0.0.0.0                  0         32768 ? Trying ot remove these from being advertised.
*> 10.10.60.0/24    0.0.0.0                  0         32768 ?

Total number of prefixes 3
lab-br1-gwan1-rtr#

2 Replies 2

milan.kulik
Level 10
Level 10

Hi,

IMHO, you need to add summary-only keyword to your command, i.e., it should be

aggregate-address 10.10.48.0 255.255.240.0 summary-only

See http://www.cisco.com/application/pdf/paws/5441/aggregation.pdf

for details.

HTH,

Milan

Well your humble opinion was right on the money.

It worked thankyou.

Andy