CMD Commands Network Troubleshooting
CMD Commands Network Troubleshooting
Troubleshooting
1. Basic Network Information and Configuration
• ipconfig: Displays IP configuration details of all network adapters.
ipconfig
• ipconfig /all: Shows detailed information, including DNS, DHCP, and MAC addresses.
ipconfig /all
• tracert [hostname/IP]: Traces the route to a remote host to identify where a network
delay or failure occurs.
tracert google.com
• netstat -an: Displays active TCP/IP connections, listening ports, and the state of each
connection.
netstat -an
• arp -a: Displays the ARP (Address Resolution Protocol) table, which maps IP addresses to
MAC addresses.
arp -a
• netsh interface ip set dns "[adapter]" static [DNS IP]: Configures a static DNS server for a
network adapter.
netsh interface ip set dns "Ethernet" static 8.8.8.8
• netsh advfirewall set allprofiles state on/off: Enables or disables the firewall for all
profiles.
netsh advfirewall set allprofiles state off
• netsh winsock reset: Resets the Winsock catalog to resolve issues related to network stack
corruption.
netsh winsock reset