CCNA lab 24 of 46

DHCPv4 server and relay with a router as a DHCP client

Run DHCP for three LANs from one head-office router: build pools with exclusions, relay requests from a branch router, see how the server picks the right pool, and make the edge router take its own Internet address from the provider by DHCP.

Run this lab

It needs Lite: its 6 nodes are set to 6 vCPU and 5,632 MB in total. That fits the free demo too.

In your workspace: Shared, then CCNA 200-301 guided labs, then 24 - DHCPv4 server and relay with a router as a DHCP client

Try it free for 30 minutesRun it on Lite from £3 a day

The free demo needs no card and no email. Every lab plan includes every guided lab.

Level
Intermediate
Time
About 55 minutes
Nodes need
6 vCPU, 5,632 MB
Smallest plan
Lite

The scenario

Lynwood Veterinary has a head office (R1) and a branch (R2) with two LANs: staff and a guest Wi-Fi network. The IT contractor wants a single DHCP server for everything, so all scopes live on R1, and the branch router relays its clients' requests across the WAN. At the same time, the new Internet line from the ISP hands R1 its public address by DHCP.

DeviceInterfaceAddress
R1Gi0/1 HQ LAN10.24.1.1/24 (PC1 by DHCP)
R1Gi0/0 WAN10.0.12.1/30
R1Gi0/2 InternetDHCP from the ISP (203.0.113.0/29)
R2Gi0/0 WAN10.0.12.2/30
R2Gi0/1 branch staff10.24.2.1/24 (PC2 by DHCP)
R2Gi0/2 branch guest10.24.3.1/24 (H1 by DHCP)
ISPGi0/0 / Lo0203.0.113.1/29 / 198.51.100.1 (Internet server)

R1 already routes 10.24.2.0/23 (both branch LANs) to R2, and R2 has a default route to R1.

What you’ll practise

  • Explain DORA, the ports DHCP uses and what a lease contains
  • Configure DHCP pools with exclusions, gateways, DNS servers, domain names and lease times
  • Configure a DHCP relay agent and explain how giaddr selects the pool
  • Configure a router interface as a DHCP client and recognise the DHCP-learned default route
  • Verify and troubleshoot DHCP from the server and from Windows, macOS and Linux clients

The tasks

  1. Understand DORA
  2. Build the head-office pool
  3. Add the branch pools
  4. Relay the branch requests
  5. Make R1 a DHCP client of the ISP
  6. Verify from the server's side
  7. Read the client side on three systems

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.

Topology of DHCPv4 server and relay with a router as a DHCP client6 nodes, 5 links. Every link is listed as text below the diagram.R1R2ISPPC1PC2H1Gi0/2Gi0/0Gi0/1eth0Gi0/2eth0Gi0/1eth0Gi0/0Gi0/0
6 nodes, with the interface names each link uses. On a narrow screen, scroll the diagram sideways.
Nodes in DHCPv4 server and relay with a router as a DHCP client, with the image each runs and the vCPU and RAM it’s set to
NodeDeviceImage in Add NodeSet to
R1Cisco IOSvvios-adventerprisek9-m.SPA.159-3.M61 vCPU, 1,024 MB
R2Cisco IOSvvios-adventerprisek9-m.SPA.159-3.M61 vCPU, 1,024 MB
ISPCisco IOSvvios-adventerprisek9-m.SPA.159-3.M61 vCPU, 1,024 MB
PC1VPCS hostBuilt in to EVE-NGCounted as 1 vCPU, 1,024 MB
PC2VPCS hostBuilt in to EVE-NGCounted as 1 vCPU, 1,024 MB
H1Alpine Linuxclbalpinebase-alpine-base-3-20-31 vCPU, 512 MB

How to open this lab

  1. Sign in to your workspace at lab.cloudlabbox.com.

  2. In File Manager, open Shared, then the folder CCNA 200-301 guided labs.

  3. Open 24 - DHCPv4 server and relay with a router as a DHCP client and 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 CCNA labs

All CCNA labs

Related labs in other courses

CloudLabBox is independent of Cisco. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.