Skip to main content
intermediate Free with email

Network Troubleshooting Commands Free Cheat Sheet PDF

Reviewed 2026-10-01

Direct answer
The core network troubleshooting commands are ping (reachability), ipconfig /all or ip a (your IP, gateway and DNS), tracert or traceroute (the path), nslookup or dig (DNS), netstat -ano or ss -tulnp (connections and ports), arp -a and pathping or mtr. Run them in order: IP configuration, loopback, gateway, a public IP, then DNS, then the path. The free PDF covers 14 Windows commands.

The core network troubleshooting commands are ping (is the host reachable), ipconfig /all or ip a (your IP address, gateway and DNS), tracert or traceroute (the path), nslookup or dig (DNS), netstat -ano or ss -tulnp (connections and listening ports), arp -a (the IP-to-MAC cache) and pathping or mtr (packet loss per hop). Run them in order: check your IP configuration, ping loopback, ping the gateway, ping a public IP, test DNS, then trace the path. This free PDF covers 14 Windows commands. The Linux equivalents are on this page, not in the PDF.

Network Troubleshooting Commands: What Each One Tests

Windows, macOS and Linux ship with their own network troubleshooting tools, so you don’t need extra software for first-line diagnosis.

CategoryWhat it testsWindowsLinux
ConnectivityIs the host reachable, and how fast?ping, pathpingping, mtr
Host configurationMy IP, MAC and hostnameipconfig, getmac, hostnameip a, hostname
Name resolutionIs DNS working?nslookupdig, nslookup
Path and routingWhich hops does traffic take?tracert, routetraceroute, ip route
ConnectionsWhat’s open, listening or cached?netstat, arpss, ip neigh
Security postureFirewall and Wi-Fi settingsnetsh advfirewall, netsh wlanufw, nmcli

Windows Network Troubleshooting Commands in CMD and PowerShell

These 14 commands run in both Command Prompt and PowerShell. Releasing a DHCP lease and editing firewall rules need an elevated prompt.

CommandSyntaxWhat it does
pingping [-t] [-n count] targetSends ICMP echo requests, reports round-trip time and loss
ipconfigipconfig /allEvery adapter’s IP, mask, gateway, DHCP and DNS servers
getmacgetmac /vMAC address and transport name of each adapter
hostnamehostnameThe computer’s configured name
nslookupnslookup -type=MX domain.comQueries a DNS server directly, including MX, NS and TXT
tracerttracert -d targetEach router hop to a destination, with round-trip times
netstatnetstat -anoConnections, listening ports and the owning process ID
arparp -aThe local IP-to-MAC cache
pathpingpathping targetPath plus packet loss for each hop
systeminfosysteminfoOS version, boot time, memory, hotfixes
routeroute printThe routing table and default gateway
whoamiwhoamiThe logged-on account
netsh advfirewallnetsh advfirewall show allprofilesWhether each firewall profile is on
netsh wlannetsh wlan show interfacesSSID, signal and security of the Wi-Fi link

ipconfig /flushdns clears the local DNS cache and fixes many “the site still shows old content” cases. Syntax details are in Microsoft’s ipconfig reference.

Network troubleshooting commands compared: Windows ipconfig /all and netstat -ano versus Linux ip a and ss -tulnp
The same two jobs on both systems: show your address, and show open ports with their processes.

Linux and Ubuntu Network Troubleshooting Commands

WindowsLinuxNotes
ipconfig /allip aifconfig is deprecated in favour of ip
pingping -c 4 targetLinux ping runs until stopped, so -c sets the count
tracerttraceroute target or mtr targetmtr joins trace and continuous ping
nslookupdig domain.comMore detail on the DNS response
netstatss -tulnpThe modern replacement for netstat
arp -aip neighSame IP-to-MAC cache
route printip routeRouting table and default gateway
netsh wlannmcli device wifi listVisible networks and signal
netsh advfirewallufw status verboseUbuntu’s firewall front end

The commands that change settings are ip addr add and ip link set. Everything in the table only reads them. Red Hat’s Linux network troubleshooting commands covers the Linux side in more depth, and our Linux Commands Cheat Sheet covers file, process and permission commands.

How to Troubleshoot Network Issues: A 10-Step Command Workflow

  1. Check the physical connection. Cable seated, Wi-Fi showing a signal.
  2. Check IP configuration with ipconfig /all or ip a. An address starting 169.254 (APIPA) means the host couldn’t reach a DHCP server.
  3. Ping loopback, ping 127.0.0.1, to confirm your own TCP/IP stack works.
  4. Ping the default gateway to separate a local fault from one beyond your router.
  5. Ping a public IP such as ping 8.8.8.8, which skips DNS.
  6. Test DNS with nslookup.
  7. Trace the route if the connection is slow or only partly working.
  8. Inspect connections with netstat -ano or ss -tulnp.
  9. Check ARP with arp -a to spot an IP or MAC conflict.
  10. Review firewall and Wi-Fi settings last.
