OSPF Stuck in Exchange: One Interface Setting Breaks the Adjacency
Two routers, one link between them, and the routes between them are gone. Nothing was unplugged and nothing was removed from the routing config. Let's find out why.
Two routers, r1 and r2, share one link and run OSPF (FRR) across it. Host h1 sits behind r1 and h2 behind r2. When OSPF works, each router learns the network behind the other and h1 can reach h2.
The lab
Here is the lab. Host h1 sits behind router r1, and host h2 sits behind router r2. The two routers share one link and run OSPF across it, so each one learns the network behind the other. When that works, h1 can reach h2 through both routers. Right now, it can't.
The symptom
ping -c 3 -W 1 10.0.2.10
PING 10.0.2.10 (10.0.2.10) 56(84) bytes of data. --- 10.0.2.10 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2047ms
What this shows
Start where a user would notice it: a ping from h1 to h2. Three packets go out and none come back, one hundred percent packet loss. That tells us something is wrong, but not where, so the next step is to look at the routers in between.
show ip ospf neighbor
Neighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL 10.255.0.2 1 Exchange/- 8.399s 3.606s 10.0.12.2 eth1:10.0.12.1 0 0 0
What this shows
On r1, show ip ospf neighbor is the first command to run, because routes in OSPF only come from neighbors. If the routers aren't neighbors, nothing else will work. r1 does see r2, router ID 10.255.0.2, on eth1. But look at the state column. It says Exchange, not Full. The two routers found each other, but they never finished swapping their link-state databases.
show ip route ospf
(no output)
What this shows
show ip route ospf lists the routes r1 has learned through OSPF. It comes back empty. Without a full adjacency, r1 has learned nothing from r2, so it has no route to h2's network. That is the ping failure we started with.
Finding the mismatch
show interface eth1
Interface eth1 is up, line protocol is up Link ups: 9 last: 2026/10/19 03:26:43.58 Link downs: 12 last: 2026/10/19 03:26:43.56 Total Carrier Changes: 18 vrf: default index 70 metric 0 mtu 1500 speed 10000 txqlen 0 flags: <UP,LOWER_UP,BROADCAST,RUNNING,MULTICAST> MPLS Not specified by CLI Multicast config is Not specified by CLI Shutdown config is Not specified by CLI Type: Ethernet HWaddr: aa:c1:ab:54:08:54 inet 10.0.12.1/30 inet6 fe80::a8c1:abff:fe54:854/64 Interface Type VETH Interface Slave Type None protodown: off Parent ifindex: 69
What this shows
A neighbor that gets stuck partway through the database exchange points at something the two routers disagree on about their shared link. show interface eth1 on r1 gives the interface details. The line to read is the one with the MTU: r1's side of the link is set to 1500.
show interface eth1
Interface eth1 is up, line protocol is up Link ups: 20 last: 2026/10/19 03:26:43.58 Link downs: 15 last: 2026/10/19 03:26:43.58 Total Carrier Changes: 18 vrf: default index 69 metric 0 mtu 1400 speed 10000 txqlen 0 flags: <UP,LOWER_UP,BROADCAST,RUNNING,MULTICAST> MPLS Not specified by CLI Multicast config is Not specified by CLI Shutdown config is Not specified by CLI Type: Ethernet HWaddr: aa:c1:ab:64:29:10 inet 10.0.12.2/30 inet6 fe80::a8c1:abff:fe64:2910/64 Interface Type VETH Interface Slave Type None protodown: off Parent ifindex: 70
What this shows
Now the same command on r2, for the other end of the same link. Its MTU is 1400. The two ends of one link disagree about the largest packet it can carry. Why would one end be 1400? It's a common setting on links that have to carry extra headers, like a VPN tunnel or a provider's connection: the MTU is lowered to leave room for them. Change it on one router and forget the other, maybe while setting up a tunnel or copying a config, and you get exactly this. To see whether OSPF cares, look at what the routers actually send each other.
tshark -i eth1 -a duration:11 -Y "ospf.msg == 2" -T fields -e ospf.srcrouter -e ospf.db.interface_mtu
Capturing on 'eth1' 10.255.0.2 1400 10.255.0.1 1500 10.255.0.2 1400 10.255.0.1 1500 10.255.0.2 1400 10.255.0.1 1500 6 packets captured
What this shows
The router image has no capture tools, so this runs tshark from a troubleshooting container that shares r2's network. It listens on eth1 for eleven seconds and keeps only Database Description packets, the ones the routers swap during that database exchange. For each packet it prints two fields: the router that sent it, and the interface MTU written inside it. 10.255.0.2, which is r2, says 1400. 10.255.0.1, which is r1, says 1500. Each router tells the other its MTU in these packets, and the same pair keeps coming back because the exchange never finishes. That mismatch is the fault.
The fix
ip link show eth1
69: eth1@if70: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1400 qdisc noqueue state UP mode DEFAULT group default
link/ether aa:c1:ab:64:29:10 brd ff:ff:ff:ff:ff:ff link-netnsid 1
altname clab-o-c562dad456c4f054What this shows
The fix belongs on r2, where the MTU differs. In the shell, ip link show eth1 confirms what the router reported: MTU 1400.
ip link set dev eth1 mtu 1500
(no output)
What this shows
ip link set dev eth1 mtu 1500 sets it back to match r1.
ip link show eth1
69: eth1@if70: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether aa:c1:ab:64:29:10 brd ff:ff:ff:ff:ff:ff link-netnsid 1
altname clab-o-c562dad456c4f054What this shows
The fix belongs on r2, where the MTU differs. In the shell, ip link show eth1 confirms what the router reported: MTU 1400.
Verifying
show ip ospf neighbor
Neighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL 10.255.0.2 1 Full/- 6.960s 3.713s 10.0.12.2 eth1:10.0.12.1 0 0 0
What this shows
Back on r1, show ip ospf neighbor again. The state is now Full. The database exchange finished.
show ip route ospf
Codes: K - kernel route, C - connected, L - local, S - static,
R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
f - OpenFabric, t - Table-Direct,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
t - trapped, o - offload failure
IPv4 unicast VRF default:
O>* 10.0.2.0/24 [110/20] via 10.0.12.2, eth1, weight 1, 00:00:03
O>* 10.255.0.2/32 [110/10] via 10.0.12.2, eth1, weight 1, 00:00:03What this shows
And show ip route ospf now lists two OSPF routes through r2: 10.0.2.0/24, the network h2 lives on, and r2's router ID, 10.255.0.2.
ping -c 3 10.0.2.10
PING 10.0.2.10 (10.0.2.10) 56(84) bytes of data. 64 bytes from 10.0.2.10: icmp_seq=1 ttl=62 time=0.059 ms 64 bytes from 10.0.2.10: icmp_seq=2 ttl=62 time=0.040 ms 64 bytes from 10.0.2.10: icmp_seq=3 ttl=62 time=0.038 ms --- 10.0.2.10 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2051ms rtt min/avg/max/mdev = 0.038/0.045/0.059/0.009 ms
What this shows
The same ping from h1 to h2. Three packets sent, three received, zero percent packet loss. The routes are back and the traffic follows.
Why not mtu-ignore
There is a shortcut you'll see suggested for this problem: ip ospf mtu-ignore. It tells OSPF to skip the MTU check, and the adjacency would come up. But the link itself would still be mismatched. Small packets would get through, while packets close to 1500 bytes sent toward r2 would be dropped. OSPF would look healthy while larger traffic quietly failed. The check did its job by refusing the adjacency. The fix is to make the MTU match.
When an OSPF neighbor sticks in ExStart or Exchange, compare the MTU on both ends of the link. Matching it is what lets the adjacency reach Full, and with it, the routes come back.
Try it yourself
The whole lab runs on your own computer with Docker and containerlab: get it on GitHub, then ./lab.sh up and ./lab.sh break. Setup steps are on Run the labs.