Essential Linux Networking Commands Every Server Administrator Must Know
Tutorials

Essential Linux Networking Commands Every Server Administrator Must Know

Network troubleshooting is an essential skill for any server administrator. This reference guide covers the most important Linux networking commands with practical examples for diagnosing connectivity issues, analyzing traffic, and managing network configuration.

Support Team22 June 202610 min read Share
Table of Contents

The Modern Linux Networking Toolkit

The traditional ifconfig and netstat commands are deprecated on modern systems. The ip and ss utilities from iproute2 are their replacements and provide far more information.

ip — Interface and Routing Management

ip addr show          # Show all interfaces and IPs
ip route show         # Show routing table
ip link show          # Show interface status
ip route add 10.0.0.0/8 via 192.168.1.1  # Add static route

ss — Socket Statistics

ss -tunlp             # Show all listening TCP/UDP sockets with PID
ss -s                 # Socket summary
ss -t state established  # Show established TCP connections

tcpdump — Packet Capture

tcpdump -i eth0 port 80          # Capture HTTP traffic
tcpdump -i eth0 host 8.8.8.8     # Traffic to/from specific IP
tcpdump -w capture.pcap           # Save to file for Wireshark analysis

nmap — Network Scanner

nmap -sV your-server-ip           # Service version scan
nmap -sC -sV -oA scan your-server # Full scan with scripts

FAQ

What replaced netstat on modern Linux?

The ss command replaces netstat. It is faster, more accurate, and provides more detail. Install with: apt install iproute2.

Ready to deploy?

Get a Fully Manageable VPS

Root access, custom networking, full kernel control on Power Down KVM VPS.

View VPS Plans
Be the first to like this.

Discussion

0/1000
Loading comments...

Join Our Discord

Connect with our community of gamers and developers

Get instant support, share experiences, and stay updated with the latest news

Join Us On Discord
2026 VPS SaleLIMITED TIME
View Sale Plans