← Back to Part 2 Modules
PART 2 · ADVANCED BGP THEORY · MODULE I

Module I – BGP Route Advertisement

Lesson content presented from the approved Part 2 master documentation.

This module explains how BGP originates, redistributes and aggregates routes, and how policy controls route propagation.

Learning objectives

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

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

  1. Confirm the source prefix exists in the local RIB.
  2. Confirm origination or redistribution is configured.
  3. Inspect the local BGP table and attributes.
  4. Inspect outbound policy and advertised-routes.
  5. Verify the receiving peer's BGP table and inbound policy.
  6. 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

IDTestExpected result
I-01Exact route and network statementPrefix originated.
I-02Remove exact routePrefix withdrawn/not advertised.
I-03Different maskNo unintended origination.
I-04Redistribute permitted OSPF routeOnly permitted route enters BGP.
I-05Redistribute denied prefixPrefix excluded.
I-06Generate aggregateExpected summary advertised.
I-07summary-onlyMore-specifics suppressed.
I-08as-set aggregationAS_SET behaviour matches platform.
I-09Outbound filterOnly intended routes advertised.
I-10Withdraw componentAggregate behaviour follows remaining contributors.

Interview questions

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.

Source and assessment note

Technical explanations, tables, examples, QA scenarios and assessments are presented from the approved Part 2 master documentation. Verify illustrative CLI syntax against the target router platform and software release before lab or production use.