OSPF Options Bit Reference
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.
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.
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
Operational reference
Fast context before you go deeper.
show ip ospf neighbor detailVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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> stuband 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 othernssa. 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 · 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.
- Wireshark filter
ospf.msg == 1(Hello) andospf.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:
| Bit | Name | Meaning |
|---|---|---|
| E | External routing | Area accepts AS-external-LSAs (not set in stub areas) |
| MC | Multicast | Forwarding of IP multicast (MOSPF, obsolete) |
| N/P | NSSA | In Hellos, NSSA support; in type 7 LSAs, the P bit asks the ABR to translate to type 5 |
| EA | External attributes | External-attributes LSA (rarely used) |
| DC | Demand circuits | Demand-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
| Bit | Value |
|---|---|
| DN | 0x80 |
| O | 0x40 |
| DC | 0x20 |
| EA | 0x10 |
| N/P | 0x08 |
| MC | 0x04 |
| E | 0x02 |
| MT | 0x01 |
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.
Field structure, identity and state ownership
| Bit | Value | Meaning |
|---|---|---|
| E | 0x02 | External routing: the area accepts type 5 LSAs. Set in normal areas, cleared in stub and NSSA areas |
| MC | 0x04 | Multicast OSPF (not used in practice) |
| N / P | 0x08 | In a Hello: the area is an NSSA. In a type 7 LSA header: the ABR may translate this LSA to type 5 |
| L | 0x10 | A link-local signalling block follows the packet |
| DC | 0x20 | Demand circuit support |
| O | 0x40 | Opaque LSA support |
| DN | 0x80 | Used 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 type | Options |
|---|---|
| Normal | 0x12 (E + L) |
| Stub | 0x10 (L) |
| NSSA | 0x18 (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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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 boundary | Known-good for OSPF Options Bit Reference | Suspicious signature | Next proof |
|---|---|---|---|
| Identity/length | Exact object/peer and coherent structure | Wrong identity, type or boundary | Raw packet/LSDB object + peer state |
| Field semantics | raw 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 design | area-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 exchange | Compare same object across both sides |
| State consequence | Field predicts expected protocol/route transition | Object looks valid but local state disagrees | LSDB/SPF or BGP policy → RIB/FIB |
| Closure | Original workload succeeds for the explained reason | Protocol state recovered only transiently | Repeat state/capture + regression test |