From point A to point B
Point A: you already know the network types and the 8 neighbor states, but when a neighbor gets stuck you still don't know where to start. Point B: by the end of this chapter you will bring up OSPF over an NBMA network, recognize stuck in Attempt and stuck in ExStart by their symptoms, and know which LSAs enter each type of area.
- Frame Relay with no neighbor and the
neighborcommand - Stuck in Attempt, caused with an ACL
- Stuck in ExStart from an MTU mismatch
- Reading the debug, from Down to Full
- The LSA types, the four stub areas and a real LSDB
Ping works, but there are no neighbors
The lab has two serial links. R1 and R2 connect over a point-to-point link, 40.40.40.0/24, in area 0. R2 and R3 use back-to-back Frame Relay, 50.50.50.0/24, in area 10. R2 is the ABR.
R2 joins point-to-point area 0 with area 10 over Frame Relay. Diagram: The House of Routing.
The interfaces are up/up, the encapsulation matches and the ping between 50.50.50.52 and 50.50.50.53 works. Even so, show ip ospf neighbor doesn't show R3 and the debug stays silent.
What's missing? Frame Relay is a non-broadcast multiaccess (NBMA) network: Hellos are not sent as multicast to 224.0.0.5, so you have to tell the router who its neighbor is.
R2(config)# router ospf 1
R2(config-router)# neighbor 50.50.50.53
R2(config-router)# do show ip ospf neighbor
R2(config-router)# do show ip ospf interface serial 0/0
! Network Type NON_BROADCAST · Hello 30 · State BDR · Priority 1
With a single neighbor on R2, the neighbor goes through Attempt and reaches Full. One end is enough, although configuring both is recommended.
show ip ospf interface serial 0/0 confirms the previous chapter: NON_BROADCAST, a 30-second Hello and a 120-second dead interval. Here there is an election: R3 becomes the DR and R2 the BDR, both with priority 1.
Stuck in Attempt: an ACL that silences the neighbor
Time to break something. On R3, Jesús creates an ACL that permits ICMP and blocks OSPF, and applies it inbound on the serial toward R2:
R3(config)# ip access-list extended ACL-NO-OSPF
R3(config-ext-nacl)# permit icmp any any
R3(config-ext-nacl)# deny ospf any any
R3(config-ext-nacl)# deny ip any any
R3(config-ext-nacl)# exit
R3(config)# interface serial 0/1
R3(config-if)# ip access-group ACL-NO-OSPF in
R3(config-if)# do show ip access-lists
R3(config-if)# do show ip ospf neighbor
! remove the filter and restart OSPF instead of waiting
R3(config-if)# no ip access-group ACL-NO-OSPF in
R3(config-if)# do clear ip ospf process
Watch the dead timer on R3: it no longer resets every 30 seconds. It keeps counting down, because R2's Hellos are dropped on the way in. When it reaches zero, R3 declares the neighbor dead.
On R2 the story is different. R2 still receives R3's Hellos, so the neighbor stays FULL/DR a little longer. The failure is asymmetric. In the end, R2 also goes from Full to Down.
Because the neighbor is static, R2 keeps trying in Attempt with unicast Hellos: that is stuck in Attempt, a state that only exists for manually configured neighbors on NBMA. Jesús also adds a neighbor toward 65.65.65.65, a device that doesn't exist: another way to leave a neighbor in Attempt. Over time, the debug ends up showing “too many retransmissions”.
clear ip ospf process, the neighbor goes through ATTEMPT/DOWN and then INIT/DROTHER. Jesús didn't expect that on NBMA. It is normal according to RFC 2328: from Attempt, when a Hello arrives from the neighbor, the state machine moves to Init. Init only means the Hello arrived, but your router ID isn't in it yet.Stuck in ExStart: the MTU travels in the DBD
The next test uses the point-to-point link R1–R2, which reacts faster. On R2, Jesús lowers the MTU of serial 0/1 to 750. Nothing happens: the neighbor stays in Full.
The MTU doesn't travel in the Hello but in the Database Description (DBD), which is only exchanged while the adjacency forms. That's why you have to restart the process.
R2(config)# interface serial 0/1
R2(config-if)# mtu 750
R2(config-if)# do clear ip ospf process
R2(config-if)# do debug ip ospf adj
R2(config-if)# do debug ip ospf packet
R2(config-if)# do show ip ospf neighbor
! debug: Nbr ... has larger interface MTU -> R1 stuck in EXSTART
! fix: the same MTU on both ends
R2(config-if)# mtu 1500
R2(config-if)# do clear ip ospf process
With debug ip ospf packet the key message appears: the neighbor has larger interface MTU. In Wireshark, R2's DBD shows MTU 750. R2 rejects R1's DBD, which advertises 1500, and stays in ExStart. RFC 2328 defines it this way: if the advertised MTU is larger than what the receiving interface can accept, the DBD is rejected.
A DBD with MTU 1500 doesn't fit a 750 interface: the adjacency never gets past ExStart. Diagram: The House of Routing.
Look at the symptom: Hellos keep arriving, but the neighbor falls back to ExStart again and again. According to Cisco, the router with the larger MTU can move on to Exchange, but its large DBDs never get through.
The fix: the same MTU on both ends; in the lab, back to 1500. ip ospf mtu-ignore turns the check off, but Cisco keeps it for rare cases. Another cause of this stall is a duplicate router ID.
So when should you change the MTU?
Every encapsulation adds headers. MPLS, GRE and overlays such as VXLAN or VMware NSX need more than 1500 bytes. If you build a provider network from scratch, Jesús recommends moving to jumbo frames, over 9000 bytes, on every device in a single maintenance window. Without overlays, 1500 works fine.
Reading the adjacency debug
The second video starts clean: a single debug and an OSPF restart. For Jesús, with this command “you can do wonders” when learning OSPF.
R2(config)# do undebug all
R2(config)# do debug ip ospf adj
R2(config)# do show debug
R2(config)# do clear ip ospf process
Reset ALL OSPF processes? [no]: yes
Read in order, the debug tells the whole story of the neighbor relationship:
- Full to Down. The restart drops the neighbors; Down is an OSPF state, not a shutdown.
- Hello and election. The segment elects a DR and a BDR: 0.0.0.3 wins.
- 2-Way. Each router sees its own router ID in the other's Hello.
- ExStart. The DBDs negotiate master, slave and sequence number. The MTU is checked here.
- Exchange. The DBDs carry only LSA headers.
- Loading. The Link State Request asks for what's missing; the Link State Update delivers it.
- Full. The databases are synchronized and the adjacency is up.
Once in Full, Wireshark only shows Hellos until the LSAs are refreshed, every 30 minutes.
The LSA types
Each LSA has an author and a scope, and that decides how you see the route in the table.
| LSA | Who creates it | How far it goes | In the table |
|---|---|---|---|
| 1 · Router | Every router | Its own area | O |
| 2 · Network | The segment's DR | Its own area | O |
| 3 · Summary | The ABR | The other areas | O IA |
| 4 · ASBR Summary | The ABR | The other areas | (where the ASBR is) |
| 5 · AS External | The ASBR | The whole domain, except stub areas | O E1 / O E2 |
| 7 · NSSA External | The ASBR inside an NSSA | The NSSA; the ABR translates it to type 5 | O N1 / O N2 |
The ABR takes the type 1 and 2 LSAs of one area and advertises them into the other as type 3. That's where inter-area routes, O IA, come from.
And type 4? A router that redistributes routes from the Internet or another protocol becomes an ASBR, and its routes travel as type 5. The ASBR flags itself in its type 1 LSA, but that LSA never leaves its area. In the other areas, the ABR announces where the ASBR is with a type 4.
Types 1 and 2 stay in their area; the ABR creates types 3 and 4; the ASBR creates type 5. Diagram: The House of Routing.
The four stub areas
A stub network has a single exit, like your home: one router and a default route, 0.0.0.0/0. Why send 150,000 routes to a router with 10 users and one cable out? Stub areas filter LSAs, shrink the table and add hierarchy.
| Area | LSAs allowed in | Default route | Configuration |
|---|---|---|---|
| Stub | 1, 2, 3 | The ABR injects it | area n stub on all routers |
| Totally stubby | 1, 2 | The ABR injects it | no-summary only on the ABR |
| NSSA | 1, 2, 3, 7 | Not by default | area n nssa on all routers |
| Totally NSSA | 1, 2, 7 | The ABR injects it | no-summary only on the ABR |
Stub and NSSA are standards (RFC 2328 and RFC 3101). The names totally stubby and totally NSSA, with their no-summary, are Cisco's; the RFCs only allow the ABR to send fewer summaries. In a multivendor network, you may only use stub and NSSA.
Stub and totally stubby
A stub area blocks type 4 and 5 LSAs, and the ABR injects the default route. Every router in the area needs area n stub, because the Hello carries the E-bit (External Capable) set to 0 and it must match. If it doesn't, there is no neighbor: it's one of the causes from chapter 2.
Totally stubby also blocks type 3, except the default route. Only the ABR changes: it adds no-summary. The other routers keep area n stub.
! Stub: the same command on every router in area 10
R2(config)# router ospf 1
R2(config-router)# area 10 stub
R3(config)# router ospf 1
R3(config-router)# area 10 stub
! Totally stubby: add no-summary only on the ABR
R2(config-router)# area 10 stub no-summary
In neither case can the area be the transit area of a virtual link.
NSSA and totally NSSA
Imagine your area has been stub for 5 years and the company buys another business with its own Internet exit. The area is no longer “so stub”: it needs an ASBR. That's what the not-so-stubby area is for.
What the ASBR redistributes enters as a type 7 LSA. When it crosses the ABR, it becomes type 5 for the rest of the domain. In the Hello, the N-bit set to 1 marks NSSA routers, and the E-bit stays at 0. In the type 7, the P-bit tells the ABR to translate it. In Wireshark, depending on the version, you may only see the N-bit: it sits in the same position as the P-bit.
Watch the default route. In an NSSA, the ABR doesn't create it on its own: you have to ask for it with default-information-originate. In a totally NSSA, the ABR's no-summary does inject the default route. As an example, on area 10 of this lab:
! NSSA: the same command on every router in area 10
R2(config-router)# area 10 nssa
R3(config-router)# area 10 nssa
! The NSSA ABR does not send a default route unless you ask
R2(config-router)# area 10 nssa default-information-originate
! Totally NSSA: add no-summary only on the ABR
R2(config-router)# area 10 nssa no-summary
Router 3's LSDB
To wrap up, Jesús removes R3's FastEthernet0/0 from area 10 with no ip ospf 1 area 10 and reads the database of R3, which is only in area 10:
R3# show ip ospf database
R3# show ip ospf interface | include Designated
- Type 1 (Router Link States): one from R2 and one from R3 itself; the Link State ID is their router ID.
- Type 2 (Net Link States): advertised by 0.0.0.3, Link State ID 50.50.50.53. If you see a type 2, there is a DR;
| include Designatedconfirms it is R3. - Type 3 (Summary Net Link States): 1.1.1.1, 2.2.2.2 and 40.40.40.0, the area 0 networks. The Advertising Router is R2, the ABR.
That's the ABR's logic: it receives types 1 and 2, turns them into type 3 and tells the other area “if you want to get here, go through me”. It acts as a gateway, in both directions.
Class videos
These are the two Day 1 videos this chapter is based on. They were recorded live on February 7, 2021, with Cisco IOSv routers in GNS3, debug and Wireshark. The audio is in Spanish, with Spanish, English, French and Portuguese subtitles.
- Day 1 · Part 7Frame Relay NBMA, stuck in Attempt and stuck in ExStart from MTUWatch video
- Day 1 · Part 8Adjacency debug, LSA types and stub areasWatch video
Recorded live; Spanish audio with Spanish, English, French and Portuguese subtitles. When you play it, the video loads from YouTube. Day 1 playlist on YouTube
Test what you learned
1. Two Frame Relay routers can ping each other, but OSPF doesn't form a neighbor and the debug is silent. What's missing?
Answer. The neighbor command: on NBMA, Hellos aren't sent as multicast. One end is enough, although both are recommended.
2. R3 filters inbound OSPF with an ACL. Why does R2 still see R3 in FULL for a while?
Answer. Because R2 still receives R3's Hellos and its dead timer keeps resetting. Only R3 stops hearing its neighbor. Later R2 also drops to Down and, since the neighbor is static, moves to Attempt.
3. You change an interface MTU and the neighbor stays in Full. Is everything fine?
Answer. Not necessarily. The MTU travels in the DBD, which is only exchanged while the adjacency forms. After a restart, the side with the smaller MTU rejects the DBD with the message has larger interface MTU and gets stuck in ExStart.
4. A router in another area needs to reach an O E2 route. Which LSA tells it where the ASBR is?
Answer. The type 4 LSA, ASBR Summary, created by the ABR. The external route travels as type 5; type 4 shows how to reach the ASBR.
5. You want an area to receive only a default route, and it also has its own ASBR. Which area type do you configure, and where does no-summary go?
Answer. Totally NSSA. Every router in the area gets area n nssa and only the ABR adds no-summary, which blocks type 3 and injects the default route. The ASBR advertises its routes as type 7.
Key takeaways
- On NBMA, ping isn't enough: without
neighborthere are no Hellos. Hello 30, dead 120 and a DR/BDR election. - Attempt only exists for static neighbors on NBMA. An ACL that filters inbound OSPF causes an asymmetric failure.
- The MTU travels in the DBD: with a mismatch, the adjacency stalls in ExStart even though Hellos arrive.
- Match the MTU on both ends. If your network carries MPLS or overlays, plan jumbo frames on every device.
- Types 1 and 2 stay in their area; the ABR creates 3 and 4; the ASBR creates 5; in an NSSA, type 7 is translated to 5.
- Stub and NSSA go on every router in the area; totally only adds
no-summaryon the ABR. In an NSSA, ask for the default route withdefault-information-originate.
Official resources
- Cisco · Troubleshoot OSPF Neighbors Stuck in Exstart/Exchange Statecisco.com
- Cisco · Understand OSPF Neighbor Statescisco.com
- Cisco · Understand OSPF Areas and Virtual Linkscisco.com
- Cisco · How Does OSPF Generate Default Routes?cisco.com
- Cisco IOS IP Routing: OSPF Command Reference · area nssa, area stubcisco.com
- Cisco IOS IP Routing: OSPF Command Reference · neighbor, ip ospf mtu-ignorecisco.com
- RFC 2328 · OSPF Version 2rfc-editor.org
- RFC 3101 · The OSPF Not-So-Stubby Area (NSSA) Optionrfc-editor.org
Source and credits. Chapter written from the OSPF Masterclass that Jesús Espinoza recorded live in 2021. Text drafted with AI assistance and reviewed; original diagrams by The House of Routing. Technical data and configuration were checked against official Cisco documentation and IETF RFCs.