Author: Madhan Gopalakrishnan | Published on : 10-02-2025

🔹 Networking is the backbone of any Linux system, and troubleshooting network issues efficiently is crucial for smooth operations. This guide explores the most essential network diagnostic tools, the required packages, installation steps, repositories, and detailed package information.
🌐 Essential Networking Diagnostic Tools
✅ ping – Tests connectivity between the local system and a remote host. ✅ traceroute – Traces the path packets take to a destination. ✅ netstat – Displays network connections, routing tables, and interface statistics. ✅ ss – A modern alternative to netstat
, providing detailed socket statistics. ✅ tcpdump – Captures and analyzes network traffic. ✅ iftop – Monitors bandwidth usage on network interfaces. ✅ nmap – Scans networks for open ports and services. ✅ dig – Queries DNS servers for information. ✅ ethtool – Displays and modifies Ethernet device settings. ✅ ip – Manages routing, devices, and tunnels.
🛠 Installing Networking Diagnostic Tools
🔍 Installing netstat
📦 Package: net-tools
🗂 Repository: Default 🖥️ Install Command:
sudo yum install net-tools
🚀 Installing ss (Alternative to netstat)
📦 Package: iproute
🗂 Repository: Default 🖥️ Install Command:
sudo yum install iproute
🌍 Installing traceroute
📦 Package: traceroute
🗂 Repository: Default 🖥️ Install Command:
sudo yum install traceroute
📡 Installing tcpdump
📦 Package: tcpdump
🗂 Repository: Default 🖥️ Install Command:
sudo yum install tcpdump
📊 Installing iftop (Bandwidth Monitor)
📦 Package: iftop
🗂 Repository: EPEL (Extra Packages for Enterprise Linux) 🖥️ Install Command:
sudo yum install epel-release -y
sudo yum install iftop
🔎 Installing nmap (Network Scanner)
📦 Package: nmap
🗂 Repository: Default 🖥️ Install Command:
sudo yum install nmap
🌐 Installing dig (DNS Query Tool)
📦 Package: bind-utils
🗂 Repository: Default 🖥️ Install Command:
sudo yum install bind-utils
⚙️ Installing ethtool (Ethernet Interface Utility)
📦 Package: ethtool
🗂 Repository: Default 🖥️ Install Command:
sudo yum install ethtool
🏗 Installing ip Command
📦 Package: iproute
🗂 Repository: Default 🖥️ Install Command:
sudo yum install iproute
📌 Repository Configuration
By default, RHEL and CentOS systems come with pre-configured repositories. However, for additional tools like iftop
, enabling the EPEL repository is necessary:
sudo yum install epel-release
📂 Detailed Package Information
🏗 net-tools
✔️ The net-tools
package provides legacy networking utilities, including netstat
, ifconfig
, and route
. ✔️ These tools were commonly used in older Linux distributions before being replaced by more modern alternatives like iproute2
. ✔️ netstat
helps in displaying active network connections, routing tables, and listening ports. ✔️ Useful for administrators who are accustomed to traditional commands.
⚡ iproute
✔️ The iproute
package is the modern replacement for net-tools
. ✔️ It includes the ip
command, which is used for configuring IP addresses, routing, and network interfaces. ✔️ The ss
command from this package is a more efficient alternative to netstat
, providing detailed socket information. ✔️ It is more versatile and supports advanced networking features.
🌎 bind-utils
✔️ The bind-utils
package contains utilities for DNS lookups, including dig
, nslookup
, and host
. ✔️ dig
(Domain Information Groper) is widely used for querying DNS servers and troubleshooting domain resolution issues. ✔️ nslookup
provides basic DNS query capabilities, though it is less commonly used compared to dig
. ✔️ Useful for verifying DNS configurations and detecting misconfigurations.
🔍 tcpdump
✔️ tcpdump
is a powerful command-line packet analyzer. ✔️ It captures network traffic in real time, helping diagnose network-related issues. ✔️ Administrators can use it to inspect packet contents and identify security threats. ✔️ Useful for deep network analysis and debugging connectivity problems.
📊 iftop
✔️ iftop
provides real-time bandwidth monitoring for network interfaces. ✔️ Displays a dynamic list of active connections and their data transfer rates. ✔️ Helps in identifying excessive bandwidth usage and diagnosing network bottlenecks. ✔️ Requires enabling the EPEL repository before installation.
🔎 nmap
✔️ nmap
(Network Mapper) is a widely used network scanning tool. ✔️ Helps in identifying open ports, running services, and potential vulnerabilities. ✔️ Useful for system administrators and security professionals to analyze network security. ✔️ Supports a variety of scanning techniques, including SYN, UDP, and OS fingerprinting scans.
🌐 traceroute
✔️ traceroute
traces the route packets take to a destination. ✔️ Displays each hop along the path and the time taken for each hop. ✔️ Useful for diagnosing network congestion and connectivity issues. ✔️ Helps in pinpointing where network slowdowns occur.
⚙️ ethtool
✔️ ethtool
is used for querying and modifying network interface settings. ✔️ Can adjust speed, duplex mode, and offloading features of Ethernet interfaces. ✔️ Helps in diagnosing hardware-related network issues. ✔️ Useful for optimizing network adapter performance.
📢 Final Thoughts Mastering these networking tools will empower you to diagnose, troubleshoot, and optimize network performance on RHEL 7/8/9 and CentOS systems. Bookmark this guide for future reference and streamline your Linux networking expertise! 🚀