ipconfig1.5
Shows IP address, subnet mask, and default gateway per adapter. /all adds the MAC (physical) address, DHCP server, lease times, and DNS servers. /release and /renew drop and request a DHCP lease. /flushdns clears the DNS resolver cache; /displaydns shows it.
When to use it: the first check on any network problem. A 169.254.x.x address (APIPA) means the PC did not get a DHCP lease.
ipconfig /all
ipconfig /release
ipconfig /renew
ipconfig /flushdns
ping1.5
Sends ICMP echo requests and reports replies and round-trip time. Windows sends 4 by default. -t pings until you press Ctrl+C, -n sets the count, -a resolves an IP to a hostname, -l sets the packet size.
When to use it: "Can I reach it at all?" Ping 127.0.0.1 to test the local TCP/IP stack, then the gateway, then beyond. Some hosts and firewalls block ICMP, so no reply is not always a dead host.
ping 192.168.1.1
ping -n 10 8.8.8.8
ping -t fileserver01
tracert1.5
Lists every router hop between you and a destination, with three timing samples per hop. -d skips name lookups so it runs faster.
When to use it: ping fails or is slow and you need to see where along the path it stops or slows down. Asterisks (*) mean a hop did not answer in time.
tracert www.comptia.org
tracert -d 8.8.8.8
pathping1.5
Combines tracert and ping. It maps the route, then sends many pings to every hop and reports the packet loss percentage at each one. Expect it to take several minutes.
When to use it: a connection works but drops packets intermittently and you need to find which hop is losing them.
pathping www.comptia.org
netstat1.5admin for -b
Shows active TCP connections and listening ports. -a all connections and listeners, -n numbers instead of names (faster), -o the owning process ID, -b the program name, -r the routing table.
When to use it: finding what is listening on a port, or spotting an unexpected outbound connection from possible malware.
netstat -ano
netstat -b
nslookup1.5
Queries DNS directly. Give it a name to get the IP address back, or add a server to ask a specific resolver. -type=mx (or other record types) looks up mail servers and other records.
When to use it: a site works by IP address but not by name, which points at DNS.
nslookup www.comptia.org
nslookup www.comptia.org 1.1.1.1
nslookup -type=mx comptia.org
net use1.5
Maps, lists, and removes network drive letters. /persistent:yes reconnects the drive at every sign-in; /delete removes a mapping. On its own it lists current mappings.
When to use it: mapping a share from a script, or fixing a drive letter that points at the wrong place.
net use
net use S: \\FS01\Sales /persistent:yes
net use S: /delete