This module explains how BGP originates, redistributes and aggregates routes, and how policy controls route propagation.
Learning objectives
- Explain BGP network-statement origination and exact-match requirements.
- Differentiate origination from redistribution.
- Control redistribution using route maps and prefix lists.
- Explain aggregate-address, summary-only and as-set.
- Verify advertised, received and installed routes independently.
1. Network statement
On Cisco IOS, a BGP network statement normally originates a prefix when an exact matching prefix and mask exists in the local routing table. It does not create the underlying route; a covering route or different mask is not necessarily sufficient.
router bgp 65001
network 172.16.1.1 mask 255.255.255.255
!
show ip route 172.16.1.1
show ip bgp 172.16.1.1
2. Redistribution
Redistribution injects routes learned by another routing source—OSPF, EIGRP, IS-IS or static routing—into BGP. Uncontrolled redistribution can cause route leaks, feedback loops and excessive advertisements.
ip prefix-list OSPF-PREFIXES seq 10 permit 10.10.10.0/24
route-map OSPF-TO-BGP permit 10
match ip address prefix-list OSPF-PREFIXES
!
router bgp 65001
redistribute ospf 10 route-map OSPF-TO-BGP
- Use explicit prefix filters and route maps.
- Check metric/origin handling and platform-specific requirements.
- Prevent routes being redistributed back into their source protocol without loop controls.
- Confirm the source route exists before expecting redistribution.
3. Aggregation
Aggregation advertises a covering summary instead of—or in addition to—component routes. It can reduce routing-table size, but should represent reachable component space and use appropriate discard/summary handling.
router bgp 65001
aggregate-address 172.16.0.0 255.255.0.0 summary-only
aggregate-address 172.16.0.0 255.255.0.0 as-set
summary-only suppresses more-specific component advertisements when the aggregate is generated. as-set can preserve contributing AS information in an AS_SET, subject to platform support.
4. Verification workflow
- Confirm the source prefix exists in the local RIB.
- Confirm origination or redistribution is configured.
- Inspect the local BGP table and attributes.
- Inspect outbound policy and advertised-routes.
- Verify the receiving peer's BGP table and inbound policy.
- Check RIB installation, next-hop reachability and forwarding separately.
show ip route <prefix>
show ip bgp <prefix>
show ip bgp neighbors <peer> advertised-routes
show ip route bgp
Senior QA scenarios
| ID | Test | Expected result |
|---|---|---|
| I-01 | Exact route and network statement | Prefix originated. |
| I-02 | Remove exact route | Prefix withdrawn/not advertised. |
| I-03 | Different mask | No unintended origination. |
| I-04 | Redistribute permitted OSPF route | Only permitted route enters BGP. |
| I-05 | Redistribute denied prefix | Prefix excluded. |
| I-06 | Generate aggregate | Expected summary advertised. |
| I-07 | summary-only | More-specifics suppressed. |
| I-08 | as-set aggregation | AS_SET behaviour matches platform. |
| I-09 | Outbound filter | Only intended routes advertised. |
| I-10 | Withdraw component | Aggregate behaviour follows remaining contributors. |
Interview questions
- Difference between network origination and redistribution?
- Why does Cisco IOS require an exact route/mask match?
- Risks of unrestricted redistribution?
- What does aggregate-address do?
- Effect of summary-only?
- Why use as-set?
Student Knowledge Assessment – Module I (reconstructed)
Q1. What must normally exist for a Cisco IOS BGP network statement to originate a prefix?
A. A default route only
B. An exact matching route and mask in the routing table
C. An OSPF neighbour
D. A route reflector
Correct answer: B. An exact matching route and mask in the routing table
Explanation: The network statement normally requires an exact route/mask match in the local RIB.
Q2. Does a BGP network statement create the underlying route?
A. Yes
B. No
C. Only for iBGP
D. Only when MED is set
Correct answer: B. No
Explanation: The route must already exist in the routing table.
Q3. What is redistribution?
A. Changing TCP port
B. Injecting routes from another routing source into BGP
C. Changing router ID
D. Negotiating Hold Time
Correct answer: B. Injecting routes from another routing source into BGP
Explanation: Redistribution imports routes from another routing source into BGP.
Q4. What is a key risk of unrestricted redistribution?
A. Lower CPU temperature
B. Route leaks and feedback loops
C. Automatic RPKI validation
D. Reduced MTU
Correct answer: B. Route leaks and feedback loops
Explanation: Uncontrolled redistribution can propagate unintended routes or create feedback loops.
Q5. What does aggregate-address provide?
A. Route summarization
B. Peer authentication
C. Timer negotiation
D. TCP encryption
Correct answer: A. Route summarization
Explanation: It creates an aggregate BGP advertisement from contributing routes.
Q6. What does summary-only do?
A. Advertises only components
B. Suppresses more-specific component advertisements
C. Disables BGP
D. Changes origin AS
Correct answer: B. Suppresses more-specific component advertisements
Explanation: summary-only suppresses more-specific routes when the aggregate is advertised.
Q7. What can as-set preserve?
A. Contributing AS information
B. TCP sequence numbers
C. Interface metrics
D. RPKI certificates
Correct answer: A. Contributing AS information
Explanation: AS_SET can carry contributing AS information in the aggregate path.
Q8. Which command checks routes advertised to a neighbour?
A. show ip bgp neighbors <peer> advertised-routes
B. show arp
C. show vlan
D. show clock
Correct answer: A. show ip bgp neighbors <peer> advertised-routes
Explanation: The advertised-routes view verifies outbound route propagation.
Q9. Does Established guarantee prefix installation?
A. Yes
B. No
C. Only eBGP
D. Only with MED 0
Correct answer: B. No
Explanation: Session state, path selection, RIB installation and forwarding are separate checks.
Q10. What should be checked before redistribution?
A. Source route exists and policy permits it
B. DNS works
C. Peer uses UDP
D. Router ID is public
Correct answer: A. Source route exists and policy permits it
Explanation: Confirm the source route and apply controlled redistribution policy.