Networking Tools

2020-05-07

๐Ÿง  Everyday Network Troubleshooting: Tools You Should Know (and Actually Use)

Networking Tools

Whether you're debugging why a pod can't reach an endpoint or trying to figure out why your app's requests are timing out, networking tools are your first line of defense.

Hereโ€™s a curated, opinionated, and battle-tested list of tools I use (almost) daily. Each one comes with practical examples.

๐Ÿš€ Connectivity & Reachability

๐Ÿ”น ping

Checks if a host is alive using ICMP echo requests.

ping google.com
ping -c 4 192.168.1.1 # -c 4 is to send 4 packets

๐Ÿ”ง Tip: If ping doesn't work, the host could be up but blocking ICMP. Check firewall rules.

๐Ÿ”น traceroute

Visualise the path packets take to a remote host. Great for pinpointing bottlenecks.

traceroute google.com
traceroute -I 192.168.1.1 # -I is to use ICMP echo requests

๐Ÿง  Use case: โ€œWhy is latency high between service A and B?โ€ โ†’ traceroute.

๐Ÿ”น nslookup

Simple tool for querying DNS. Quick and dirty.

nslookup google.com
nslookup 8.8.8.8

๐Ÿ”น dig

More verbose and powerful DNS query tool than nslookup.

dig google.com
dig google.com ANY # ANY is to get all records
dig google.com A +short # A is to get A records
dig google.com AAAA +short # AAAA is to get AAAA records

๐Ÿง  Bonus: Use +trace to debug DNS resolution path:

dig +trace google.com
dig +trace google.com +short # +short is to get the IP address

๐ŸŒ Port Scanning & TCP Checks

๐Ÿ”น netcat (nc)

The Swiss Army Knife of TCP/UDP.

nc -zv google.com 80
nc -l 1234  # Listen on port 1234
nc -zv 192.168.1.1 1-65535 # -z is to scan all ports

๐Ÿ“ก Tip: nc can be used to spin up fake HTTP servers or test port exposure in firewalled networks.

๐Ÿ”น telnet

Old school, but works.

telnet google.com 80

๐ŸŽฏ Can be used to debug HTTP, SMTP, Redis manually.

๐Ÿ›  Interface & Routing Info

๐Ÿ”น ip (modern)

ip addr show
ip route show
ip link set eth0 up

๐Ÿ”น ifconfig (legacy but familiar)

ifconfig
ifconfig eth0 up

๐Ÿ”น route (macOS)

route -n
route add default gw 192.168.1.1

๐Ÿ“Š Monitoring Traffic & Usage

๐Ÿ”น netstat

netstat -an
netstat -r

๐Ÿ”น ss (modern netstat replacement)

ss -tuln
ss -s

๐Ÿ”น tcpdump Capture packets like a boss.

tcpdump -i eth0
tcpdump -i eth0 -w capture.pcap

๐ŸŽฏ Combine with wireshark to visualize packets.

๐Ÿ”น tshark CLI version of Wireshark.

tshark -i eth0
tshark -r capture.pcap

๐Ÿ”น vnstat

Track bandwidth usage.

vnstat -l
vnstat -d

๐Ÿ”น nload / nethogs

Real-time network I/O monitor per interface or per process.

bash

nload
nethogs

๐Ÿ“ถ Wireless Tools

iw
iwlist
iwconfig

๐Ÿง  These are useful on laptops, Raspberry Pi setups, or Linux wireless APs.

๐Ÿ” Security, Scanning & Recon

๐Ÿ”น nmap

Port scanner and network mapper.

nmap google.com
nmap -sP 192.168.1.0/24

๐Ÿง  Pro tip: Use with -A for OS detection, versioning, script scanning.

๐Ÿ”น whois

Lookup domain ownership.

whois google.com

๐Ÿ”น lsof

See what ports your system is listening on.

lsof -i :80
lsof -i tcp

๐Ÿ”น arp / arping

arp -a
arp -d 192.168.1.1
arping 192.168.1.1

๐Ÿง  Use for static IP-to-MAC mapping debugging or LAN sniffing.

๐Ÿงช Bandwidth Testing

๐Ÿ”น iperf

Client-server bandwidth tester.

iperf -s          # Start server
iperf -c <ip>     # Run client against server

๐Ÿ“ฆ Works great for diagnosing slow internal links or tunnels.

๐Ÿ”น mtr

Combines ping + traceroute with live stats.

mtr google.com
mtr google.com
mtr -r google.com

๐Ÿง  Instant visibility into jitter, loss, and latency by hop.

๐Ÿง  Bonus Mentions

conntrack โ€“ Show conntrack entries
ssdp โ€“ Debug multicast/UPnP
ncdu โ€“ Disk usage but worth knowing if you're debugging slow apps
hostname โ€“ Quick check or change the hostname

๐ŸŽฏ My Top 5 Daily Use Tools

| Purpose | Tool | | Ping test | ping | | DNS Resolution | dig | | Port connectivity | nc / telnet | | Interface info | ip addr | | Live traffic debug | tcpdump |

โœจ Final Thoughts

These tools are deceptively simpleโ€”but when chained together, they help you uncover:

  • Firewall misconfigurations
  • DNS issues
  • Interface problems
  • Packet loss/jitter
  • Port blocks or misroutes
  • Host reachability vs app-level downtime

๐Ÿ› ๏ธ Bookmark this. Refer to it next time you're troubleshooting networking issues.

Related Posts