< Previous Challenge - Home - Next Challenge >
Networking is the backbone of modern infrastructure. Understanding how Linux handles network interfaces, routing, and DNS is essential for troubleshooting and managing servers. This challenge introduces core networking tools available on every Linux system.
- List all network interfaces and their IP addresses using
ip addr show - Display only IPv4 addresses using
ip -4 addr show - Show the link-layer status of all interfaces using
ip link show - Display the routing table using
ip route show. Identify the default gateway. - Check DNS configuration using
resolvectl status. Also view/etc/resolv.confand note it may show a stub resolver (127.0.0.53) — the actual DNS servers are managed by systemd-resolved. - Install DNS utilities:
sudo apt install -y dnsutils— then resolve a domain usingdig google.comandnslookup google.com - Install traceroute:
sudo apt install -y traceroute— then trace the route to google.com - Test connectivity to google.com with
ping -c 4 google.com - Use
curl -I https://google.comto view HTTP response headers - Show all listening TCP and UDP ports with
sudo ss -tulnp. Identify which process is using port 22.
- You can display IP addresses for all network interfaces
- You can identify the default gateway
- DNS resolution works with both dig and nslookup
- You can trace network routes
- You can identify all listening ports and their associated processes
In Kubernetes, networking is fundamental — Pods communicate over virtual networks, Services provide stable endpoints, and CoreDNS handles cluster DNS resolution. Mastering Linux networking tools helps you debug Kubernetes networking issues with kubectl exec into pods.