Module 2: Your Networking Toolkit
This module introduces the tools used to inspect a network connection. There is very little to install because most of what you need already ships with the operating system (OS) on the computer you are using.
The guide has two paths:
- Core reading: Use the tools already on your computer. No virtual machines are required.
- Optional hands-on practice: Install Wireshark or build the isolated NETLAB environment when you want to observe and change network behavior.
In This Module
Section titled “In This Module”- Confirm the networking tools already built into your operating system
- Understand the question each tool answers
- Optionally install Wireshark and take a first capture
- Find the separate instructions for building NETLAB
The Tools You Already Have
Section titled “The Tools You Already Have”Every operating system ships with tools that answer the basic networking questions. The names differ, the questions do not.
| Question | Windows | Linux | macOS |
|---|---|---|---|
| What are my Internet Protocol (IP) settings? | ipconfig /all |
ip addr |
ifconfig |
| How does my machine pick a route? | route print |
ip route |
netstat -rn |
| Who is on my local segment? | arp -a |
ip neigh |
arp -a |
| What is listening or connected? | netstat -ano |
ss -tulpn |
netstat -an |
| What does this name resolve to? | nslookup |
dig |
dig |
| What path does traffic take? | tracert |
traceroute |
traceroute |
| What does this server actually say? | curl |
curl |
curl |
This guide shows Windows commands first, with the others alongside, because most readers are on Windows. Nothing about the concepts changes between them.
A few notes before you start.
dig is not included with Windows. Use nslookup, or Resolve-DnsName in PowerShell, which produces more readable output. Module 10 shows both.
dig is not always installed on Linux either. On Linux Mint and Ubuntu it comes from the dnsutils package, which you can install with sudo apt install dnsutils.
traceroute is not always installed on Linux. On Linux Mint and Ubuntu, install it with sudo apt install traceroute.
ss has replaced netstat on most Linux distributions. If ss is missing, netstat usually still works.
Verify Your Tools
Section titled “Verify Your Tools”Run these three on your own machine. You do not need to understand the output yet.
ipconfig /allnslookup example.comcurl -I https://example.comOn Linux or macOS:
ip addrdig example.comcurl -I https://example.comIf all three produce output rather than a “command not found” error, you are ready.
Install Wireshark
Section titled “Install Wireshark”Wireshark shows you the actual packets your machine sends and receives. Several modules use it to make an abstract exchange concrete.
- Download it from wireshark.org. Use the official site rather than a download portal.
- Run the installer and accept the defaults.
- On Windows, the installer offers to install Npcap. Accept it. Wireshark cannot capture without it.
- On Windows, restart after the install so the capture driver loads.
Your First Capture
Section titled “Your First Capture”- Open Wireshark.
- Double-click your active network interface. The one with a moving line graph beside it is the one carrying traffic.
- Packets start scrolling immediately. That is normal, and it is a lot.
- In the display filter bar at the top, type
dnsand press Enter. - Open a Command Prompt and run
nslookup example.com. - Switch back to Wireshark. New rows appear at the bottom of the list.
- Click the red square to stop the capture.
Each row is one packet, and the Info column at the far right summarizes it in plain language. Your lookup is at the bottom, since Wireshark adds rows as they arrive. Everything above it is background traffic from other programs on your computer.
Look for a pair of rows like these:
Standard query 0x8f3a A www.example.comStandard query response 0x8f3a A www.example.com A 192.0.2.10The first is your question, the second is the answer, and the matching number pairs them. Their Source and Destination columns swap, because your machine asked your Domain Name System (DNS) server and the server replied.
You will probably see more than two rows, which is normal. Module 10 explains what all of them mean.
This capture shows DNS turning a name into an address. The display filter narrows the results to the packets relevant to that exchange.
Optional: Build NETLAB
Section titled “Optional: Build NETLAB”The optional lab provides a safe place to change addresses, routes, services, and firewall rules without disrupting your everyday computer.
It uses:
| System | Role |
|---|---|
| Windows Virtual Machine (WINCLIENT) | Client used for Windows commands and tests |
| Linux Virtual Machine (LINUXBOX) | Linux Mint Xfce virtual desktop used as the other endpoint |
VirtualBox network NETLAB |
Isolated NAT Network using 10.0.20.0/24 |
Follow Building the Optional NETLAB when you want to add the hands-on path. Every exercise that needs these systems is labeled Optional Lab.
Further Learning
Section titled “Further Learning”- Windows Commands reference documents every built-in command in the table above, including the options this guide does not use.
- Wireshark User’s Guide covers capture options, display filters, and interface selection in far more depth than this guide needs.
- Building the Optional NETLAB contains the VirtualBox and operating-system setup steps.
Main Takeaways
Section titled “Main Takeaways”- Operating systems include tools for inspecting addresses, routes, name resolution, connections, and web responses.
- Wireshark displays the packets traveling through a network interface.
- Different tools reveal different parts of network communication, so troubleshooting often requires comparing their results.
Continue to Module 3 to look at what happens inside your own network segment.