Network Connectivity Diagnostics
1. ping Command
## Test basic connectivity
ping google.com
## Specify packet count
ping -c 4 google.com
## Ping with specific interface
ping -I eth0 google.com
2. traceroute Command
## Trace network path
traceroute google.com
## Specify interface
traceroute -i eth0 google.com
3. netstat Command
## Show all network connections
netstat -tuln
## Display network statistics
netstat -s
graph LR
A[Network Troubleshooting] --> B[Connectivity Tests]
A --> C[Performance Analysis]
A --> D[Detailed Diagnostics]
4. ss Command
## Show socket statistics
ss -tuln
## Display detailed socket information
ss -ntp
Tool |
Primary Function |
Key Options |
ping |
Connectivity test |
-c (count), -I (interface) |
traceroute |
Network path |
-i (interface) |
netstat |
Connection details |
-tuln, -s |
ss |
Socket statistics |
-ntp |
mtr |
Advanced traceroute |
-n (numeric) |
Network Interface Specific Diagnostics
## Show interface statistics
sudo ethtool eth0
## Display interface settings
sudo ethtool -i eth0
Troubleshooting Workflow
- Check physical connection
- Verify interface status
- Test basic connectivity
- Analyze network path
- Review detailed statistics
At LabEx, we emphasize systematic network troubleshooting to resolve complex network issues efficiently.