Interview Prep/Networking/Connectivity: refused, timed out, no route

After a reboot, a server has no network although the interface shows UP.

IntermediateTroubleshootingConnectivity: refused, timed out, no route
Answer

Likely causes → Interface renamed (predictable names changed after a kernel/driver update), netplan or ifcfg references the old name, DHCP client not started, or cloud-init regenerated config.

Diagnose →

ip -br addr
journalctl -b -u systemd-networkd -u NetworkManager --no-pager | tail -50
cat /etc/netplan/*.yaml

Fix → Match on MAC in netplan (match: macaddress:) and netplan apply, or fix the name in the config. Use the serial console if SSH is gone.

Prevent → Match interfaces by MAC or driver, and test kernel upgrades on a canary host.

All Networking questions Roadmap: Networking for DevOps

More on Connectivity: refused, timed out, no route