Network troubleshooting commands in order: ping 127.0.0.1 for the local stack, ping the default gateway, then ping 8.8.8.8 to test beyond it without DNS
Ping loopback, then the gateway, then a public IP, so each step rules out one layer.

Per Microsoft’s ping reference, if pinging the IP address works but pinging the name doesn’t, you might have a name resolution problem. For VPN tunnels see IPsec VPN troubleshooting commands.

Network troubleshooting commands: if ping 8.8.8.8 replies but ping by name fails, the problem is name resolution, so run nslookup
If the IP replies but the name doesn’t, suspect DNS and run nslookup next.

Go deeper

ping finds one fault. A network takes practice.

The CCNA Lab Workbook: 75 labs where you build it, break it and trace the fault.

Open the CCNA Workbook →

Network Troubleshooting Commands for Wi-Fi, Latency and Packet Loss

Wi-Fi: run netsh wlan show interfaces (Windows) or nmcli device wifi list (Linux). Signal below about 50% often goes with slow or unstable Wi-Fi. netsh wlan show drivers helps rule out an outdated driver.

Latency and packet loss: ping gives the baseline. pathping (Windows) or mtr (Linux) shows loss for each hop. Per Microsoft’s pathping reference, loss on a router row affects only traffic addressed to that router. Loss on a link row, shown as |, indicates congestion on traffic being forwarded.

Network troubleshooting commands: in pathping output a router row's loss affects packets sent to it, while loss on a link row marked with a bar means link congestion
In pathping output, loss on a router row and loss on a link row mean different things.

pathping takes about 90 seconds or more to gather statistics, depending on the number of hops. Use -n to skip name lookups.

Switches: these host commands can’t configure a switch. ipconfig /all and arp -a show whether the host is on the subnet you expect. For switch CLI, see the Cisco Commands Cheat Sheet. For firewalls, see FortiGate CLI Commands. For routers, see MikroTik CLI Commands.

What’s Inside the Network Troubleshooting Commands PDF

The PDF is a 46-page Windows lab handbook. Each of the 14 Windows commands has the same sections: purpose, syntax, options, example commands, how to read the output, troubleshooting use, a security note, common mistakes and a practical exercise.

  • The 14 Windows commands above, and a 10-step troubleshooting workflow in text
  • A quick-reference table, a scenario table and 28 viva-style questions
  • Not in the PDF: the Linux and Ubuntu commands. They’re on this page.

Who It’s For

  • Help desk and sysadmins who want a fixed order for first-line diagnosis
  • SOC analysts, who lean on netstat and arp for unexpected ports and duplicate MAC-to-IP mappings
  • Students building habits for the CCNA 200-301 and the CCNA Workbook

Frequently asked questions

What are the basic network troubleshooting commands?
ping tests reachability, ipconfig /all (or ip a) shows your address and gateway, tracert (or traceroute) shows the path, and nslookup (or dig) tests DNS.
What are the 7 steps of network troubleshooting?
CompTIA's method has seven: identify the problem, establish a theory of probable cause, test the theory, establish a plan of action, implement the solution or escalate, verify full functionality, and document. This page's 10-step workflow is a command sequence you run inside steps 1 to 3.
What are 10 common network commands?
ping, ipconfig or ip a, tracert or traceroute, nslookup or dig, netstat or ss, arp, pathping or mtr, route print or ip route, whoami and netsh or nmcli.
How do I troubleshoot a network problem using Command Prompt?
Run ipconfig /all, then ping 127.0.0.1, then ping the gateway, then ping 8.8.8.8, then nslookup a domain. Each step rules out one layer.
What command is used to troubleshoot a network?
No single one. ping answers "is it reachable", tracert "where does it break", nslookup "is DNS the problem" and netstat "what is this machine doing right now".
Does the PDF include Linux commands?
No. It covers 14 Windows commands. The Linux equivalents are on this page.

Questions about this PDF

No questions yet. Ask the first one.

Ask a question

Your email address won't be published. We review every question before it appears. How we handle your data. Required fields are marked

Reviewed by

CCDE/CCIE

How to cite this resource

SMEnode Labs (2026). Network Troubleshooting Commands Free Cheat Sheet PDF. SMEnode Labs. https://smenode-labs.com/free-pdf/networking/network-troubleshooting-commands/

APA

SMEnode Labs. (2026). Network Troubleshooting Commands Free Cheat Sheet PDF. SMEnode Labs. https://smenode-labs.com/free-pdf/networking/network-troubleshooting-commands/

BibTeX

@misc{smenodelabs2026,
  title = {Network Troubleshooting Commands Free Cheat Sheet PDF},
  author = {{SMEnode Labs}},
  year = {2026},
  url = {https://smenode-labs.com/free-pdf/networking/network-troubleshooting-commands/},
  note = {SMEnode Labs}
}