Interview Prep/Networking/MTU, routing, packet loss and latency

`ping: local error: message too long, mtu=1500`

BeginnerTroubleshootingMTU, routing, packet loss and latency
Answer

Likely causes → You set -M do (don't fragment) with a size larger than the local interface MTU.

Diagnose →

ip link show eth0 | grep mtu

Fix → Use a size of MTU minus 28 for IPv4 (20 IP + 8 ICMP): ping -M do -s 1472. This is just a test sizing error, not a network problem.

Prevent → Remember the header math when probing PMTU.

All Networking questions Roadmap: Networking for DevOps

More on MTU, routing, packet loss and latency