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

A host has two default routes and outbound traffic is randomly slow or fails.

IntermediateTroubleshootingMTU, routing, packet loss and latency
Answer

Likely causes → DHCP on two interfaces added two defaults; the kernel uses the lower metric, or both with equal metrics, sending traffic out a path with no NAT or a wrong source IP.

Diagnose →

ip route show default
ip route get 1.1.1.1

Fix → Remove one default or set metrics (netplan dhcp4-overrides: { route-metric: 200 }), plus policy routing if both are needed.

Prevent → Only one interface should provide the default unless you design for multi-path.

All Networking questions Roadmap: Networking for DevOps

More on MTU, routing, packet loss and latency