You are on page 1of 4

Page 1 of 4

Network Troubleshooting Tools Cheat Sheet


Examples: Request messages to each router between a source and
! IPCONFIG - Displays all current TCP/IP network
destination, over a period of time, and then computes
configuration values and refreshes Dynamic Host
results based on the packets returned from each router.
Configuration Protocol (DHCP) and Domain Name System
Simple ping google.com Because this command displays the degree of packet loss at
(DNS) settings. Used without parameters, ipconfig displays
any given router or link, you can determine which routers or
Internet Protocol version 4 (IPv4) and IPv6 addresses,
subnet mask, and default gateway for all adapters. Ping subnets might be having network problems.  
Target with ping /a google.com
Parameters: [/allcompartments] [/all] [/renew [<adapter>]] DNS Lookup Parameters: [/n] [/h <maximumhops>] [/g <hostlist>] [/p
[/release [<adapter>]] [/renew6[<adapter>]] [/release6 <Period>] [/q <numqueries> [/w <timeout>] [/i <IPaddress>]
Continuous [/4 <IPv4>] [/6 <IPv6>][<targetname>]
[<adapter>]] [/flushdns] [/displaydns] [/registerdns]
Ping ping /t google.com
[/showclassid <adapter>] [/setclassid <adapter> [<classID>]] Examples:
(Ctl+C to stop)
Examples:

* * * * * * * Simple pathping google.com


Simple Ipconfig
TRACERT - This diagnostic tool determines the path
Display taken to a destination by sending Internet Control Message
* * * * * * *
All IPCONFIG ipconfig /all Protocol (ICMP) echo Request to the destination with
Characteristics incrementally increasing time to live (TTL) field values. Each
router along the path is required to decrement the TTL in an
NSLOOKUP - Displays information that you can use to
Perform diagnose Domain Name System (DNS) infrastructure. For
IP packet by at least 1 before forwarding it. Effectively, the
IPCONFIG ipconfig /flushdns the first parameter, type the name or IP address of the
TTL is a maximum link counter. When the TTL on a packet
DNS Flush computer that you want to look up. For the second
reaches 0, the router is expected to return an ICMP time
Exceeded message to the source computer. parameter, type the name or IP address of a DNS name
server. If you omit the second argument, nslookup uses the
* * * * * * * Parameters: [/d] [/h <maximumhops>] [/j <hostlist>] [/w default DNS name server.
<timeout>] [/R] [/S <srcaddr>] [/4][/6] <targetname>
Parameters: [exit | finger | help | ls | lserver | root | server
PING - Verifies IP-level connectivity to another TCP/IP Examples: | set | view] [options]
computer by sending Internet Control Message Protocol
(ICMP) echo Request messages. The receipt of Examples:
corresponding echo Reply messages are displayed, along
Simple tracert google.com
with round-trip times. ping is the primary TCP/IP command nslookup google.com
used to troubleshoot connectivity, reachability, and name
resolution.  nslookup google.com 8.8.8.8

Parameters: [/t] [/a] [/n <count>] [/l <size>] [/f] [/I <TTL>] * * * * * * * nslookup -type=ns vpn.state.ma.us
[/v <TOS>] [/r <count>] [/s <count>] [{/j <hostlist> | /k nslookup
<hostlist>}] [/w <timeout>] [/R] [/S <Srcaddr>] [/4] [/6] PATHPING - Provides information about network
<targetname> latency and network loss at intermediate hops between a * * * * * * *
source and destination. This command sends multiple echo

! Denotes Commands with capability of modifying the system


Page 2 of 4

Network Troubleshooting Tools Cheat Sheet

! Denotes Commands with capability of modifying the system


Page 3 of 4

Network Troubleshooting Tools Cheat Sheet


NETSTAT - Displays active TCP connections, ports on
which the computer is listening, Ethernet statistics, the IP * * * * * * * * * * * * * *
routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP
protocols). ! NETSH - The Network Shell command-line scripting ! ROUTE - Displays and modifies the entries in the
Parameters: [-a] [-b] [-e] [-n] [-o] [-p <Protocol>] [-r] [-s] utility that allows you to, either locally or remotely, display local IP routing table.
[<interval>] or modify the network configuration of a currently running
computer. Parameters: [/f] [/p] [<command> [<destination>] [mask
Examples: <netmask>] [<gateway>] [metric <metric>]] [if <interface>]]
Parameters: [-a <Aliasfile>][-c <Context>][-r
Lists All Network <Remotecomputer>][-u [<domainname>\<username>][-p Examples:
Connections netstat -a <Password> | [{<NetshCommand> | -f <scriptfile>}]
(Active and Inactive)
Examples: Simple route print
Lists
Routing netstat -r List
Table Status of All netsh interface show interface
Lists All Active Active Interfaces * * * * * * *
Network netstat List
Connections Profile of Wireless netsh wlan show drivers ! WMIC – WMI s an infrastructure for the standardized
LAN Devices management of data and information that is device
independent. 
* * * * * * * .
* * * * * * * Parameters: none
GETMAC - Returns the media access control (MAC) Examples:
address and list of network protocols associated with each TELNET - Communicates with a computer running the
address for all network cards in each computer, either telnet server service List
locally or across a network.  Computer wmic computersystem get model
Parameters: [/a] [/e <escapechar>] [/f <filename>] [/l Model
Parameters: [.exe][/s <computer> [/u <domain\<user> [/p
<username>] [/t {vt100 | vt52 | ansi | vtnt}] [<host> List
<password>]]][/fo {table | list | csv}][/nh][/v]
[<port>]] [/?] BIOS wmic bios get smbiosbiosversion
Examples: Version
Examples: List Network
Interfaces & wmic nicconfig get IPAddress,ServiceName
Simple getmac IP Addresses
Simple Telnet telnet clients.us2.code42.com List Installed
Software and wmic product get name,version
Telnet to Versions
Verbose getmac /v
Target on telnet clients.us2.code42.com 443
Port 443

! Denotes Commands with capability of modifying the system


Page 4 of 4

Network Troubleshooting Tools Cheat Sheet


* * * * * * *

! Denotes Commands with capability of modifying the system

You might also like