Blame

3fa7ef Francesco 2026-10-15 05:17:10
1
# CCNA-OSPF-Adjacency-Troubleshooting
2
3
4
5
# OSPF Adjacency Troubleshooting — Write-up
6
7
## Topology
8
9
Three Cisco ISR4331 routers in a triangle, all in OSPF area 0:
10
11
```text
12
R1 (1.1.1.1)
13
/ \
14
12.0.0.0/24 13.0.0.0/24
15
/ \
16
R2 (2.2.2.2) --- R3 (3.3.3.3)
17
23.0.0.0/24
18
```
19
20
| Link | Subnet | Endpoints |
21
|------|--------|-----------|
22
| R1-R2 | 12.0.0.0/24 | .1 / .2 |
23
| R1-R3 | 13.0.0.0/24 | .1 / .3 |
24
| R2-R3 | 23.0.0.0/24 | .2 / .3 |
25
26
Loopbacks: R1 = 1.1.1.1/32, R2 = 2.2.2.2/32, R3 = 3.3.3.3/32.
27
28
---
29
30
## Symptoms
31
32
In the initial state, OSPF adjacencies were not forming consistently:
33
34
- **R1** had `ip ospf hello-interval 20` on G0/0 but the default (10s) on G0/1.
35
- **R2** and **R3** used the default hello interval of 10s everywhere.
36
- **R3** had `passive-interface GigabitEthernet0/1` configured, which prevented it from forming any adjacency on the 23.0.0.0/24 link.
37
- All three routers were using the **wildcard `network 0.0.0.0 255.255.255.255 area 0`**, which is sloppy and can cause unintended interfaces to participate in OSPF.
38
39
The combination of a mismatched hello interval on R1's link to R2 and a passive interface on R3's link to R2 meant the full mesh never converged.
40
41
---
42
43
## Troubleshooting Steps
44
45
### 1. R1 - fix the hello-interval mismatch
46
47
R1's G0/0 was set to a 20-second hello interval while R2 was still using the default 10 seconds. OSPF requires hello/dead intervals to match on both ends of a link, so the R1-R2 adjacency stayed down.
48
49
```cisco
50
R1(config)# interface g0/0
51
R1(config-if)# ip ospf hello-interval 20
52
%OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/0 from LOADING to FULL, Loading Done
53
```
54
55
Once R2 also had the matching value (it was already configured with `ip ospf hello-interval 20` on G0/0 in the saved config), the adjacency came up.
56
57
### 2. R1 - replace the catch-all network statement
58
59
R1 was advertising with `network 0.0.0.0 255.255.255.255 area 0`. This was replaced with explicit network statements:
60
61
```cisco
62
R1(config)# router ospf 1
63
R1(config-router)# no network 0.0.0.0 255.255.255.255 area 0
64
R1(config-router)# network 1.1.1.1 255.255.255.255 area 0
65
R1(config-router)# network 12.0.0.0 0.0.0.255 area 0
66
R1(config-router)# network 13.0.0.0 0.0.0.255 area 0
67
R1(config-router)# ^Z
68
R1# wr mem
69
```
70
71
Note: removing the wildcard network statement briefly tore down both adjacencies (the `%OSPF-5-ADJCHG ... from FULL to DOWN` messages), and they re-formed once the specific networks were re-added.
72
73
### 3. R2 - same cleanup, plus an explicit router-id
74
75
R2 also had `network 0.0.0.0 255.255.255.255 area 0`. A couple of typos (`no network 0.0.0.0 ara 0`, `router-id 2.2.22.`) were rejected, then the correct commands were applied:
76
77
```cisco
78
R2(config)# router ospf 1
79
R2(config-router)# router-id 2.2.2.2
80
R2(config-router)# network 12.0.0.0 0.0.0.255 area 0
81
R2(config-router)# no network 0.0.0.0 255.255.255.255 area 0
82
R2(config-router)# network 23.0.0.0 0.0.0.255 area 0
83
R2(config-router)# network 2.2.2.2 255.255.255.255 area 0
84
R2# wr mem
85
```
86
87
After this, R2 saw both neighbors FULL:
88
89
```text
90
Neighbor ID Pri State Dead Time Address Interface
91
3.3.3.3 1 FULL/BDR 00:00:33 23.0.0.3 GigabitEthernet0/1
92
1.1.1.1 1 FULL/BDR 00:01:13 12.0.0.1 GigabitEthernet0/0
93
```
94
95
### 4. R3 - remove the passive interface and clean up networks
96
97
R3 was the main blocker on the 23.0.0.0/24 link because `passive-interface GigabitEthernet0/1` suppressed hellos on that interface.
98
99
```cisco
100
R3(config)# router ospf 1
101
R3(config-router)# no passive-interface gigabitEthernet0/1
102
%OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/1 from LOADING to FULL, Loading Done
103
R3(config-router)# no network 0.0.0.0 255.255.255.255 area 0
104
R3(config-router)# network 3.3.3.3 255.255.255.255 area 0
105
R3(config-router)# network 23.0.0.0 0.0.0.255 area 0
106
R3(config-router)# network 13.0.0.0 0.0.0.255 area 0
107
R3(config-router)# ^Z
108
R3# wr mem
109
```
110
111
Removing the wildcard network statement again caused a brief FULL-to-DOWN-to-FULL cycle, but all adjacencies recovered.
112
113
---
114
115
## Verification
116
117
After the fixes, every router showed a fully meshed OSPF adjacency table.
118
119
**R1:**
120
121
```text
122
Neighbor ID Pri State Dead Time Address Interface
123
3.3.3.3 1 FULL/BDR 00:00:30 13.0.0.3 GigabitEthernet0/1
124
2.2.2.2 1 FULL/DR 00:01:10 12.0.0.2 GigabitEthernet0/0
125
```
126
127
**R2:**
128
129
```text
130
Neighbor ID Pri State Dead Time Address Interface
131
3.3.3.3 1 FULL/BDR 00:00:33 23.0.0.3 GigabitEthernet0/1
132
1.1.1.1 1 FULL/BDR 00:01:13 12.0.0.1 GigabitEthernet0/0
133
```
134
135
**R3:**
136
137
```text
138
Neighbor ID Pri State Dead Time Address Interface
139
2.2.2.2 1 FULL/DR 00:00:38 23.0.0.2 GigabitEthernet0/1
140
1.1.1.1 1 FULL/DR 00:00:38 13.0.0.1 GigabitEthernet0/0
141
```
142
143
R3's `show ip ospf` confirmed a single area (area 0) with `Number of areas in this router is 1. 1 normal 0 stub 0 nssa`.
144
145
---
146
147
## Root Causes Summary
148
149
| Issue | Device | Fix |
150
|-------|--------|-----|
151
| Hello-interval mismatch (20s vs 10s) | R1 G0/0 to R2 G0/0 | Set matching `ip ospf hello-interval 20` on both sides |
152
| Passive interface suppressing hellos | R3 G0/1 | `no passive-interface GigabitEthernet0/1` |
153
| Overly broad `network 0.0.0.0 255.255.255.255 area 0` | All three | Replaced with explicit network statements per interface |
154
| No explicit router-id | R2 | `router-id 2.2.2.2` (also derived from loopback) |
155
156
---
157
158
## Key Takeaways
159
160
1. **Hello and dead intervals must match** on both ends of an OSPF link. A mismatch keeps the neighbor stuck in `INIT`/`DOWN`.
161
2. **`passive-interface` is a silent killer** - the interface still has an IP and is advertised, but no hellos are sent or received, so no adjacency forms.
162
3. **Avoid `network 0.0.0.0 255.255.255.255`** in production. It works, but it enables OSPF on every interface (including ones you may not intend) and makes troubleshooting harder. Use precise network statements or `ip ospf 1 area 0` under the interface.
163
4. Always finish with `write memory` (or `copy run start`) so the working config survives a reload.