Skip to content

Practice: Building Your Networking Lab

Module
Building Your Networking Lab
Difficulty
Easy
Updated
Tested on
Ubuntu 24.04.5 LTS Docker lab, netlab 1.0, GNU Bash 5.2.21
On this page

Another learner needs to repeat your experiment. They have the same Ubuntu VM and lab tool, but cannot see your terminal. Save a settings table and notes they can follow to check the starting network, repeat your change, and reset.

Finish Resetting and recording experiments. Use the installed tool inside Ubuntu, with no optional modes turned on. Begin at the VM prompt. If settings remain from the last exercise, reset the lab before filling in your starting table.

Write your notes before opening the solution. Copy terminal text, but never your password.

Reach these five goals:

  1. Your notes explain where the four machines run, what they share, and why they cannot reach your actual home network.
  2. You start the lab and confirm that the machines match the supplied cast.
  3. Your table records interface names, states, IPv4 addresses, IPv6 address lines, and default routes for all four machines.
  4. For one setting change, your notes give your prediction, the command, its output, and what changed.
  5. Your final status shows that the lab has its starting settings again.

Start with netlab up and netlab status at the VM prompt. For each machine, enter its shell, run ip -br address and ip route, then leave with exit. Check the prompt each time. To add a MAC address, use ip address. It is optional here.

For the change, use web this time. Remove its IPv4 address as you did for phone. Use web’s address from your table in the command. Before running it, predict what status will report and which machine should remain unchanged.

Leave web before reading status and resetting from the VM. Save the changed status and the final one. The final status shows that the reset worked. It does not show what you changed before it.

Save a table with one row for each interface other than loopback. Put loopback in a separate note. Then another learner can see that you checked it too. Give the router a row for each network connection. If there is no default route, write that down.

In your notes, write the date, the machine shown in the prompt, the exact command, and your prediction. Copy the status changes you see. Then record the reset and the final status. If a command prints nothing, say so. Do not add a success message of your own.

Explain that the machines share VM files but have separate network settings. Also explain that the VM can download packages. The lab machines cannot use that internet connection.

Hint for collecting the table

Use netlab shell followed by one cast name. The compact address command gives states and IP address lines; the route command gives the default. Read the interface name before copying a value. Do not copy the VM’s own settings into a lab machine’s row.

Hint for the change

The command form is sudo ip address del followed by the address including its prefix, then dev and the interface name. You are removing one setting, not deleting the machine. Status may show another setting changed too.

Compare your table and recovery record

The captured starting readings give this table. Each IPv6 cell shows the address and prefix from that interface’s row.

Machine and interface State IPv4 address IPv6 address Default route via
laptop, eth0 UP 10.77.10.10/24 fe80::77:10ff:fe00:10/64 10.77.10.1
phone, eth0 UP 10.77.10.11/24 fe80::77:10ff:fe00:11/64 10.77.10.1
router, eth0 UP 10.77.10.1/24 fe80::77:10ff:fe00:1/64 None
router, eth1 UP 10.77.20.1/24 fe80::77:20ff:fe00:1/64 None
web, eth0 UP 10.77.20.80/24 fe80::77:20ff:fe00:80/64 10.77.20.1

All four machines also list lo. Their files and installed programs belong to the same Ubuntu VM, while their network settings are separate. There is no route from the lab to the VM’s own network or your real home LAN.

The recorded change runs inside web:

Terminal window
netlab shell web
sudo ip address del 10.77.20.80/24 dev eth0
exit
netlab status

The command prints no success message. Status shows these changes. Other lines are left out:

…
Changed since the start:
web: eth0 address none (start: 10.77.20.80/24)
web: default route none (start: 10.77.20.1)
…

The other machines keep their starting settings. Run netlab reset from the VM, then netlab status. The recorded final status is:

Lab is up. Modes on: none. Fault: none.
MACHINE NETWORK ADDRESS DEFAULT ROUTE COMPARED WITH THE START
laptop home 10.77.10.10/24 10.77.10.1 same
phone home 10.77.10.11/24 10.77.10.1 same
router home, site 10.77.10.1/24 10.77.20.1/24 - same
web site 10.77.20.80/24 10.77.20.1 same
Switch sw-home (home): laptop, phone, router
Switch sw-site (site): router, web
Services: web http 80, web https 443, web http 8080, web ssh 22

Use the date and prediction from your own run. Did you predict that the default route would disappear too? Explain that in your notes. Another learner should be able to see what changed and what the reset put back. Keep the commands in the order you ran them.

1. Why can nothing in the supplied lab reach your home network?

Answer

The lab has no route to the VM’s own network or the internet, and its switches are not connected to your real LAN.

2. Does entering web start another Ubuntu installation?

Answer

No. It enters a lab machine with its own network settings. The machine shares the VM’s files, accounts, and programs.

3. Which prompt should you see before running netlab reset?

Answer

The VM prompt naming rootvolt. Leave the lab machine with exit first.

4. Does seeing lo mean something went wrong?

Answer

No. Loopback is the expected interface for the machine to communicate with itself.

5. Does resetting the lab restore a deleted notes file?

Answer

No. A lab reset puts the network settings back. A VM snapshot takes the whole VM back, including its files.

  • Confirm the starting cast before collecting settings.
  • Write down which machine each reading and change came from.
  • Keep evidence before the change, after it, and after recovery.

Next, Choosing a capture location records traffic from this lab.