A failed connection can start at the client, link, network policy, destination socket, or application. Find the first boundary you cannot prove works. Compare another client before assuming the server is down.

This is an original interview drill. Kyle Rankin's Linux Journal article on local networks is the historical source reading. The interview overview links the rest of the preparation series.

One client fails; another works. What does that establish?

The destination is reachable through at least one path. Investigate differences in the failing client's address, route, VLAN, firewall, namespace, and application settings. Success from another client does not eliminate source-specific server policy or a different return path.

No. Administrative state, carrier, addressing, routing, and application reachability are different observations. Check the interface and counters, then the actual path. Some virtual interfaces do not have meaningful physical-link settings.

ip -br link
ip -br addr
ip -s link show dev eth0
ethtool eth0

Substitute the real interface. Linux iproute2's ip link reports link state/counters; ethtool queries supported driver and hardware information. An old error counter alone does not prove today's failure; compare changes during the test.

Are these two hosts actually communicating directly?

Ask the routing table. ip route get DESTINATION shows the selected route/source; check policy with ip rule show. A wrong prefix, more-specific route, or namespace can send apparently local traffic through an unexpected gateway.

ip route get 192.0.2.20
ip neigh show

The address is a documentation placeholder. With directly connected IPv4 Ethernet, the client resolves the destination's MAC through ARP. For a routed destination, it resolves the gateway's MAC. Neighbor state such as INCOMPLETE or FAILED means resolution has not succeeded; investigate link/VLAN, addressing, the peer, and applicable policy. It does not identify the guilty device by itself. See ip route.

Ping works but the application port fails. Why?

ICMP reachability does not establish a TCP listener or permitted application traffic. Check whether the service is bound to the required address, protocol, port, and network namespace. A service listening only on 127.0.0.1 is unavailable through the host's LAN address.

ss -lntp

Run this on the destination, in the relevant namespace. Process details may need additional permission. The ss manual distinguishes listening TCP sockets from other states. A listener still needs an application request to establish health.

Timeout versus connection refused: what changes?

A timeout leaves filtering, loss, route/return-path failure, and host problems possible. A TCP RST often means a closed port or active rejection. Neither result alone names the firewall rule responsible.

What packet capture would you request?

Capture a short, relevant flow at both ends where possible. For this documentation-address example:

sudo tcpdump -ni any -c 30 'host 192.0.2.20 and tcp port 8443'

Stop the capture when the test ends if fewer than 30 packets arrive. -c caps packet count, not elapsed time. Verify the capture point/namespace is on the actual path; offloads and virtual networking can change the view.

SYN leaves the client but is absent at the server. What next?

Inspect boundaries between those capture points: selected interface, neighbor resolution, VLAN/switch path, routing, and policy counters. Check that both captures covered the same test and interface. "The firewall dropped it" remains a hypothesis until another observation isolates it.

SYN reaches the server and SYN-ACK leaves, but the client never sees it. What next?

Investigate the reverse path and policies between the server and client. Check source addresses and any NAT or asymmetric routing. A successful outbound route does not guarantee a working return route.

Worked drill: only remote clients time out

Constructed evidence:

Server: 192.0.2.20
Remote client connection to port 8443: timeout
Local request to 127.0.0.1:8443: succeeds
ss on server: LISTEN 127.0.0.1:8443

The listener binding explains why the local request cannot establish remote reachability. It does not, by itself, explain the timeout rather than refusal; filtering or another path issue may coexist. Confirm intended exposure, configure the correct service address through its normal change path, and retest from the failing client. Opening every port would not correct the loopback-only bind.

Verify both the TCP connection and an authenticated application operation, then check that the expected access policy still holds. Continue with remote networks and DNS, or revise the networking questions.