Linux Network Diagnostics is a Bash scripting project designed to collect and display essential network information from a Linux system. The script automates common network troubleshooting tasks and generates a report that can be used by system administrators to quickly assess network configuration and connectivity.
This project demonstrates practical Linux networking and system administration skills, including interface inspection, routing analysis, DNS verification, connectivity testing, and service port inspection.
- Gather network configuration details from a Linux server.
- Verify IP addressing and network interfaces.
- Display routing information and default gateway configuration.
- Review DNS settings.
- Identify active listening ports and services.
- Test network connectivity.
- Generate a diagnostic report for troubleshooting purposes.
- Linux (RHEL/Rocky Linux/CentOS)
- Bash Scripting
- TCP/IP Networking
- DNS
- NetworkManager
The project utilizes the following Linux commands:
hostname
hostname -I
ip addr
ip route
ss -tuln
cat /etc/resolv.conf
pingLinux-Network-Diagnostics/
├── README.md
├── network_diagnostics.sh
└── reports/
└── network_report.txt
The network diagnostics script performs the following tasks:
- Displays the system hostname.
- Shows configured IP addresses.
- Lists available network interfaces.
- Displays the routing table and default gateway.
- Shows DNS server configuration.
- Lists active listening ports and services.
- Tests network connectivity using ICMP ping.
- Generates a network diagnostic report.
Make the script executable:
chmod +x network_diagnostics.shRun the script and save the output to a report:
./network_diagnostics.sh > reports/network_report.txt- Initial server network verification
- Basic connectivity troubleshooting
- DNS troubleshooting
- Service port verification
- System administration documentation
- Linux System Administration
- Linux Networking
- TCP/IP Fundamentals
- DNS Troubleshooting
- Routing Analysis
- Network Diagnostics
- Bash Scripting
- Service Verification
Through this project, the following concepts were reinforced:
- Network interfaces and IP addressing
- Default gateway and routing tables
- DNS configuration and name resolution
- Network connectivity testing
- Listening ports and service verification
- Automation using Bash scripts
Nandana Mohan J