Arch Linux Network Utilities - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Arch Linux Network Utilities Guide
Complete beginner-friendly guide to network utilities on Arch Linux, including network testing, network analysis, and network troubleshooting tools.
Table of Contents
Network Testing
ping
Test connectivity:
# Ping host
ping google.com
# Ping with count
ping -c 4 google.com
# Ping with interval
ping -i 2 google.com
traceroute
Trace route:
# Install traceroute
sudo pacman -S traceroute
# Trace route
traceroute google.com
# Or tracepath
tracepath google.com
Network Analysis
netstat
Network statistics:
# Install netstat
sudo pacman -S net-tools
# List connections
netstat -tuln
# List processes
netstat -tulnp
ss
Socket statistics:
# List connections
ss -tuln
# List processes
ss -tulnp
# Show established
ss -tn
nmap
Network scanner:
# Install nmap
sudo pacman -S nmap
# Scan host
nmap hostname
# Scan network
nmap 192.168.1.0/24
Network Tools
wireshark
Network analyzer:
# Install Wireshark
sudo pacman -S wireshark-cli wireshark-qt
# Launch
sudo wireshark
tcpdump
Packet capture:
# Install tcpdump
sudo pacman -S tcpdump
# Capture packets
sudo tcpdump -i eth0
# Save to file
sudo tcpdump -i eth0 -w capture.pcap
iperf3
Bandwidth testing:
# Install iperf3
sudo pacman -S iperf3
# Server
iperf3 -s
# Client
iperf3 -c server-ip
Troubleshooting
Connection Issues
Diagnose:
# Check interface
ip link show
# Check routing
ip route show
# Check DNS
nslookup google.com
Slow Network
Analyze:
# Check bandwidth
iperf3 -c server
# Check latency
ping -c 10 server
# Check packet loss
ping -c 100 server
Summary
This guide covered network testing, analysis, tools, and troubleshooting.
Next Steps
- SS Network Troubleshooting - More on ss
- Ping & Traceroute Network Testing - Network testing
- ArchWiki Network Utilities: https://wiki.archlinux.org/title/Network_tools
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.