Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

OSPF Options Bit Reference

Direct answer

The OSPF Options field advertises capabilities in Hellos, DBDs and LSAs — for example the E-bit (external routing; cleared in stub areas) and N/P-bits for NSSA. A mismatched E-bit is why routers in stub and non-stub configurations will not become neighbors.

When to use this

Use it when OSPF neighbours on a stub or NSSA area will not form, or when reading Options in Hello, DBD and LSA captures.

First 30 seconds

1. debug ip ospf hello or the log — "mismatched stub/transit area option bit"?

2. show ip ospf | include stub|nssa on both routers — same area type?

3. Capture a Hello: E and N bits on each side.

4. Configure the same area <n> stub / area <n> nssa on every router in the area.

5. Neighbours reach FULL.

Operational verification

area type configured → Options bits set in Hellos (E, N) → neighbours compare them → match → adjacency proceeds → LSAs carry bits (P for NSSA translation)

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 neighbor detail
Scope / prerequisiteUse it when OSPF neighbours on a stub or NSSA area will not form, or when reading Options in Hello, DBD and LSA capture…
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.

3 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 Field/LSDB/capture verification and known-good sequence Verify boundary
show ip ospf neighbor detail
show ip ospf
show ip ospf database router 10.0.0.1
debug ip ospf hello

The neighbour detail prints the options received, for example Options is 0x12 in Hello (E-bit, L-bit). show ip ospf lists each area and whether it is a stub or NSSA. The LSA output shows the options of each LSA. If no neighbour forms, debug ip ospf hello reports a stub or NSSA mismatch; use it briefly.

Known-good: both routers show the same area type for the area, and the E and N bits in the neighbour's Hello correspond to it.

Step 2 Failure signatures and field-level troubleshooting Narrow the fault
  • No neighbour, and the debug reports a mismatched stub/transit area option. One side has area <id> stub and the other does not: the E bit differs.
  • No neighbour in an NSSA. One side lacks area <id> nssa: the N bit differs.
  • One router configured stub, the other nssa. Both clear the E bit, but the N bit differs.
  • The options differ in other bits. Not a fault; L, DC and O only announce capabilities.
  • A type 7 LSA is not translated. Its P bit is cleared.
Step 3 When the problem is really fixed Narrow the fault
  • The area type is identical on every router in the area.
  • Neighbours form, and their Hello options show the expected E or N bit.
  • No option mismatch is reported by the debug, which is turned off again.
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

E bit set = area accepts external LSAs; cleared in stub and NSSA areas — routers with different settings ignore each other's Hellos. N bit in Hellos signals NSSA support. P bit in a type 7 LSA tells the ABR to translate it to type 5. O bit marks opaque LSA support; DC is demand circuits.

Key checks
  • Wireshark filter ospf.msg == 1 (Hello) and ospf.msg == 2 (DBD) — Options field.
  • show ip ospf interface <if> — area and area type on each side.
  • show ip ospf | include Area|stub|nssa — configured area types.
  • debug ip ospf hello — "Mismatched stub/transit area option bit E" messages.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

The Options field is a single byte of capability flags that appears in OSPF Hello packets, Database Description packets and every LSA header. Each bit says that the sender supports — or the area uses — a particular feature.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

Two of the bits describe the area type, and they must agree between neighbours. When one router has an area configured as stub or NSSA and its neighbour does not, the Options byte is where the disagreement shows, and no neighbour forms.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

The Options field advertises optional capabilities

The Options byte appears in Hello packets, Database Description packets and LSA headers. RFC 2328 describes the bits it uses:

BitNameMeaning
EExternal routingArea accepts AS-external-LSAs (not set in stub areas)
MCMulticastForwarding of IP multicast (MOSPF, obsolete)
N/PNSSAIn Hellos, NSSA support; in type 7 LSAs, the P bit asks the ABR to translate to type 5
EAExternal attributesExternal-attributes LSA (rarely used)
DCDemand circuitsDemand-circuit support

Later standards added the O bit (opaque LSAs, used by MPLS-TE and segment routing extensions) and the DN bit (loop prevention for MPLS VPN PE-CE routing).

E bit and stub areas

The RFC says the E bit is set for LSAs in the backbone and non-stub areas and for AS-external-LSAs, and cleared for router, network and summary LSAs in stub areas. In Hellos, a router in a stub area clears it. Neighbours with different E bits (one stub, one not) don't form an adjacency.

C9300# debug ip ospf hello
OSPF-1 HELLO Te1/1/2: Rcv hello from 10.0.0.31 area 10 10.255.0.10
OSPF-1 HELLO Te1/1/2: Hello from 10.255.0.10 with mismatched Stub/Transit area option bit
C9300# show ip ospf database router 10.0.0.31 | include Options
  Options: (No TOS-capability, DC)

Decoding the hex value in debug output

BitValue
DN0x80
O0x40
DC0x20
EA0x10
N/P0x08
MC0x04
E0x02
MT0x01

Add the values of the bits that are set. For example, opt 0x52 in IOS debug output is 0x40 + 0x10 + 0x02: O, EA and E. opt 0x42 is O and E. A router in a stub area shows no E bit (for example opt 0x40).

Practical use

Most Options problems show up as adjacency failures between routers that disagree on area type. Check area <id> stub or nssa on every router in the area.

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.

Field structure, identity and state ownership

BitValueMeaning
E0x02External routing: the area accepts type 5 LSAs. Set in normal areas, cleared in stub and NSSA areas
MC0x04Multicast OSPF (not used in practice)
N / P0x08In a Hello: the area is an NSSA. In a type 7 LSA header: the ABR may translate this LSA to type 5
L0x10A link-local signalling block follows the packet
DC0x20Demand circuit support
O0x40Opaque LSA support
DN0x80Used in MPLS VPN to prevent loops

Only E and N are compared when a Hello is received, and both must match the receiver's own setting for the area. E and N are never set together. The other bits announce capabilities and do not block a neighbour.

Typical Hello values on Cisco IOS:

Area typeOptions
Normal0x12 (E + L)
Stub0x10 (L)
NSSA0x18 (N + L)

In the DBD packet the O bit tells whether opaque LSAs — used by features such as traffic engineering — should be exchanged.

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 Options Bit 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 options bitsospf e bitospf n bit
Embedded reference data

Quick lookup tables

OSPF Options Bit Reference field-level operational reference

Identity-first field interpretation, suspicious signatures and the next protocol/forwarding proof boundary.

Field boundaryKnown-good for OSPF Options Bit ReferenceSuspicious signatureNext proof
Identity/lengthExact object/peer and coherent structureWrong identity, type or boundaryRaw packet/LSDB object + peer state
Field semanticsraw Options octet plus decoder labels for E, N/P and any deployed extension bits such as DC/O/DN, interpreted in the packet/LSA context where the byte was observed and against the configured OSPF area type match intended designarea-type disagreement expressed through incompatible capability signaling, NSSA/external capability mismatch, an extension bit required by the design missing on one peer, decoder/platform disagreement that masks the raw byte, or apparently different Options values that are incorrectly blamed even though the neighbor progresses and the real failure is later in DBD/LSA exchangeCompare same object across both sides
State consequenceField predicts expected protocol/route transitionObject looks valid but local state disagreesLSDB/SPF or BGP policy → RIB/FIB
ClosureOriginal workload succeeds for the explained reasonProtocol state recovered only transientlyRepeat state/capture + regression test
Confirmation

Confirm action

Continue?