Lesson 48: Essential Networking Tools (Ping, Tracert, Ipconfig/Ifconfig)
As a networking professional, you must be able to use command-line tools to diagnose connectivity and address issues.
1. Ping (Packet Internet Groper)
- Purpose: To test basic connectivity and measure latency (Round Trip Time) between two hosts.
- Protocol: Uses ICMP (Internet Control Message Protocol).
- Usage:
ping 8.8.8.8(Pings Google's DNS server). - Output: Tells you if the destination is reachable and how long the journey took (ms).
2. Tracert (Windows) / Traceroute (Linux/macOS)
- Purpose: To map the path a packet takes across an internetwork, identifying every router (hop) along the route.
- Usage:
tracert google.com - Output: Lists the IP address and latency to each router the packet passes through. This is essential for identifying where connectivity fails (e.g., if the connection dies at hop 7, you know the problem is beyond router 6).
3. Ipconfig (Windows) / Ifconfig (Linux/macOS)
- Purpose: To display the current network configuration settings of the host machine.
- Usage (Windows):
ipconfig /all - Output (Key Data Points):
- IP Address (Logical L3 address)
- Subnet Mask
- Default Gateway (Your first-hop router)
- MAC Address (Physical L2 address)
- DNS Server IP address