Networking › Module 6 › Lesson 4
Lab — Explore Your Local Network
Inventory links, addresses, neighbors, listeners, and routes on your own machine
Opening
The LAN picture that is always in scope
MAC, ARP, and DHCP click when you read live output from the host you are allowed to touch. This lab is an inventory of YOUR machine: links, addresses, neighbors you already learned, listening sockets, and routes. It is not a discovery sweep of the building, café, or dorm hallway. No nmap. No ping of the /24. No ARP scan of strangers. Notes go under $HOME/cyberlium-lab and chmod 600. Linux commands below; Windows equivalents are fine on a PC you own. Documented home-lab VMs you administer are OK. Permission is the first packet — and this lab sends none at other people's hosts.
1. What each command is allowed to prove
ip link: iface names, UP/DOWN, link/ether MAC — Layer 2 labels on this box. ip addr: inet CIDR, lo vs real NIC — the DHCP (or static) result. ip neigh: ARP/ND cache this kernel already has — including the gateway MAC if it was resolved. Empty-ish on a quiet VM is possible; do not fill it by scanning. ip route: default via and iface — the DHCP router option in practice. ss -tuln: TCP/UDP LISTEN on THIS host — 127.0.0.1 vs 0.0.0.0, the same honesty check as Topic 2. Together they answer: what doors exist, what addresses they hold, whom we think the gateway is at Layer 2, how we leave, and what we offer if a packet arrives. They do not answer "who else is on the Wi-Fi." That question is how unauthorized recon starts.
Defenders inventory themselves first because bind address and default route explain more real incidents than a pretty neighbor table. A service on 0.0.0.0:3000 on a laptop that later joins café Wi-Fi is an exposure story. Home NAT does not travel with you. Recording that bind now — on your machine — is the defensive win. Sweeping strangers' phones on the same SSID is not a learning goal and is out of scope forever in Cyberlium.
2. Neighbors without hunting
ip neigh shows what this kernel already resolved. If the table is sparse, write NONE for gateway MAC and move on — or, if your policy allows, ping YOUR default via once so ARP populates that single entry. One ping to the router you already use is not a /24 sweep. Mass ping, arp-scan, and nmap -sn are different animals: they actively discover other hosts. This lab forbids them. Sparse output is still a valid lab result. Pretty screenshots are not a reason to leave scope.
Home-lab honesty check: a VirtualBox/VMware guest you created, a WSL instance on your PC, or a Raspberry Pi you administer in your house is in scope. A stranger's laptop on the same coffee-shop SSID is not. If you cannot name the owner and the permission, you do not inventory that host. Cyberlium never asks you to map café tables, dorm floors, or "everyone on my Wi-Fi." Defensive LAN literacy starts and ends with machines you control.
3. Wrong vs right: inventory vs sweep
Worked failure mode — scope. The classroom is this operating system — localhost, your home lab, documented VMs you own.
Wrong
You nmap -sn the LAN, arp-scan the /24, or ping 192.168.1.1–254 "to populate ip neigh for the screenshot." You treat café or dorm Wi-Fi as free targets. You paste lan-inventory.txt to a public gist. You change MACs, flood CAM, or start a DHCP daemon because the lab mentioned those words.
Right
ip link, ip addr, ip neigh, ip route, ss -tuln on your VM/WSL/home PC. Optional: one ping to YOUR default via only if neigh needs that single MAC. Save under $HOME/cyberlium-lab, chmod 600. Record MAC vs IP, one neighbor (ideally the gateway), default via, two listeners. Stop. No sweep, no nmap, no poison, no rogue DHCP, no neighbor hunting.
4. Hands-on: five reads, one notes file
Stay in your home directory for the notes file. These commands read kernel state; they should not reconfigure interfaces. If ip neigh is sparse, write that down — do not hunt other hosts to make the table prettier. Windows: ipconfig /all, arp -a, route print, netstat -ano — same mission, same scope, same private notes folder. Fill MAC, CIDR, default via, gateway MAC or NONE, and two LISTEN binds. That is the whole deliverable — not a network map of strangers.
Command guide
Own-machine LAN inventory — notes at 600
Command — copy this
mkdir -p "$HOME/cyberlium-lab" NOTES="$HOME/cyberlium-lab/lan-inventory.txt"
Command — copy this
{
echo '=== Cyberlium LAN inventory (THIS host only) ==='
echo "date: $(date -Is 2>/dev/null || date)"
echo "scope: own machine / home lab / documented lab VMs — NEVER café sweep"
echoCommand — copy this
echo '--- ip link ---' ip link echo
Command — copy this
echo '--- ip addr ---' ip addr echo
Command — copy this
echo '--- ip neigh ---' ip neigh echo
Command — copy this
echo '--- ip route ---' ip route echo
Command — copy this
echo '--- ss -tuln ---' ss -tuln echo
Command — copy this
echo '--- fill in ---' echo 'non-lo MAC (link/ether):' echo 'non-lo inet CIDR:' echo 'default via (gateway IP):' echo 'gateway MAC from ip neigh (or NONE):' echo 'two LISTEN ports and bind (127.0.0.1 vs 0.0.0.0):' } > "$NOTES"
Command — copy this
chmod 600 "$NOTES"
nano "$NOTES" # complete the fill-in lines
Optional ONE ping to YOUR default via only (not a /24):
Optional command
GW=$(ip route | awk '/^default/ {print $3; exit}'); [ -n "$GW" ] && ping -c 1 "$GW"Windows (your PC): ipconfig /all ; arp -a ; route print ; netstat -ano Save under Documents\cyberlium-lab — still your machine only.
NEVER: nmap, arp-scan, ping sweep, masscan NEVER: ettercap / arpspoof / rogue dhcpd NEVER: café / dorm / random neighbor discovery NEVER: rm -rf / or chmod 777 /
Mission: inventory this host, not the neighborhood
On your own machine (or a documented home-lab VM you administer), run ip link, ip addr, ip neigh, ip route, and ss -tuln. Save output plus fill-in lines in $HOME/cyberlium-lab (e.g. lan-inventory.txt) and chmod 600. Include: your iface MAC and IP, at least one neighbor MAC/IP if present (gateway counts), default via, two listening ports. Do not scan or probe other people's networks — no café, no dorm hallway, no /24 sweep.
Stuck? Ask Cyberlium AI Mentor
If ip neigh is empty, ask Cyberlium AI Mentor for a hint — not an arp-scan of the /24. Try: "Hint only: ip route has a default via but ip neigh has no MAC yet — what may I ping ONCE (that via only) versus what must I never sweep?"
You mapped the only LAN that is always authorized: this host's MACs, addresses, cached neighbors, routes, and listeners — written down, mode 600, no sweep. Sparse neigh tables are acceptable. Unauthorized discovery is not. Keep the notes private. Next — Quiz — Networking Basics Final — APPLY the whole of Topic 3 (OSI through DHCP), then Topic 4: Privacy & Digital Safety.
Knowledge Check
APPLY: This lab asks for ip neigh, not nmap -sn 192.168.1.0/24. Why is that the ethical default?
Multiple choice
Knowledge Check
APPLY: Your notes show ss LISTEN 0.0.0.0:3000 and ip route default via 192.168.1.1. Defender takeaway before you join café Wi-Fi?
Multiple choice
Knowledge Check
APPLY: True or False: Saving ip/ss output under $HOME/cyberlium-lab with mode 600 is appropriate because it can include MAC, CIDR, gateway, and service binds you should not share casually.
True or False