Network Monitoring and Troubleshooting Tools


In the world of IT, network connectivity is the backbone of operations. Whether youโre managing a local network or troubleshooting issues in cloud environments, mastering network tools is essential. Below, we delve into key network troubleshooting tools, their use cases, and practical examples to help you diagnose and resolve connectivity problems efficiently.
1. nslookup
Purpose:
nslookup
is a DNS lookup tool that queries domain names and retrieves IP addresses or mail server details.
Use Case:
Verify DNS resolution or diagnose DNS server issues.
Example:
nslookup google.com
- Output: Displays the resolved IP address and the DNS server used.
Advanced Usage:
Specify a custom DNS server:
nslookup google.com 8.8.8.8
2. dig
Purpose:
dig
is a powerful DNS lookup tool that provides detailed DNS records, such as A, CNAME, MX, and TXT.
Use Case:
Perform in-depth DNS troubleshooting or analyze DNS server responses.
Example:
dig google.com
- Output: Displays queried records, TTL (Time-To-Live), and authoritative DNS information.
Advanced Usage:
Query specific DNS record types:
dig google.com MX
3. ifconfig
Purpose:
ifconfig
is used to view and configure network interfaces, including IP addresses and enabling/disabling interfaces.
Use Case:
Diagnose local network configuration issues or bring up/down interfaces.
Example:
ifconfig
- Output: Shows details of active interfaces (e.g., IP, MAC address, and subnet mask).
Advanced Usage:
Assign a static IP address to an interface:
sudo ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up
4. curl
Purpose:
curl
transfers data to/from servers using protocols like HTTP or FTP. Itโs versatile for testing APIs and downloading files.
Use Case:
Test API endpoints or check HTTP server availability.
Example:
curl http://example.com
- Output: Displays the HTML response from the server.
Advanced Usage:
Send a POST request with a JSON payload:
curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' http://example.com/api
5. ping
Purpose:
ping
checks network connectivity between devices by sending ICMP packets and measuring response time.
Use Case:
Troubleshoot connectivity issues or detect packet loss.
Example:
ping google.com
- Output: Displays round-trip time and packet statistics.
Advanced Usage:
Limit the number of packets sent:
ping -c 5 google.com
6. traceroute
Purpose:
traceroute
tracks the path packets take to reach a destination, listing intermediate hops.
Use Case:
Diagnose routing issues or identify network bottlenecks.
Example:
traceroute google.com
- Output: Lists each hop, its IP, and response times.
Advanced Usage:
Limit the maximum number of hops:
traceroute -m 10 google.com
7. netstat
Purpose:
netstat
displays active network connections, listening ports, and protocol statistics.
Use Case:
Monitor network activity or troubleshoot connectivity.
Example:
netstat -anltp
Explanation of Flags:
-a
: Show all connections and listening ports.-n
: Display numerical IP addresses and ports.-l
: Show only listening ports.-t
: Display TCP connections.-p
: Show process IDs (PIDs) associated with connections.
8. ss (Socket Statistics)
Purpose:
ss
is a faster and more efficient alternative to netstat
for viewing socket statistics and active connections.
Use Case:
Monitor network connections and troubleshoot socket issues.
Example:
ss -tuln
Explanation of Flags:
-t
: Display TCP sockets.-u
: Display UDP sockets.-l
: Show only listening sockets.-n
: Display numerical IPs and ports.
9. tcpdump
Purpose:
tcpdump
captures and analyzes packets on a specified network interface for detailed traffic analysis.
Use Case:
Diagnose traffic flows, security issues, or dropped packets.
Example:
tcpdump -i eth0 -n -c 10
Explanation of Flags:
-i eth0
: Specifies the interface.-n
: Prevents DNS resolution for faster output.-c 10
: Captures 10 packets.
Save to File for Analysis:
tcpdump -i eth0 -w capture.pcap
- Analyze the
.pcap
file in Wireshark for deeper insights.
10. Wireshark
Purpose:
Wireshark is a graphical packet analysis tool that provides real-time traffic monitoring and troubleshooting.
Use Case:
Analyze detailed protocol information, inspect TLS handshakes, and diagnose HTTP errors.
Steps:
Open Wireshark.
Select an interface to capture traffic.
Apply filters (e.g.,
http
,tcp.port==443
).Analyze packets in the graphical interface.
Example Filter:
ip.addr == 192.168.1.1 && tcp.port == 80
- Advanced Use: Use color coding for easier visualization and export data for offline analysis.
Conclusion
These tools form the foundation of network troubleshooting and monitoring. By mastering their commands and understanding their outputs, you can effectively diagnose and resolve issues in both local and cloud environments. Practical application of these tools will enhance your ability to ensure network reliability and performance.
Subscribe to my newsletter
Read articles from Chinnayya Chintha directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Chinnayya Chintha
Chinnayya Chintha
I am ๐๐ต๐ถ๐ป๐ป๐ฎ๐๐๐ฎ ๐๐ต๐ถ๐ป๐๐ต๐ฎ, ๐ฎ ๐ฟ๐ฒ๐๐๐น๐๐-๐ฑ๐ฟ๐ถ๐๐ฒ๐ป ๐ฆ๐ถ๐๐ฒ ๐ฅ๐ฒ๐น๐ถ๐ฎ๐ฏ๐ถ๐น๐ถ๐๐ ๐๐ป๐ด๐ถ๐ป๐ฒ๐ฒ๐ฟ (๐ฆ๐ฅ๐) with proven expertise in ๐ฎ๐๐๐ผ๐บ๐ฎ๐๐ถ๐ป๐ด, ๐ฎ๐ป๐ฑ ๐บ๐ฎ๐ป๐ฎ๐ด๐ถ๐ป๐ด ๐๐ฒ๐ฐ๐๐ฟ๐ฒ, ๐๐ฐ๐ฎ๐น๐ฎ๐ฏ๐น๐ฒ, ๐ฎ๐ป๐ฑ ๐ฟ๐ฒ๐น๐ถ๐ฎ๐ฏ๐น๐ฒ ๐ถ๐ป๐ณ๐ฟ๐ฎ๐๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ ๐๐ผ๐น๐๐๐ถ๐ผ๐ป๐. My experience spans ๐ฐ๐น๐ผ๐๐ฑ-๐ป๐ฎ๐๐ถ๐๐ฒ ๐๐ฒ๐ฐ๐ต๐ป๐ผ๐น๐ผ๐ด๐ถ๐ฒ๐, ๐๐/๐๐ ๐ฎ๐๐๐ผ๐บ๐ฎ๐๐ถ๐ผ๐ป, ๐ฎ๐ป๐ฑ ๐๐ป๐ณ๐ฟ๐ฎ๐๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ ๐ฎ๐ ๐๐ผ๐ฑ๐ฒ (๐๐ฎ๐), enabling me to deliver ๐ต๐ถ๐ด๐ต-๐ฝ๐ฒ๐ฟ๐ณ๐ผ๐ฟ๐บ๐ถ๐ป๐ด ๐๐๐๐๐ฒ๐บ๐ that enhance operational efficiency and drive innovation. As a ๐๐ฟ๐ฒ๐ฒ๐น๐ฎ๐ป๐ฐ๐ฒ ๐ฆ๐ถ๐๐ฒ ๐ฅ๐ฒ๐น๐ถ๐ฎ๐ฏ๐ถ๐น๐ถ๐๐ ๐๐ป๐ด๐ถ๐ป๐ฒ๐ฒ๐ฟ, I specialize in: โ ๐๐บ๐ฝ๐น๐ฒ๐บ๐ฒ๐ป๐๐ถ๐ป๐ด ๐๐ฒ๐ฐ๐๐ฟ๐ฒ ๐ฎ๐ป๐ฑ ๐๐ฐ๐ฎ๐น๐ฎ๐ฏ๐น๐ฒ ๐ฝ๐ฎ๐๐บ๐ฒ๐ป๐ ๐ด๐ฎ๐๐ฒ๐๐ฎ๐ ๐๐ผ๐น๐๐๐ถ๐ผ๐ป๐ ๐๐๐ถ๐ป๐ด ๐๐ช๐ฆ ๐๐ฒ๐ฟ๐๐ถ๐ฐ๐ฒ๐ ๐น๐ถ๐ธ๐ฒ ๐๐ฃ๐ ๐๐ฎ๐๐ฒ๐๐ฎ๐, ๐๐ฎ๐บ๐ฏ๐ฑ๐ฎ, ๐ฎ๐ป๐ฑ ๐๐๐ป๐ฎ๐บ๐ผ๐๐.. โ ๐๐๐๐ผ๐บ๐ฎ๐๐ถ๐ป๐ด ๐ถ๐ป๐ณ๐ฟ๐ฎ๐๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ ๐ฝ๐ฟ๐ผ๐๐ถ๐๐ถ๐ผ๐ป๐ถ๐ป๐ด with ๐ง๐ฒ๐ฟ๐ฟ๐ฎ๐ณ๐ผ๐ฟ๐บ. โ ๐ข๐ฝ๐๐ถ๐บ๐ถ๐๐ถ๐ป๐ด ๐บ๐ผ๐ป๐ถ๐๐ผ๐ฟ๐ถ๐ป๐ด using ๐๐น๐ผ๐๐ฑ๐ช๐ฎ๐๐ฐ๐ต. โ Ensuring compliance with ๐ฃ๐๐-๐๐ฆ๐ฆ ๐๐๐ฎ๐ป๐ฑ๐ฎ๐ฟ๐ฑ๐ through ๐ฒ๐ป๐ฐ๐ฟ๐๐ฝ๐๐ถ๐ผ๐ป ๐บ๐ฒ๐ฐ๐ต๐ฎ๐ป๐ถ๐๐บ๐ โ implemented with ๐๐ช๐ฆ ๐๐ ๐ฆ and ๐ฆ๐ฒ๐ฐ๐ฟ๐ฒ๐๐ ๐ ๐ฎ๐ป๐ฎ๐ด๐ฒ๐ฟ. These efforts have resulted in ๐ฒ๐ป๐ต๐ฎ๐ป๐ฐ๐ฒ๐ฑ ๐๐ฟ๐ฎ๐ป๐๐ฎ๐ฐ๐๐ถ๐ผ๐ป ๐ฟ๐ฒ๐น๐ถ๐ฎ๐ฏ๐ถ๐น๐ถ๐๐ and ๐๐๐ฟ๐ฒ๐ฎ๐บ๐น๐ถ๐ป๐ฒ๐ฑ ๐ผ๐ฝ๐ฒ๐ฟ๐ฎ๐๐ถ๐ผ๐ป๐ฎ๐น ๐๐ผ๐ฟ๐ธ๐ณ๐น๐ผ๐๐ for payment processing systems. I am passionate about ๐บ๐ฒ๐ป๐๐ผ๐ฟ๐ถ๐ป๐ด ๐ฎ๐ป๐ฑ ๐ธ๐ป๐ผ๐๐น๐ฒ๐ฑ๐ด๐ฒ ๐๐ต๐ฎ๐ฟ๐ถ๐ป๐ด, having delivered ๐ต๐ฎ๐ป๐ฑ๐-๐ผ๐ป ๐๐ฟ๐ฎ๐ถ๐ป๐ถ๐ป๐ด in ๐ฐ๐น๐ผ๐๐ฑ ๐๐ฒ๐ฐ๐ต๐ป๐ผ๐น๐ผ๐ด๐ถ๐ฒ๐, ๐๐๐ฏ๐ฒ๐ฟ๐ป๐ฒ๐๐ฒ๐, ๐ฎ๐ป๐ฑ ๐ฎ๐๐๐ผ๐บ๐ฎ๐๐ถ๐ผ๐ป. My proactive approach helps me anticipate system challenges and create ๐ฟ๐ผ๐ฏ๐๐๐, ๐๐ฐ๐ฎ๐น๐ฎ๐ฏ๐น๐ฒ ๐๐ผ๐น๐๐๐ถ๐ผ๐ป๐ ๐๐ต๐ฎ๐ ๐ฒ๐ป๐ต๐ฎ๐ป๐ฐ๐ฒ ๐๐ฒ๐ฐ๐๐ฟ๐ถ๐๐, ๐ฐ๐ผ๐บ๐ฝ๐น๐ถ๐ฎ๐ป๐ฐ๐ฒ, ๐ฎ๐ป๐ฑ ๐ผ๐ฝ๐ฒ๐ฟ๐ฎ๐๐ถ๐ผ๐ป๐ฎ๐น ๐ฒ๐ณ๐ณ๐ถ๐ฐ๐ถ๐ฒ๐ป๐ฐ๐. Dedicated to ๐ฐ๐ผ๐ป๐๐ถ๐ป๐๐ผ๐๐ ๐น๐ฒ๐ฎ๐ฟ๐ป๐ถ๐ป๐ด, I stay updated with ๐ฒ๐บ๐ฒ๐ฟ๐ด๐ถ๐ป๐ด ๐๐ฒ๐ฐ๐ต๐ป๐ผ๐น๐ผ๐ด๐ถ๐ฒ๐ and thrive on contributing to ๐๐ฟ๐ฎ๐ป๐๐ณ๐ผ๐ฟ๐บ๐ฎ๐๐ถ๐๐ฒ ๐ฝ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐๐ that push boundaries in technology.