When networks go down or act up, system admins turn to a core set of built-in tools to diagnose problems. This tutorial introduces three essential network troubleshooting commands: ping
, tracert/traceroute
, and ipconfig/ifconfig
. These tools help you check connectivity, locate issues, and analyze routes.
The ping
command sends ICMP Echo Requests to test if a host is reachable. It's the most basic tool for checking if a device or website is alive.
ping google.com
Note: Some hosts or firewalls block ICMP responses.
This command traces the path packets take to reach a destination, showing each hop (router) along the way.
tracert
– Windowstraceroute
– Linux/macOStracert google.com
Displays your network configuration and assigned IP addresses.
ipconfig
– Windowsifconfig
– Linux/macOS (use ip a
on modern systems)ipconfig /all
ifconfig
Use this to:
ipconfig /release
, /renew
)Start with ping
, trace the route with tracert
, and inspect your local configuration with ipconfig
. This combination covers most network issues like DNS resolution failures, dropped connections, or misconfigured IPs.
Try these commands when you can’t connect to the internet or specific sites. They provide fast, powerful insights into what's working — and what's not — on your network.