Scenario

R1 serves two LANs. LAN-A (Gi0/0, 192.168.10.0/24) is small, so R1 hands out its addresses itself. LAN-B (Gi0/1, 192.168.20.0/24) gets its leases from a central DHCP server at 10.3.0.10, behind Gi0/2. The first 20 addresses of LAN-A are reserved for printers and servers, and the clients of LAN-A use the DNS server 192.0.2.53.

Topology

R1

Requirements

  1. 1Addresses 192.168.10.1 to 192.168.10.20 are excluded from leasing
  2. 2A pool for 192.168.10.0/24 exists with the gateway 192.168.10.1
  3. 3The pool hands out the DNS server 192.0.2.53
  4. 4Gi0/1 forwards DHCP requests to the central server 10.3.0.10
  5. 5Gi0/0 has no helper address, because R1 answers there itself

R1 has addresses on every interface but offers no DHCP yet. Type ? for the commands you can use. Start with: enable

R1> show running-config

CCNA lab · about 12 min

DHCP: serve one LAN and relay for another

Create a DHCP pool with excluded addresses, gateway and DNS for one LAN, and forward the requests of a second LAN to a remote DHCP server with a helper address.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

R1 serves two LANs. LAN-A (Gi0/0, 192.168.10.0/24) is small, so R1 hands out its addresses itself. LAN-B (Gi0/1, 192.168.20.0/24) gets its leases from a central DHCP server at 10.3.0.10, behind Gi0/2. The first 20 addresses of LAN-A are reserved for printers and servers, and the clients of LAN-A use the DNS server 192.0.2.53.

About 12 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco router?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one router, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

Why does DHCP need a relay?

DHCP discovery is a broadcast, and routers stop broadcasts at the LAN edge. A relay agent receives the broadcast on the client LAN and forwards it as a unicast to the DHCP server, adding its own address so the server knows which pool to use.

Where do I configure ip helper-address?

On the router interface that faces the clients, the one that receives their broadcasts. The address is the DHCP server's, reachable by a normal route.

Do I need to type service dhcp?

DHCP is on by default on this kind of router, so normally no. Only if it was disabled with no service dhcp do you need to enable it.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.