Cyberlium

Linux › Module 4 › Lesson 4

BeginnerModule 4Lesson 4/5

Lab — Network Recon with Linux

Hands-on lab: map your network footprint with Linux networking tools

25 min+24 XP3 quiz
Module progress4 of 5

Opening

Map your own footprint — not the campus Wi-Fi

You can now read ip addr, ping localhost, and list listeners with ss. This lab chains them into one inventory of YOUR machine: interfaces, addresses, a self-ping, and what you are listening on. That inventory is how defenders answer "what is this host?" before they talk about firewalls. It is also how you avoid confusing a VM NIC with a VPN tunnel. You will not scan classmates, the school network, or random public IPs. Scope is your VM, WSL, or spare box — and $HOME/cyberlium-lab for notes.

1. What "footprint" means on a single host

A host footprint for this lab is four facts: (1) which interfaces exist and which are UP, (2) which IPv4/IPv6 addresses they hold, including 127.0.0.1 on lo, (3) whether ICMP echo to yourself works, and (4) which sockets are listening locally. Together they explain why SSH might bind on one address and fail on another, or why a service is "up" but unreachable from outside the VM.

Write the results into $HOME/cyberlium-lab/network-footprint.txt. Notes are evidence practice: timestamp, whoami, command, and a short interpretation. If you only scroll terminal history, you will lose the story when the scrollback dies. Analysts keep artifacts; this lab keeps a tiny artifact under your home directory.

Legal line stays loud: mapping YOUR interfaces is administration. Mapping a neighbor's Wi-Fi clients, sweeping a /24 you do not own, or port-scanning a company "for the portfolio" without written permission is unauthorized access. Skill does not create consent. This lab never needs nmap against anyone else.

2. Mechanics: ip, ping -c, and ss -tuln

ip -br addr (or ip addr) lists interfaces in a scannable form. Look for lo with 127.0.0.1/8, and your primary NIC (eth0, ens33, eth0 in WSL sometimes looks different). Note MAC vs IP: MAC is link-layer identity on the segment; IP is the routable (or private) address. Confusing them produces wrong firewall tickets forever.

ping -c 4 127.0.0.1 proves your own IP stack answers ICMP. If that fails, fix local networking before blaming the internet. ping -c 4 of your primary address (from ip addr) checks that address is alive on the box. Do not flood ping. Do not ping strangers. Continuous ping without -c is a habit to break in labs — always bound it.

ss -tuln lists TCP/UDP sockets that are listening, numeric, without resolving names (faster, clearer). 127.0.0.1 means local-only; 0.0.0.0 means all IPv4 interfaces; [::] is the IPv6 all-interfaces story. A listener on 127.0.0.1:8080 is not the same exposure as 0.0.0.0:8080. Write that distinction into your notes — it is the whole point of reading ss carefully.

3. Interpreting "weird" lab results without panicking

WSL may show different interface names and sometimes limited ICMP behavior depending on version and Windows firewall. A VM NAT NIC often gets 10.x or 192.168.x addresses that are not reachable from the public internet — that is expected. Missing ifconfig is not an outage; prefer ip. Empty ss output can mean nothing is listening, or you need privileges for some sockets — try without sudo first on your own box.

If traceroute or external pings are blocked in your environment, skip them for this lab. The required success criteria are local inventory commands that do not require contacting other people's hosts. Defenders document what they can prove; they do not invent reachability by attacking a firewall they do not own.

Save outputs with redirection: ip -br addr >> network-footprint.txt. Add echo separators and date so the file is readable later. chmod 600 the notes file if you ever paste anything sensitive (you should not need to). Never chmod 777 the lab folder "for convenience."

4. Wrong vs right: inventory vs intrusion

Failure mode — same curiosity, opposite legality. Right stays on your host and your notes folder:

  • Wrong

    Run nmap -p- against the dorm subnet "to practice." Ping-flood the campus gateway. ss is boring so you skip it and scan a random .edu instead. Save results with secrets into a world-writable share. Or disable someone else's NIC "to see what happens." That is not a Cyberlium lab — it is unauthorized interference.

  • Right

    On your VM/WSL only: capture ip -br addr (or ip addr), ping -c 4 127.0.0.1, optionally ping your own primary address, run ss -tuln, and write interpretations into $HOME/cyberlium-lab/network-footprint.txt with date and whoami. Explain one listener bind address (127.0.0.1 vs 0.0.0.0). Stop there. No third-party targets, no privilege games on shared machines.

5. Practical: build the footprint note

Create the lab directory, append command outputs with labels, and read the file back with less or cat. If a command is missing, install it only on a machine you administer (apt install iproute2 is usually already present). Do not chase ifconfig if ip works.

Command guide

Safe local network footprint (your machine only)

YOUR VM / WSL / spare Linux only — do not scan other networks

Command — copy this

mkdir -p "$HOME/cyberlium-lab"
OUT="$HOME/cyberlium-lab/network-footprint.txt"

Command — copy this

{
  echo "=== network footprint ==="
  echo "date: $(date)"
  echo "whoami: $(whoami)"
  echo
  echo "--- ip -br addr ---"
  ip -br addr 2>/dev/null || ip addr
  echo
  echo "--- ping self ---"
  ping -c 4 127.0.0.1
  echo
  echo "--- listeners ---"
  ss -tuln
} > "$OUT"

Command — copy this

less "$OUT"

Optional: chmod 600 "$OUT"

Out of scope for this lab (do NOT run against others): nmap 192.168.1.0/24

Optional command

ping floods, mass traceroute across campus

Mission: one page that explains your host

1) On your own Linux shell, create $HOME/cyberlium-lab/network-footprint.txt with date, whoami, ip address listing, ping -c 4 127.0.0.1, and ss -tuln. 2) Circle (or write) your primary non-loopback IPv4 and one listening socket if any. 3) Write two sentences: what 127.0.0.1 vs 0.0.0.0 means for a listener, and why this lab did not scan the LAN.

Stuck? Ask Cyberlium AI Mentor

If ip or ss looks empty or confusing on WSL/VM, ask Cyberlium AI Mentor for a hint — not a scan plan. Try: "Hint only: I see lo and eth0 — which address is loopback, and what does ss -tuln Local Address 0.0.0.0 mean?" No spoilers; you should still fill your own footprint file.

You now have a repeatable local inventory: interfaces, self-ping, listeners, and a note under cyberlium-lab. That is networking literacy without crossing into unauthorized scanning. Next up — Quiz — Networking Commands — checks whether you can read these outputs under pressure.

Knowledge Check

1

APPLY: Your footprint file shows a process listening on 127.0.0.1:8080. What does that bind mean?

Multiple choice

Knowledge Check

2

APPLY: A classmate says the lab is "too easy" and wants to nmap the whole 10.0.0.0/8 at school for practice. Best response?

Multiple choice

Knowledge Check

3

APPLY: True or False: If ping to 127.0.0.1 works, every service on the machine is reachable from other hosts on the LAN.

True or False

← Previous

Answer all 3 knowledge checks to continue. (0/3 answered)