Free tech learning for everyone, from basics to pro

Routing & SwitchingNetworking SecurityAdvanced

OSPF default routes, summarisation and route filtering

In short: OSPF advertises a default route with default-information originate. Because routers in one area must keep identical databases, summarisation and filtering only happen at boundaries: ABRs summarise and filter type 3 LSAs, ASBRs summarise external routes. A distribute-list only changes the local routing table, not what is flooded.

Advertising a default route

Most networks have one or two routers that connect to the internet or a provider. Rather than giving every router a static default route, you let those edge routers advertise 0.0.0.0/0 into OSPF. The command is default-information originate, and it turns the router into an ASBR that floods a type 5 LSA for the default route.

ip route 0.0.0.0 0.0.0.0 203.0.113.1
!
router ospf 1
 default-information originate metric 10 metric-type 1

By default the router only advertises the default if it has one in its own routing table, so if the internet link fails the route is withdrawn and traffic moves to the other exit. Adding always advertises it regardless. Use always carefully: it can attract traffic to a router that has nowhere to send it. Using metric-type 1 makes each router prefer its nearest exit.

Summarisation: only at the edges

Where OSPF can shrink or filter routesOSPF route controlpick the right placeABR: arearangesummarise type3ASBR:summary-addresssummarise type 5ABR:filter-listblock type 3distribute-listinlocal routingtable onlydefault-informationinject 0.0.0.0/0
Figure 1. OSPF can only summarise and filter at area and domain boundaries, because routers inside an area must share an identical database.

Inside an area every router must hold the same LSDB, so OSPF cannot summarise there. It can summarise in two places:

  • Inter-area summarisation on an ABR with area X range. The ABR advertises one type 3 LSA for the range instead of one per subnet, as long as at least one subnet in the range exists.
  • External summarisation on an ASBR with summary-address, which replaces many type 5 (or type 7) LSAs with one.
router ospf 1
 area 10 range 10.10.0.0 255.255.0.0
 summary-address 172.20.0.0 255.255.0.0

The router that summarises installs a discard route to Null0 for the summary. Traffic for unused addresses inside the range is dropped there instead of looping towards a default route. The CIDR calculator helps you check that a range covers exactly the subnets you mean. Summaries also hide instability: when one branch subnet flaps, the summary stays up, so routers elsewhere do not rerun calculations.

Tip: a summary that covers addresses used somewhere else in the network causes black holes. Summarise only blocks that live entirely behind that ABR.

Filtering routes

ToolWhereEffect
area X range ... not-advertiseABRHides a range from other areas entirely
area X filter-list prefix NAME in|outABRFilters individual type 3 LSAs entering or leaving an area
summary-address ... not-advertiseASBRStops a range of external routes being advertised
Route-map on redistributeASBRChooses which external routes become type 5 LSAs at all
distribute-list ... inAny routerKeeps routes out of this router's routing table only; the LSAs are still in the LSDB and still flooded
ip prefix-list NO-LAB seq 5 deny 10.99.0.0/16 le 32
ip prefix-list NO-LAB seq 10 permit 0.0.0.0/0 le 32
!
router ospf 1
 area 0 filter-list prefix NO-LAB in

The filter-list above stops the lab network 10.99.0.0/16 from being advertised into area 0 by this ABR. The distribute-list is the one people misunderstand: because it does not stop flooding, routers further on still learn the route, and a router that filters a route locally can black-hole traffic that others send to it.

Real-world example: a manufacturer's two internet exits

A manufacturer had internet links at its head office and at its main factory. Both edge routers used default-information originate always, which an earlier contractor had added. When the factory's fibre was cut by roadworks, the factory router kept advertising the default, and every site nearer the factory kept sending internet traffic to a dead end. The engineer removed always from both routers and tracked each static default route with IP SLA, so each default route, and therefore its OSPF advertisement, disappeared when the provider stopped answering. She also changed both to metric-type 1, so each site used its nearest working exit.

Practice

Why can OSPF not summarise routes between two routers in the same area?
All routers in an area must have an identical link-state database; summarising inside an area would break that.
An engineer adds distribute-list in on R3 to block 10.5.0.0/16, but R4 behind R3 still has the route. Why?
A distribute-list in only affects R3's own routing table. The LSAs are still in the database and flooded to R4.
What does the always keyword do on default-information originate?
It advertises a default route even if the router has no default route of its own.

Key takeaways

  • default-information originate advertises a default; without always it follows the local default route.
  • Summarise inter-area routes on ABRs with area range, external routes on ASBRs with summary-address.
  • Summaries create a Null0 discard route to prevent loops.
  • Filter type 3 LSAs with filter-lists on ABRs.
  • A distribute-list in changes only the local routing table, not flooding.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.