OSPF Passive Interface: When to Use and Configure it?
In the dynamic landscape of networking, optimizing routing protocols is crucial to ensure efficient data flow. Open Shortest…
An Area Border Router (ABR) is an OSPF router with interfaces in two or more areas, one of which must be the backbone, area 0. It is the boundary between areas and the only device that can pass routing information across one.
OSPF’s scaling design depends on it. Within an area, every router holds an identical link-state database and reruns SPF on any change. Areas contain that: a topology change inside area 10 does not force area 20’s routers to recalculate, because they never had area 10’s topology to begin with.
Every area must connect to area 0. All inter-area traffic passes through the backbone, area 10 cannot reach area 20 directly even if an ABR touches both, because OSPF’s inter-area routing is strictly hub-and-spoke through the backbone.
The design consequences:
! Virtual link across area 10, between two ABRs' router IDs
ABR1(config-router)# area 10 virtual-link 3.3.3.3
ABR2(config-router)# area 10 virtual-link 1.1.1.1| Role | Definition | Generates |
|---|---|---|
| Internal router | All interfaces in one area | Type 1, Type 2 |
| Backbone router | At least one interface in area 0 | Type 1, Type 2 |
| ABR | Interfaces in two or more areas, including area 0 | Type 3, Type 4 |
| ASBR | Redistributes routes from outside OSPF | Type 5, Type 7 in an NSSA |
One router can hold several roles at once, an ABR that also redistributes static routes is both ABR and ASBR.
| Type | Name | Originated by | Flooded within |
|---|---|---|---|
| 1 | Router LSA | Every router | Its own area only |
| 2 | Network LSA | The DR on a multi-access segment | Its own area only |
| 3 | Summary LSA | ABR | Other areas, carries prefixes, not topology |
| 4 | ASBR Summary | ABR | Tells other areas how to reach the ASBR |
| 5 | External LSA | ASBR | The whole domain, except stub areas |
| 7 | NSSA External | ASBR in an NSSA | The NSSA only; the ABR translates it to Type 5 |
Type 3 is the important one to understand. It says “network 10.20.0.0/16 is reachable through me, at this cost”, with no information about the links or routers inside the originating area. That is exactly why a flapping link in area 10 does not trigger SPF runs in area 20: the Type 3 LSA does not change unless reachability itself changes.
Summarising at the ABR is the single most effective OSPF scaling measure. It reduces the number of Type 3 LSAs, shrinks routing tables elsewhere, and, critically, hides instability, because a single component network flapping does not change the summary.
ABR(config)# router ospf 1
ABR(config-router)# area 10 range 10.10.0.0 255.255.0.0This replaces every 10.10.x.x route from area 10 with one advertisement into the other areas. The area X range command applies to the area the routes came from.
Two things worth knowing:
cost if you need deterministic behaviour.Summarisation only works if addressing is contiguous per area. This is why OSPF designs allocate address blocks per area up front, retrofitting summarisation onto a scattered address plan is not possible.
ABR(config)# ip prefix-list NO-LAB deny 10.99.0.0/16 le 32
ABR(config)# ip prefix-list NO-LAB permit 0.0.0.0/0 le 32
ABR(config-router)# area 10 filter-list prefix NO-LAB in| Area type | Type 3 allowed | Type 5 allowed | Type 7 allowed | ABR injects default |
|---|---|---|---|---|
| Standard | Yes | Yes | No | No |
| Stub | Yes | No | No | Yes |
| Totally stubby | No | No | No | Yes |
| NSSA | Yes | No | Yes | Optional |
| Totally NSSA | No | No | Yes | Yes |
! On every router in the area
Router(config-router)# area 10 stub
! On the ABR only, for totally stubby
ABR(config-router)# area 10 stub no-summary
! NSSA, allows an ASBR inside the stub area
ABR(config-router)# area 10 nssa
ABR(config-router)# area 10 nssa default-information-originateThe stub flag must match on every router in the area or adjacencies will not form. Only the no-summary keyword is ABR-only.
Totally stubby is the practical choice for branch sites: routers there hold their own area’s routes plus a single default. Routing tables stay tiny and SPF runs stay cheap.
Router# show ip ospf
Router# show ip ospf border-routers
Router# show ip ospf database summary
Router# show ip route ospfshow ip ospf states plainly whether the router is an ABR and how many areas it is attached to. In the routing table, inter-area routes are marked O IA.
Having interfaces in two or more OSPF areas, one of which is area 0. A router connecting area 10 and area 20 without touching the backbone is not a valid ABR and inter-area routing will not work through it.
Yes. If it redistributes routes from another protocol or from static routes into OSPF, it is both. This is common at a site’s edge router.
Only at an ABR (with area X range, for inter-area routes) or an ASBR (with summary-address, for external routes). Unlike EIGRP, OSPF cannot summarise on an arbitrary interface.
To prevent inter-area routing loops. OSPF’s distance-vector-like behaviour between areas has no loop-detection mechanism, so the design mandates a strict hub-and-spoke through the backbone.
A logical tunnel through a transit area that connects a disconnected area to area 0. It works, but it is a repair for a broken topology and should be replaced with a real backbone connection where possible.
There is no protocol limit, but each area costs memory for an LSDB and CPU for its own SPF runs. Two or three is normal design practice; more than that concentrates too much work in one device. See the routing protocols guide for broader context.