Windows Network Troubleshooting Cheatsheet: Essential Commands for DevOps
Introduction
This cheatsheet provides essential Windows networking commands for troubleshooting network issues, verifying connectivity, and diagnosing common problems.
Table of Contents
- ipconfig /all
- ping
- tracert
- nslookup
- netstat -an
- route print
- arp -a
- Test-NetConnection
- Get-NetAdapter
-
netsh interface ipv4 show config
- ipconfig /all
Displays full TCP/IP configuration.
- ping
Tests connectivity to a host.
- tracert
Traces the route packets take to a destination.
- nslookup
Queries DNS to obtain domain IP addresses.
- netstat -an
Displays active network connections and listening ports.
- route print
Shows the IP routing table.
- arp -a
Displays the ARP table, useful for resolving MAC addresses.
- Test-NetConnection
PowerShell cmdlet to test connectivity and ports.
Test-NetConnection -ComputerName www.example.com -Port 80
- Get-NetAdapter
Lists network adapters and their statuses.
- netsh interface ipv4 show config
Shows IPv4 configuration for all interfaces.
netsh interface ipv4 show config