Lab Objective
Configure BGP route summarization on a router originating several specific subnets, first observing the default behavior of advertising both the summary and the specifics, then applying the summary-only keyword to suppress the specific routes entirely.
Lab Purpose
Route summarization, discussed earlier in this series for OSPF and EIGRP, applies equally to BGP but uses a distinct command. Reducing the number of prefixes advertised into the global internet routing table is a significant responsibility for any multi-homed organization, since unnecessary specific routes consume memory across every internet router that must carry a full routing table.
Lab Topology
R1 (AS 65100) originates four specific
subnets, all within a contiguous /22 block:
192.168.44.0/24
192.168.45.0/24
192.168.46.0/24
192.168.47.0/24
R1 ---- eBGP ---- R2 (AS 65200, external peer)Task 1: Advertise the Four Specific Networks
Configure R1 to advertise all four specific /24 networks into BGP.
Task 2: Verify R2 Receives Four Specific Routes
Confirm R2's BGP table shows all four individual entries.
Task 3: Configure Basic Aggregation
Configure aggregate-address for the /22 summary covering all four subnets, without yet suppressing the specifics.
Task 4: Verify Both the Summary and Specifics Appear
Confirm R2 now sees both the new summary route and the original four specific routes.
Task 5: Apply Summary-Only to Suppress the Specifics
Reconfigure the aggregate with the summary-only keyword and verify only the summary route remains visible to R2.
Solution and Verification
R1(config)# router bgp 65100
R1(config-router)# network 192.168.44.0 mask 255.255.255.0
R1(config-router)# network 192.168.45.0 mask 255.255.255.0
R1(config-router)# network 192.168.46.0 mask 255.255.255.0
R1(config-router)# network 192.168.47.0 mask 255.255.255.0R2# show ip bgp
Network Next Hop Path
*> 192.168.44.0/24 [via R1] 65100 i
*> 192.168.45.0/24 [via R1] 65100 i
*> 192.168.46.0/24 [via R1] 65100 i
*> 192.168.47.0/24 [via R1] 65100 i
-- Four separate specific routes, before
-- any summarization is appliedR1(config)# router bgp 65100
R1(config-router)# aggregate-address 192.168.44.0 255.255.252.0R2# show ip bgp
Network Next Hop Path
*> 192.168.44.0/22 [via R1] 65100 i
*> 192.168.44.0/24 [via R1] 65100 i
*> 192.168.45.0/24 [via R1] 65100 i
*> 192.168.46.0/24 [via R1] 65100 i
*> 192.168.47.0/24 [via R1] 65100 i
-- The summary now exists ALONGSIDE the
-- specifics -- aggregate-address by default
-- adds a summary route without removing
-- the more specific ones already being
-- advertisedR1(config)# router bgp 65100
R1(config-router)# no aggregate-address 192.168.44.0 255.255.252.0
R1(config-router)# aggregate-address 192.168.44.0 255.255.252.0 summary-onlyR2# show ip bgp
Network Next Hop Path
*> 192.168.44.0/22 [via R1] 65100 i
-- Only the single summarized route remains
-- visible -- the summary-only keyword
-- suppressed all four specific /24
-- advertisements entirelyKey Takeaway
The aggregate-address command's default behavior of advertising the summary alongside the specifics is often not what an administrator actually wants — summary-only is required to achieve the genuine reduction in advertised prefixes that is usually the entire point of summarizing, and forgetting this keyword is a common mistake that leaves the routing table just as large as before while adding an extra, redundant summary route on top.