Basic Network Troubleshooting Commands in Linux
Introduction
Networking issues are common, and Linux provides several built-in tools to diagnose and resolve them quickly.
Step 1: Check IP Address
ip addr show
➡️ Displays network interfaces and assigned IP addresses.
Step 2: Test Connectivity
ping google.com
➡️ Sends ICMP packets to check if the host is reachable.
Step 3: Trace Network Route
traceroute google.com
➡️ Shows the path packets take to reach a destination.
Step 4: Check DNS Resolution
nslookup google.com
or
dig google.com
➡️ Verifies DNS queries.
Step 5: View Active Connections
netstat -tulnp
➡️ Lists listening ports and active connections.
Conclusion
These commands form the foundation of network troubleshooting in Linux.

Comments
Post a Comment