Packet Flipper
Commands and Resources

Commands and Resources

1. Operating System Commands

These are the core utilities executed from a workstation terminal (Windows Command Prompt/PowerShell or Linux/macOS bash) to troubleshoot network layer settings, local resolution, or path metrics.

CommandUsage ExampleExplanation / Exam Purpose
pingping 192.168.1.1Uses ICMP Echo Requests to verify basic Layer 3 reachability to a remote host and reports round-trip latency.
traceroute (Linux) / tracert (Windows)tracert 8.8.8.8Identifies the hop-by-hop path to a destination by incrementing the packet’s TTL (Time-To-Live) counter to locate latency or packet drops along a route.
ipconfig (Windows)ipconfig /allDisplays local interface settings (IP, Subnet Mask, Default Gateway, DNS, MAC). Flags like /release and /renew request new DHCP leases; /flushdns clears local DNS cache.
ifconfig (Linux/Unix)ifconfig eth0Legacy Linux tool to view or temporarily configure network interface settings, flags, and basic error counters.
ip (Linux)ip addr show
ip route
Modern Linux utility that replaces ifconfig. Used to view or modify IP addresses, interfaces (ip link), and the local routing table (ip route).
nslookupnslookup example.comCross-platform utility to test DNS name resolution and query specific record types (e.g., nslookup -type=mx example.com).
dig (Linux/Unix)dig example.com MXDomain Information Groper. Modern Linux DNS lookup tool returning highly detailed text outputs, query flags, and exact TTLs.
arparp -aDisplays or manipulates the operating system’s local Layer 2-to-Layer 3 address translation cache (mapping IP addresses to physical MAC addresses).
netstatnetstat -anDisplays active network connections, listening ports, interface statistics, and the local system routing table (netstat -r).
ss (Linux)ss -tulpnSocket Statistics. Modern Linux replacement for netstat that provides faster, more detailed dumps of active network sockets and processes.
tcpdump (Linux/Unix)tcpdump -i eth0 port 80Command-line packet capture utility that sniffs raw network traffic passing through an interface and outputs or saves it as a .pcap file.
nmapnmap -sS -p 1-1024 10.0.0.1Network Mapper. Security auditing tool used for port scanning, discovering active network hosts, operating system fingerprinting, and service detection.
pathping (Windows)pathping 8.8.8.8Combines ping and tracert. Measures packet loss percentages on individual intermediate router hops over a set period.
mtr (Linux)mtr 8.8.8.8My TraceRoute. Combines ping and traceroute into a real-time, continuously updating terminal output to diagnose intermittent path loss.
routeroute print (Windows)
route -n (Linux)
Displays or manually edits (adds/deletes) static routes in the local host’s internal routing table.
hostnamehostnamePrints the exact computer or host name currently assigned to the local operating system session.
iperf / iperf3iperf3 -c 192.168.1.50Command-line speed testing utility used to measure real-world network throughput capacity, jitter, and packet loss between a client and server.

2. Switch & Router CLI Commands (Network Devices)

CompTIA tests these Cisco IOS-style syntax commands to verify switch states, VLAN assignments, route paths, and physical interface metrics.

CommandUsage ExampleExplanation / Exam Purpose
show mac-address-tableshow mac-address-tableDisplays the switch’s Layer 2 forwarding database, mapping physical MAC addresses to specific switch ports and VLANs.
show interfaceshow interface gig0/1Reports the operational state (line/protocol up or down), duplex, speed, and real-time physical error counters (CRC errors, runts, giants, drops).
show ip route / show routeshow ip routeDisplays the active Layer 3 routing table on a router or Layer 3 switch, showing directly connected networks, static routes, and dynamic protocols (OSPF, BGP).
show running-configshow running-configPrints the current active configuration file running in volatile RAM memory.
show startup-configshow startup-configPrints the saved configuration file stored in Non-Volatile RAM (NVRAM) that loads when the device reboots.
show vlan / show vlan briefshow vlan briefLists all configured VLAN IDs, their administrative names, and which switch ports are currently assigned to each VLAN.
show cdp neighborsshow cdp neighborsCisco Discovery Protocol. Displays directly connected adjacent Cisco devices, showing their device IDs, local/remote interfaces, and hardware platforms.
show lldp neighborsshow lldp neighborsLink Layer Discovery Protocol. IEEE vendor-neutral discovery protocol that displays details of adjacent connected network equipment.
show arpshow arpDisplays the Layer 3-to-Layer 2 mapping database cached on a router or Layer 3 switch interface.
show power inline / show powershow power inlineDisplays the status of Power over Ethernet (PoE) ports, including total wattage budget, used wattage, and per-port allocation status.
show ip interface briefshow ip interface briefSummary view of all router interfaces showing assigned IP addresses, Layer 1 status, and Layer 2 line protocol status at a glance.
show port-securityshow port-security interface g0/1Displays the status of switch port security features (configured MAC limits, sticky MACs, and violation actions like shutdown).
show spanning-treeshow spanning-tree vlan 10Displays Spanning Tree Protocol (STP) parameters, including the Root Bridge ID, local bridge priority, and individual port states (Forwarding, Blocking).

Exam Tip: Pay close attention to operating system differences in scenario questions. For instance, Windows uses tracert and ipconfig, while Linux uses traceroute and ip (or ifconfig). CompTIA often uses command options as distractors in multiple-choice options.

Resources
Practice Test: https://www.examcompass.com/comptia/network-plus-certification/free-network-plus-practice-tests
Subnetting Calculator: https://richtechguy.com/subnetting-practice-tool/