Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

OSPF Passive Interface & Default Origination Reference

Direct answer

A passive interface has its network advertised by OSPF but sends no Hellos and forms no neighbours. default-information originate makes a router advertise a default route into OSPF.

When to use this

Use passive interfaces on every network where no OSPF router belongs — users, servers, loopbacks. Use default origination on the router that leads out of the network.

First 30 seconds

1. Neighbours gone after passive-interface default → add no passive-interface on router links.

2. No default advertised → does the router have a default route itself? If not, fix that or add always.

3. On other routers: show ip route 0.0.0.0 should show O*E2.

4. Two exits → set the metric to choose between them.

Operational verification

user-facing interfaces passive, networks still advertised → router links not passive, neighbours Full → originating router has its own default route → type 5 LSA for 0.0.0.0 → other routers install O*E2

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard
Key commandshow ip ospf interface brief
Scope / prerequisiteUse passive interfaces on every network where no OSPF router belongs — users, servers, loopbacks. Use default originati…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational verification Verify boundary
show ip ospf interface brief
show ip ospf interface GigabitEthernet0/1 | include Passive|Hello
show ip protocols | section Passive
show ip route 0.0.0.0
show ip ospf database external 0.0.0.0

The interface view of a passive interface says "No Hellos (Passive interface)". show ip protocols lists the passive interfaces. On the originating router, the routing table must hold a default route from some other source; the database then shows a type 5 LSA for 0.0.0.0 advertised by that router. On other routers the routing table shows O*E2.

Known-good: user-facing interfaces are passive and their networks are still in other routers' routing tables; the default LSA exists and points to the intended exit.

Step 2 Failure isolation workflow Narrow the fault
  • Neighbours disappeared after passive-interface default. The links to other routers were not excepted with no passive-interface.
  • A network is no longer advertised. That is not caused by passive; the interface has been removed from OSPF.
  • No default route is advertised. The router has no default route of its own, and always is not set.
  • The default disappears now and then. The router's own default — for instance from DHCP or a tracked static — comes and goes.
  • Traffic is drawn to a router with no way out. always is configured on a router whose upstream is down.
  • Both exits advertise a default and traffic takes the wrong one. Set the metric, or use metric type 1 so distance counts.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Passive does not remove the network from OSPF. Without always, the default route is advertised only while the router has one itself — which is what you want with two exits. passive-interface default needs no passive-interface on the links to other routers.

Key checks
  • show ip ospf interface <interface> — "No Hellos (Passive interface)".
  • show ip protocols | section Passive — the passive interfaces.
  • show ip route 0.0.0.0 — the originating router's own default route.
  • show ip ospf database external 0.0.0.0 — the advertised default.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

Two separate OSPF features that are both typically used at the edge of a network. A passive interface has its network advertised but forms no neighbours. default-information originate makes a router advertise a default route into OSPF.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

Passive interfaces keep OSPF away from user and server networks while still making them reachable. Default origination is how the rest of the network learns the way out. Each has one rule that is easy to get wrong: passive does not remove the network, and a default route is not advertised unless the router has one itself.

ReferenceHow it works1 section · depth on demand

How it works

Passive interface. On a passive interface OSPF sends no Hellos and ignores any it receives, so no neighbour can form. The interface's network is still advertised — as a stub network in the router's LSA — as long as the interface is enabled for OSPF.

router ospf 1
 passive-interface GigabitEthernet0/1

The safer pattern is to make everything passive and open only the links to other routers:

router ospf 1
 passive-interface default
 no passive-interface GigabitEthernet0/0

Use it on every interface where no OSPF router is expected: access VLANs, server networks, loopbacks. It stops a device plugged into such a network from becoming an OSPF neighbour and injecting routes.

Default origination.

router ospf 1
 default-information originate

The router then advertises 0.0.0.0/0 as an external route — but only while it has a default route in its own routing table, from a static route or another protocol. If that route disappears, the advertisement is withdrawn, which is useful: with two exits, a router that loses its upstream stops attracting traffic.

Adding always advertises the default route unconditionally. That suits a single exit, and is risky with two, since a router with no way out keeps drawing traffic.

Other routers install it as O*E2 0.0.0.0/0. metric and metric-type can be set on the command to prefer one exit over another.

In stub and totally stubby areas the ABR supplies a default route on its own; this command is not what produces it.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Passive interfaces advertise a network without forming adjacencies; default-information originate injects a default route

Both settings shape what OSPF advertises from a router: passive interfaces keep the protocol off segments without neighbours, and default origination tells the domain where to send unknown destinations.

Passive interfaces

The Catalyst 9300 OSPF guide describes passive-interface as suppressing hello packets on an interface. The interface's subnet is still advertised, but no neighbour can form an adjacency there. That's the right setting for user VLANs and any segment without other OSPF routers.

C9300(config)# router ospf 1
C9300(config-router)# passive-interface default
C9300(config-router)# no passive-interface TenGigabitEthernet1/1/1
C9300(config-router)# no passive-interface TenGigabitEthernet1/1/2
C9300# show ip ospf interface Vlan20 | include Passive|No Hellos
  No Hellos (Passive interface)

passive-interface default plus explicit exceptions for uplinks is safer than listing every user SVI, because new SVIs are passive automatically.

Without passiveWith passive
Hellos sent into user VLANsNo OSPF packets towards hosts
A rogue device could form an adjacency and inject routesNot possible on that interface
Unneeded CPU workLess control-plane traffic

Originating a default route

The guide states that default-information originate makes an ASBR generate a default route into the OSPF domain.

C9300-EDGE(config)# ip route 0.0.0.0 0.0.0.0 203.0.113.1
C9300-EDGE(config)# router ospf 1
C9300-EDGE(config-router)# default-information originate metric 10 metric-type 2
C9300-ACC# show ip route 0.0.0.0
Routing entry for 0.0.0.0/0, supernet
  Known via "ospf 1", distance 110, metric 10, candidate default path
  Tag 1, type extern 2, forward metric 2
OptionEffect
(none)Only if the router has a default route in its table
alwaysAlways originate, even without a default route (risk of black-holing)
metric / metric-type 1\|2Cost and external type of the default

With two internet edges, originate the default on both with different metrics, and avoid always so that the default disappears when an edge loses its upstream.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2328

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → OSPF Passive Interface & Default Origination Reference. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc2328.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
ospf passive interfacedefault information originateospf default route
Confirmation

Confirm action

Continue?