Linux for network engineers lab 6 of 14
DNS and DHCP services on Linux
A Linux box takes over DNS and DHCP for the depot. You run two DHCP scopes, one through a router's relay, serve names with a small DNS server, and learn what `dig`, `getent` and `/etc/hosts` each really tell you.
Run this lab
It needs Lite: its 5 nodes are set to 5 vCPU and 3,072 MB in total. That fits the free demo too.
In your workspace: Shared, then Linux for network engineers guided labs, then 06 - DNS and DHCP services on Linux
- Level
- Intermediate
- Time
- About 70 minutes
- Nodes need
- 5 vCPU, 3,072 MB
- Smallest plan
- Lite
The scenario
The Wakefield depot's old Windows server is being retired, and SVC, a small Linux box, has to take over its two jobs: naming and addressing. It serves the office LAN directly. The warehouse is behind router R1, so its DHCP has to come through a relay. Everything is in the kestrel.lab domain.
| Device | Interface | Address | Role |
|---|---|---|---|
| SVC | eth0 | 10.6.1.10/24 | DNS and DHCP for the office |
| SVC | eth1 | 10.6.9.2/30 | the warehouse scope listens here |
| R1 | Gi0/0, Gi0/1, Gi0/2 | 10.6.1.1/24, 10.6.20.1/24, 10.6.9.1/30 | office, warehouse, link to SVC |
| WS | eth0 | 10.6.1.50/24 | your workstation; also the tracker web server |
| H1 | eth0 | DHCP, reserved 10.6.1.99 | office client |
| H2 | eth0 | DHCP, 10.6.20.100 up | warehouse client |
| Device | Runs | How to log in |
|---|---|---|
| WS | Ubuntu 22.04 desktop container | Its console is a remote desktop: root / eve. Open a terminal there. |
| H1, H2 | Alpine Linux 3.20 | root, no password. |
| R1 | Cisco IOSv 15.9 | The console opens at >; enable has no password. |
| SVC | Alpine Linux 3.16 with iptables and iproute2 | Opens on a menu: press 5, then Enter, for a root shell. |
What you’ll practise
- Serve A and reverse records with a small DNS server
- Run DHCP scopes with options and a reservation
- Read a DHCP exchange and a lease file
- Serve a remote subnet through an IOS relay
- Use dig, getent and the resolver files to tell DNS faults from local overrides
- Point a router at a Linux name server
The tasks
- Start the Linux nodes
- Answer names with dnsd
- Hand out addresses on the LAN
- See the conversation and the lease
- Serve the warehouse through a relay
- Query like an engineer
- Point the router at it
The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.
Topology and devices
The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.
Every link, as text
- SVC
eth0to LAN (network) - R1
Gi0/0to LAN (network) - H1
eth0to LAN (network) - WS
eth0to LAN (network) - SVC
eth1to R1Gi0/2 - R1
Gi0/1to H2eth0
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| WS | EVE-NG GUI server (Docker) | eve-gui-server:latest | 1 vCPU, 1,024 MB |
| H1 | Alpine Linux | clbalpinebase-alpine-base-3-20-3 | 1 vCPU, 512 MB |
| H2 | Alpine Linux | clbalpinebase-alpine-base-3-20-3 | 1 vCPU, 512 MB |
| R1 | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| SVC | Alpine WAN emulator | clbalpinewanem-alpine-3-16-2-wanem | 1 vCPU, 512 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
Linux for network engineers guided labs.Open
06 - DNS and DHCP services on Linuxand start its nodes, then open Lab Tasks for the scenario and the steps.
The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.
More Linux for network engineers labs
All Linux for network engineers labs
Related labs in other courses
CloudLabBox is independent of Cisco, CompTIA, the Linux Foundation and the Linux Professional Institute. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.