When the network is slow or broken, the right tool tells you where. Protocol analyzers capture frames and present them in a human-readable format. Command-line tools — ping, traceroute, nslookup, dig, tcpdump, netstat, ipconfig, ifconfig, arp, and nmap — let you test reachability, map routes, resolve names, capture packets, inspect connections, and discover rogue devices. Hardware tools (cable testers, tone generators, taps, Wi-Fi analyzers, visual fault locators) verify the physical layer directly. The nmap utility is particularly powerful for scanning entire IP ranges, identifying open ports, operating systems, and running services without logging in. This section covers the tools every administrator reaches for first. These notes follow Prof. Messer’s Network+ N10-009 videos: Software Tools, Command Line Tools, Hardware Tools, and Basic Network Device Commands (5.5).
⏱ Video — Software Tools (7:19): 0:02 intro to software tools · 0:23 protocol analyzers and wireshark · 0:58 full packet capture for later analysis · 1:14 nmap network mapper · 2:54 nmap scan example · 3:56 cdp (cisco discovery protocol) · 4:15 lldp (link layer discovery protocol) · 5:44 speed test sites
⏱ Video — Command Line Tools (17:51): 0:02 ping · 1:54 traceroute and tracert · 5:04 icmp filtering · 8:06 nslookup · 8:09 dig · 11:05 tcpdump · 12:39 netstat · 14:53 ipconfig · 15:04 ifconfig and ip · 16:35 arp
⏱ Video — Hardware Tools (8:32): 0:02 tone generator and inductive probe · 2:17 cable tester · 3:40 physical taps · 4:22 port mirroring and span · 5:40 wireless survey tools · 6:13 wi-fi analyzer · 6:39 spectrum analyzer · 7:39 visual fault locator
⏱ Video — Basic Network Device Commands (8:46): 0:02 command line basics across manufacturers · 0:58 show mac address table · 1:49 show route · 2:31 the routing table · 3:33 show interface · 4:23 show interface example · 5:01 show config · 6:32 show arp · 7:16 show vlan · 7:53 show power and poe
Protocol analyzers and Wireshark
- A protocol analyzer captures frames on a wired or wireless network and presents them in a format a human can understand. Capture capability may be built into the device itself — a switch, router, or firewall may let you view output directly or export it for use in a protocol analyzer.
- Wireshark is a standalone protocol analyzer that shows additional protocol decodes and details about entire conversations. Some administrators capture all packets to disk for later analysis — a big data analysis feature that allows storing large amounts of information and quickly sifting through it to find exactly what you are looking for. This is used often in IT security as well as network administration.
nmap (Network Mapper)
- nmap (Network Mapper) finds a great deal of information about open port numbers, operating systems, and the versions of applications on a remote device, all without logging in.
- It can scan a single device (e.g.
nmap 10.1.10.222) and return all open ports. In Messer’s example scan, port 22 (SSH), 80 (HTTP), 443 (HTTPS), 548 (Apple Filing Protocol), and 2049 (NFS) were open. - nmap also identifies the service running on each open port and has an additional scripting engine so you can extend its capability.
- It is an active scan — it sends queries and examines the results to make decisions about ports, operating systems, and services.
- You can scan an entire IP range to build a map of all active devices, their operating systems, and services. This is useful for finding rogue devices that you were not expecting on the network.
- nmap can perform scans on the same subnet with just layer 2, making it very difficult for a rogue device to hide.
CDP and LLDP
- CDP (Cisco Discovery Protocol) is a proprietary Cisco protocol that provides information about a switch’s configuration — IP addresses, port numbers (e.g. Gigabit Ethernet 2), software version, native VLAN, and hardware-level interface configuration — without logging into the device.
- LLDP (Link Layer Discovery Protocol) is a vendor-neutral alternative that almost all switches support at a minimum. It shows similar information: MAC address of the interface, port type, device name, and VLAN ID.
- In Messer’s example decode, a Cisco switch named “Studio-328” sends CDP version 2 packets showing IP address 10.1.10.251 on port Gigabit Ethernet 2, and LLDP shows the same interface running on VLAN 10.
- Many third-party applications use these protocols to present information in a consolidated form without logging into each device individually.
Speed test sites
- To test available bandwidth on an internet link, you send a large amount of information across the link and measure how long it took — both in download and upload directions.
- Useful to perform before and after a configuration change, and at different times of the day (more bandwidth is usually available during off-hours).
- Results vary by site: some are located farther away and may give different values. The most accurate speed test sites are often those provided by your local ISP (Internet Service Provider) — e.g. Xfinity or AT&T speed tests. Third-party choices include fast.com, speedof.me, speedtest.net, and testmy.net.
Command-line tools at a glance
| Tool | Platform | Purpose |
|---|---|---|
| ping | All | Test reachability using ICMP (Internet Control Message |
| Protocol); sends 64-byte packets and reports response time, TTL, and | ||
| sequence numbers | ||
| traceroute / tracert | Linux/Mac / Windows | Map the path of |
| routers between source and destination using ICMP TTL-exceeded messages | ||
| nslookup | All | Query a DNS (Domain Name System) server for name |
| resolution; deprecated in favour of dig | ||
| dig | Linux/Mac (Windows w/ BIND) | Query a DNS server for A records, |
| canonical names, cache timers, text records, and more | ||
| tcpdump | Linux/Mac | Capture packets at the command line; save in |
| pcap (packet capture) format for analysis in Wireshark | ||
| netstat | All | Show active network connections — protocol, local and |
remote IP:port, connection state; -b shows the executable (Windows), -n | ||
| skips name resolution | ||
| ipconfig | Windows | Display IP address, subnet mask, default gateway; |
/all adds MAC address, DHCP details, DNS servers | ||
| ifconfig | Linux/Mac | Display per-adapter IP address, MAC address, |
| and configuration | ||
| ip address | Linux | Newer replacement for ifconfig; shows similar |
| adapter-level IP information | ||
| arp -a | All | Display the local ARP (Address Resolution Protocol) |
| cache — IP-to-MAC address mappings on the local subnet |
ping and traceroute in depth
- ping uses ICMP (Internet Control Message Protocol) to query a device and get a response. Output shows 64 bytes sent and received, sequence numbers, TTL (Time to Live), and round-trip time. Timeout messages indicate the device is not reachable. Ctrl+C stops continuous ping and shows a statistics summary.
- traceroute (Linux/Mac) / tracert (Windows) uses ICMP TTL-exceeded error messages. It starts with TTL=1 (the first router decrements it to 0 and sends back “TTL exceeded”), then TTL=2, and so on, mapping every router hop. Each test runs three times and shows three response time values per hop.
- ICMP is often filtered by firewalls, so hops may appear as asterisks
(
*) instead of response times. The Windows version uses ICMP echo requests; Linux/Mac versions may allow changing the payload type.
nslookup and dig
- nslookup is included with Windows, Linux, and Mac OS. It is deprecated — dig is preferred going forward.
- dig is included with Linux and Mac OS; an older BIND package for Windows includes a dig executable.
- In Messer’s example, both nslookup and dig queried
www.professormesser.comfrom DNS server 1.1.1.1. Both returned three A-record addresses: 104.22.73.108, 104.22.72.108, and 172.67.41.114. - dig output shows the query type (A record) and the authoritative answers in a structured format.
tcpdump and netstat
- tcpdump captures packets from the command line on Linux and Mac OS. You can capture all packets or filter in real time, and save output to a file in pcap (packet capture) format readable by Wireshark. A Windows equivalent is Windump.
- In Messer’s example tcpdump output, each line is a separate packet — a mix of IPv6 and IPv4 packets including DNS queries to the Google DNS server and Jabber instant-messaging traffic.
- netstat (Network Statistics) shows active connections — who you are
communicating with and who is communicating with you.
netstat -a— all active connectionsnetstat -b(Windows) — shows the executable making the connection (e.g.chrome.exe)netstat -n— shows IP addresses without DNS name resolution
ipconfig, ifconfig, and ip
- ipconfig (Windows) shows IPv6 and IPv4 addresses, subnet mask, and
default gateway.
ipconfig /alladds the device name, node type, MAC address, DHCP details, and configured DNS servers. - ifconfig (Linux/Mac) shows per-interface details: MAC address, IPv6
address, IPv4 address. In Messer’s example, interface
en0showed IP 10.1.10.249. - ip address (two words) is a newer Linux command replacing ifconfig, showing similar adapter-level information.
arp
- arp -a displays the local ARP (Address Resolution Protocol) cache — a list of IP addresses and their corresponding MAC addresses on the local subnet. The command works on Linux, Mac OS, and Windows.
- The cache only stores devices you have recently communicated with.
Pinging a new IP address adds it to the ARP cache, as shown in Messer’s
example where pinging 10.1.10.234 caused it to appear in the subsequent
arp -aoutput.
Hardware tools
Tone generator and inductive probe
- A tone generator puts an analog tone on a wire. An inductive probe listens for that tone without making direct contact — you only need to get the probe close to the cable. This makes it easy to identify a single cable in a large bundle.
- The tone generator can connect through a modular jack, coax connections, a punch-down block, or alligator clips. A flashing light on the generator indicates an analog signal is being sent.
Cable tester
- A cable tester checks continuity from one end of the cable to the other — pin 1 to pin 1, pin 2 to pin 2, etc. It identifies shorts, crossed wires (pin 1 to pin 3), and disconnects.
- These are simple continuity tests — they do not show how much signal the link can support or what cable category it matches. The same tone generator and inductive probe can double as a cable tester: plug the RJ45 connector into the probe and verify pins 1–8 light in order, confirming correct wiring and continuity on all eight connections.
Physical taps and port mirroring
- A physical tap intercepts network traffic and sends a copy to a protocol analysis tool or packet capture device. For a physical tap you break the connection and put the tap in the middle, requiring some downtime. A passive tap is unpowered (common with optical fiber); an active tap needs power to regenerate the signal.
- Port mirroring or SPAN (Switched Port Analyzer) allows a switch to copy data from any interface to a different interface where a protocol analyzer is plugged in. A limitation: the mirror port has limited bandwidth — a 2 Gbps tap (1 Gbps each direction) cannot be fully reflected into a single 1 Gbps analyzer port, so for very high bandwidth use a physical tap is preferred.
Wireless survey tools, Wi-Fi analyzers, and spectrum analyzers
- Wireless survey tools gather information about signal coverage and identify potential interference from other access points. They may be built into the operating system or the access point, or installed as a third-party tool.
- A Wi-Fi analyzer uses specialized hardware to see all 802.11 information in the air. It shows channel strengths, which channels are in use, access points in the area, and potential interference sources.
- A spectrum analyzer (often included in advanced Wi-Fi analyzers) shows an entire range of frequencies and every signal being broadcast, whether 802.11 or not — useful for identifying interference from third-party equipment such as a microwave oven. The signal-to-noise ratio is displayed graphically.
Visual fault locator
- A visual fault locator is like a flashlight designed for optic fiber. You shine light down the fiber; if there is a break (bend or fault), the light leaks out at that point. It may need to be used in a dark room but is very effective at finding fiber faults before installing the patch into the network.
Basic device commands
Every manufacturer has its own CLI flavor, but the commands are very similar — learn one switch and the knowledge transfers to the next. The syntax is close (not identical) and the output shows the same kind of information everywhere.
| Command | What it shows |
|---|---|
show mac address table | MAC addresses learned and the ports they were learned on |
show route | The routing table and how each route was built |
show interface | Link state, speed, duplex, MTU, errors and counters |
show running-config / show config | The configuration currently active in the device |
show arp | The device’s ARP cache: IP ↔ MAC ↔ interface |
show vlan | VLANs on the switch and which interfaces are assigned |
show power | PoE state per interface and the power budget |
show mac address tablelists every MAC address the switch has learned and the port it learned it on — the table used to forward traffic. Useful when traffic seems to be sent out every interface, or when you suspect the table hit its maximum number of entries.show routeshows the routing table. Entries carry a source code: C = connected (directly attached to a router interface), R = learned via RIP (Routing Information Protocol). Each route shows the destination network (e.g.1.0.0.0/8), the next hop (20.20.0.2), and the exit interface (Serial 3/0). Always check for a more specific route — the longer prefix wins.show interfaceshows whether an interface is up, down, or administratively disabled, plus speed, duplex, MTU, and encapsulation type. It is where errors live: CRC (Cyclic Redundancy Check) errors, dropped frames, and input/output error counters — plus overall counts (frames, broadcasts). In Messer’s example,FastEthernet 0/0is up/up at 100 Mbps full duplex on RJ45 media.show running-config(orshow config) prints the configuration currently active in the device; configurations may also be stored on the device’s storage drive. The format is manufacturer-specific. Messer’s router example shows the config size (830 bytes), software version, timestamps, and per-port IP addresses and subnet masks. Change the configuration at the CLI, then view it again to confirm.show arpis the same ARP cache you know from the operating system, but living inside the switch or router: protocol, IP address, hardware (MAC) address, and the interface where the pair was learned.show vlanlists every VLAN on the switch and which interfaces belong to it — including the default VLAN and any interfaces specifically assigned to a different one.show powermonitors the PoE (Power over Ethernet) budget: per interface whether PoE is on or off and how much power the attached device draws. Messer’s switch supports 370 W, uses 40 W, and has 330 W remaining for additional devices.
Where attacks live — mental map (beyond the video)
Not from the video — why these tools matter for security.
- nmap is a double-edged sword: the same open-port, OS, and service discovery that administrators use to find rogue devices is the first tool an attacker runs during reconnaissance.
- ARP cache poisoning (spoofing) exploits the same local ARP table that
arp -adisplays — an attacker sends forged ARP replies to redirect traffic through their machine. - Port mirroring / SPAN is invisible to the target device, which means an attacker who compromises the switch can silently copy all traffic traversing a VLAN.
- Physical taps require physical access — the same quality makes them tamper-evident but also means an attacker with access to the wiring closet can install their own tap undetected.
- A Wi-Fi analyzer that shows all access points in range also lets an attacker identify weak encryption, hidden SSIDs, and rogue access points set up for evil twin attacks.
- tcpdump captures plain-text protocols (HTTP, FTP, Telnet) in the clear — anyone with access to the capture file or the span port sees credentials and payloads.
show running-confighands over the device’s complete configuration — interface addressing and often more. CLI read access is as sensitive as admin access; treat who can runshowcommands as a security decision, not a convenience.