21 Testing Connectivity with Ping
- Using
ping
to Test Network Connectivityping <IP>
sends test packets to check if a device is reachable.- Works for both internal and external network testing.
- Continuous pinging in Linux can be stopped using
Ctrl + C
.
- Verifying Local Network Connections
ping <local_IP>
confirms if devices on the same network are reachable.- Successful responses mean the network is properly configured.
- High latency or dropped packets indicate network issues.
- Detecting Network Separation Issues
ping
fails if two devices are on different networks without routing.- The error
Network is unreachable
means the destination is not accessible. - If the network is reachable but the device is not, the error is
Host unreachable
.
- Using Ping for Troubleshooting
- Helps identify whether an issue is device-specific or network-wide.
- Can be used to test router and gateway connectivity.
- Understanding ping failures helps diagnose firewall, routing, or misconfiguration issues.
Next in Playlist: 22 Temporary Permanent and Flushing IPs