Skip to content

OSPF neighbor stuck in ExStart/Exchange: MTU mismatch

Networkingtested on Ubuntu 24.04, FRR 10.7.1

The adjacency gets to ExStart or Exchange and stays there. So hellos pass – otherwise it would show Init or nothing at all –, but the database exchange fails. The classic sign of a different MTU on both ends of a link.

Symptom

sudo vtysh -N r3 -c 'show ip ospf neighbor'

Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
10.255.0.1        1 Full/-          2m25s             34.069s 10.0.13.1       eth31:10.0.13.3                      0     0     0
10.255.0.2        1 ExStart/-       40.214s           39.787s 10.0.23.2       eth32:10.0.23.3                      0     0     0

In the course the MTU of eth32 on r3 was set to 1400; a minute later the adjacency to r2 still hangs. r2 shows Exchange on its side.

Diagnosis

Compare the MTU of both ends as OSPF sees it.

sudo vtysh -N r3 -c 'show ip ospf interface eth32' | grep -iE 'mtu'
  ifindex 3, MTU 1400 bytes, BW 10000 Mbit <UP,LOWER_UP,BROADCAST,RUNNING,MULTICAST>
  MTU mismatch detection: enabled
sudo vtysh -N r2 -c 'show ip ospf interface eth23' | grep -iE 'mtu'
  ifindex 3, MTU 1500 bytes, BW 10000 Mbit <UP,LOWER_UP,BROADCAST,RUNNING,MULTICAST>
  MTU mismatch detection: enabled

Causes

MTU 1400 vs 1500Different MTU on both ends

Every Database Description packet carries the MTU of the sending interface. r3 sees “1500” from r2, more than its own 1400, and drops the packet because later updates might not fit through its own interface.

Init instead of ExStartIf it hangs earlier, it is something else

If the neighbor stays in Init or never appears, even the hellos do not arrive – then suspect the netmask, timers, area or a firewall, not the MTU.

Fix

Make the MTU equal; after about 15 seconds the adjacency is Full.
sudo ip -n r3 link set eth32 mtu 1500
sudo vtysh -N r2 -c 'show ip ospf neighbor' | grep 10.255.0.3
10.255.0.3        1 Full/-          5.346s            34.925s 10.0.23.3       eth23:10.0.23.2                      0     0     0

Don't: Using ip ospf mtu-ignore as the fix. The adjacency comes up, but large updates get lost later – at a point where nobody thinks of the MTU any more.

▶
Break it yourself and find it – free
Linux networking hands-on, Day 10: OSPF with FRR – adjacencies, states and an MTU trap to solve yourself.
Go to day 10 →

FAQ

Which states does an OSPF adjacency go through?

Down, Init, 2-Way, ExStart, Exchange, Loading and Full. ExStart and Exchange are the database exchange.

How do I see the MTU in FRR?

show ip ospf interface INTERFACE shows the MTU and whether the MTU check is enabled.

Related error patterns

More