Problem Statement
Describe the steps to troubleshoot network connectivity in Linux.
Explanation
Start by checking link status with ip a or ifconfig, then test reachability using ping.
Next, check DNS with dig or nslookup, and use traceroute to find where packets drop. If still unresolved, verify firewall rules with ufw or iptables.
Code Solution
SolutionRead Only
ping 8.8.8.8 traceroute google.com
Practice Sets
This question appears in the following practice sets: