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
Requirements
- 1Addresses 192.168.10.1 to 192.168.10.20 are excluded from leasing
- 2A pool for 192.168.10.0/24 exists with the gateway 192.168.10.1
- 3The pool hands out the DNS server 192.0.2.53
- 4Gi0/1 forwards DHCP requests to the central server 10.3.0.10
- 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.