Alpha Centauri Studies
CoursesFor Institutions

Loading...

Alpha Centauri Studies

CSEC past papers, worked

Past papers worked question by question, and courses built on the CSEC syllabus, for students across the Caribbean.

Serving Caribbean students since 2025

Explore

CoursesAboutContact

Support

PrivacyTermsHelp

Subscribe to Our Newsletter

New papers and courses, when they land.

Connect With Us
© 2026 Alpha Centauri Studies. All rights reserved.
4.6 Configure and verify DHCP client and relay

TutorialLab 1186 min

Lab 118: Configuring DHCP on Router

Lab 118: Configuring DHCP on Router

DHCP stands for Dynamic Host Configuration Protocol. It is a service which allows you to configure TCP/ IP settings such as IP address and subnet mask on the clients (PC, laptop, printer, etc.) automatically. Typically, DHCP is configured on a dedicated server for better performance. The server can be either Windows-based or Linux-based.

To perform this exercise, we will use the following topology.

A small Packet Tracer network for a DHCP lab. A router named Router1, captioned DHCP Router above it, hangs its fa0/0 interface off a 2950T-24 switch named Switch1. Two more devices hang off the same switch: a 2811 router named Router2, connected through its fa0/0 interface, and a PC-PT workstation named PC1. Every link end is green, so all three cables are up. Router1's model number is not shown in the source, because the fa0/0 interface label sits where Packet Tracer would normally print it.

First, add the required devices in Cico Packet Tracer and connect them appropriatley. In the preceding topology, Router1 will act as DHCP server while Router2 and PC1 will act as DCHP clients. Let’s begin the exercise.

  1. On Router1, execute the following commands to configure an IP address.
Router( config)# int fa0/ 0
Router( config-if)# ip add 10.0.0.1 255.0.0.0
Router( config-if)# no shut
  1. Next, create a DHCP pool named DhcpPool1. Use 10.0.0.1 IP address as the default gateway and DNS server. Use 10.0.0.0 255.0.0.0 as network ID.
Router( config)# ip dhcp pool DhcpPool1
Router( dhcp-config)# default-router 10.0.0.1
Router( dhcp-config)# dns-server 10.0.0.1
Router( dhcp-config)# network 10.0.0.0 255.0.0.0
Router( dhcp-config)# exit

By default DHCP server will start to assign IP addresses from the first IP address of the assigned network ID and it will be 10.0.0.1/ 8. However, we have already configured this IP addresses manually on Fa0/ 0 interface of Router1. To avoid the confliction between DHCP assigned and manually assigned IP addresses, you can exclude one or more specific IP addresses or IP ranges from the DHCP pool. DHCP server will not distribute these IP addresses to any of the DHCP client.

  1. The following commands will exclude 10.0.0.0.1 to 10.0.0.100 IP addresses that will not be distributed by DHCP server.
Router( config)# ip dhcp excluded-address 10.0.0.1 10.0.0.100
Router( config)# exit

The CLI tab of a Packet Tracer router window titled Router1, showing the DHCP server configuration. The student creates the pool with ip dhcp pool DhcpPool1, then sets default-router 10.0.0.1, dns-server 10.0.0.1 and network 10.0.0.0 255.0.0.0 inside it. Back in global configuration mode the student reserves the bottom of the range with ip dhcp excluded-address 10.0.0.1 10.0.0.100, then exits and the console reports the configuration was saved. Nothing in this figure is boxed.

  1. On Router2, we will assign an IPv4 address on the Fa0/ 0 interface through the DHCP server. To do this, execute the following commands.
Router( config)# int fa0/ 0
Router( config-if)# ip add dhcp
Router( config-if)# no shut
  1. Wait for a few seconds and then execute the following command to view the IP address on Router2.
Router2# show ip int brief

or

Router2( config)# do show ip int brief

Note: Adding the do command before the show command allows you to execute privilege mode commands from the global configuration mode.

The CLI tab of a Packet Tracer router window titled Router2, which is being made a DHCP client. The student enters int fa0/0, sets ip add dhcp instead of a typed address and brings the interface up with no shut; those three lines are boxed in red. The interface and its line protocol come up. The student then runs do show ip int brief, also boxed in red, and FastEthernet0/0 is listed with IP-Address 10.0.0.101, OK? YES, Method DHCP, Status up, Protocol up; the address and method are boxed in red. The middle of the %LINEPROTO-5-UPDOWN message runs past the right edge of the console window in the source, so the text between FastEthernet0 and the wrapped "o up" cannot be read.

  1. Once you have configured an IP address on Router2, switch to PC1, and try to obtain TCP/ IP settings through the DHCP server. To do so, open the console of PC1, select the Desktop tab. On the available options, click IP Configuration and then select the DHCP radio button.

  2. After a few seconds, DHCP server will assign an IP address from the configured DHCP pool along with a default gateway and DNS server IP addresses.

The IP Configuration window on PC1, reached through the Desktop tab of its Packet Tracer device window. Two red step markers label the figure: 1 points at the Desktop tab and 2 points at the DHCP radio button, which is selected while Static is not. A red boxed message beside the radio buttons reads DHCP request successful. The four address fields below, boxed together in red, are filled in automatically: IP Address 10.0.0.102, Subnet Mask 255.0.0.0, Default Gateway 10.0.0.1 and DNS Server 10.0.0.1.

  1. In the preceding figure, you can see that 10.0.0.102 IP address has been assigned by the DHCP server.

  2. To verify the connectivity between PC1 and Router1, execute the following command at the Command Prompt window.

Ping 10.0.0.1
  1. You should be able to ping successfully, as shown in the following figure.

The Command Prompt window on PC1's Desktop tab in Packet Tracer. It opens with the banner Packet Tracer PC Command Line 1.0, then the student types ping 10.0.0.1. Four replies come back from 10.0.0.1, all bytes=32 TTL=255, with times of 20ms, 11ms, 10ms and 2ms. The statistics report Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), and approximate round trip times of Minimum = 2ms, Maximum = 20ms, Average = 10ms. Nothing in this figure is boxed.

  1. Save the configuration of each device and also save the topology and name is as DHCP Topology.

Source: itexamanswers.net