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

Replies to traffic coming in on `eth1` leave via `eth0`, and the connection never completes.

AdvancedTroubleshootingMTU, routing, packet loss and latency
Answer

Likely causes → Asymmetric routing on a multi-homed host: the default route is on eth0, so replies to eth1's clients go out the wrong interface with eth1's source IP. Upstream stateful firewalls or rp_filter drop them.

Diagnose →

sudo tcpdump -ni any host <client> -e     # see which interface each direction uses
ip route get <client> from <eth1-ip>

Fix → Policy routing:

ip route add default via 10.1.0.1 dev eth1 table 100
ip rule add from 10.1.0.20/32 table 100

Prevent → For multi-NIC instances, configure source-based routing in network config (netplan routing-policy).

All Networking questions Roadmap: Networking for DevOps

More on MTU, routing, packet loss and latency