0% found this document useful (0 votes)
28 views

CSN205 Assignment 3- DHCPv4

The document outlines the steps for configuring DHCPv4 on routers R1 and R2 in a network topology. It includes instructions for setting up basic device settings, dynamic routing, and configuring R2 as a DHCP server while R1 acts as a DHCP relay agent. Additionally, it emphasizes verifying network connectivity and DHCP services through various commands and checks.

Uploaded by

nisadakash26
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

CSN205 Assignment 3- DHCPv4

The document outlines the steps for configuring DHCPv4 on routers R1 and R2 in a network topology. It includes instructions for setting up basic device settings, dynamic routing, and configuring R2 as a DHCP server while R1 acts as a DHCP relay agent. Additionally, it emphasizes verifying network connectivity and DHCP services through various commands and checks.

Uploaded by

nisadakash26
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Assignment 3: Configuring Basic DHCPv4 on a Router (5%, 5 Marks)

Topology

Addressing Table:

Default
Device Interface IP Address Subnet Mask Gateway

R1 G0/0 192.168.<n>.1 255.255.255.0 N/A


G0/1 192.168. <n+1>.1 255.255.255.0 N/A
S0/0/0 (DCE) 192.168. <n+2>.253 255.255.255.252 N/A
R2 S0/0/0 192.168. <n+2>.254 255.255.255.252 N/A
S0/0/1 (DCE) 209.165. <n+200>.226 255.255.255.224 N/A
ISP S0/0/1 209.165. <n+200>.225 255.255.255.224 N/A
PC-A NIC DHCP DHCP DHCP
PC-B NIC DHCP DHCP DHCP

Replace the <n> digit with your group number. Update this table and all the other
<n+ > IP addresses in this document.

Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure a DHCPv4 Server and a DHCP Relay Agent
Part 1: Build the Network and Configure Basic Device Settings
In Part 1, you will set up the network topology and configure the routers and switches with basic settings, such as
passwords and IP addresses. You will also configure the IP settings for the PCs in the topology.

Step 1: Configure basic settings for each router.


a. Console into the routers and enter global configuration mode.
b. Configure the host names as shown in the topology.
c. Configure the IPv4 addresses on the routers as shown in the topology.
d. Set the DCE serial interfaces with a clock rate of 128000.

Step 2: Configure dynamic, default, and static routing on the routers.


a. Configure RIPv2 for R1.
R1(config)# router rip
R1(config-router)# version 2
R1(config-router)# network 192.168. <n+0>.0
R1(config-router)# network 192.168. <n+1>.0
R1(config-router)# network 192.168. <n+2>.252
R1(config-router)# no auto-summary
b. Configure RIPv2 and a default route to the ISP on R2.
R2(config)# router rip
R2(config-router)# version 2
R2(config-router)# network 192.168. <n+2>.252
R2(config-router)# default-information originate
R2(config-router)# exit
R2(config)# ip route 0.0.0.0 0.0.0.0 209.165. <n+200>.225
c. Configure a summary static route on ISP to reach the networks on the R1 and R2 routers.
ISP(config)# ip route 192.168. <n+0>.0 255.255.255.0 209.165. <n+200>.226

Step 3: Verify network connectivity between the routers.


If any pings between routers fail, correct the errors before proceeding to the next step. Use show ip route and show
ip interface brief to locate possible issues.
Insert screenshots of these two commands from R1 and R2 here [0.5 marks]

Checkpoint: At this point, it is important to verify that the host PCs are configured to use DHCP.

Part 2: Configure a DHCPv4 Server and a DHCP Relay Agent


To automatically assign address information on the network, you will configure R2 as a DHCPv4 server and R1 as a
DHCP relay agent.

Step 1: Configure DHCPv4 server settings on router R2.


On R2, you will configure a DHCP address pool for each of the R1 LANs. Use the pool name R1G0 for the G0/0 LAN
and R1G1 for the G0/1 LAN. You will also configure the addresses to be excluded from the address pools. Best
practice dictates that excluded addresses be configured first, to guarantee that they are not accidentally leased to
other devices. See Appendix A for details.
Exclude the first 9 addresses in each R1 LAN. All other addresses should be available in the DHCP address pool.
Make sure that each DHCP address pool includes a default gateway, the domain ccna-lab.com, a DNS server
(209.165.200.225), and a lease time of 2 days. Note: An example of the required commands is provided in Appendix
A. Test your knowledge by trying to configure DHCP on R1 and R2 without referring to the appendix.
On the lines below, write the commands necessary for configuring DHCP services on router R2, including the DHCP-
excluded addresses and the DHCP address pools.
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
On PC-A or PC-B, open a command prompt and enter the ipconfig /all command. Did either of the host PCs receive
an IP address from the DHCP server? Why?

Insert the screenshot of this command here [0.5 mark]

Step 2: Configure R1 as a DHCP relay agent.


Configure IP helper addresses on R1 to forward all DHCP requests to the R2 DHCP server.
On the lines below, write the commands necessary to configure R1 as a DHCP relay agent for the R1 LANs.
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________

Step 3: Record IP settings for PC-A and PC-B.


On PC-A and PC-B, issue the ipconfig /all command to verify that the PCs have received IP address information
from the DHCP server on R2. Record the IP and MAC address for each PC.
_________________________________________________________________________ [0.5 marks]
Based on the DHCP pool that was configured on R2, what are the first available IP addresses that PC-A and PC-B
can lease?
_________________________________________________________________________ [0.5 marks]

Step 4: Verify DHCP services and address leases on R2.


a. On R2, enter the show ip dhcp binding command to view DHCP address leases.
Insert a screenshot of this command here
Along with the IP addresses that were leased, what other piece of useful client identification information is in the
output?
_______________________________________________________________________ [0.5 mark]
b. On R2, enter the show ip dhcp server statistics command to view the DHCP pool statistics and message
activity.

Insert a screenshot of this command here

How many types of DHCP messages are listed in the output?


__________________________________________________________________ [0.5 marks]
c. On R2, enter the show ip dhcp pool command to view the DHCP pool settings.
In the output of the show ip dhcp pool command, what does the current index refer to?
__________________________________________________________________
Insert a screenshot of this command here [0.5 mark]

d. On R2, enter the show run | section dhcp command to view the DHCP configuration in the running
configuration.
Insert a screenshot of this command here [0.5 marks]
e. On R1, enter the show run | section interface command for interfaces G0/0 and G0/1 to view the DHCP relay
configuration in the running configuration.

Insert a screenshot of this command here [0.5 marks]

Reflection
You are the network manager in a company with fourteen (14) branches distributed in five (5) provinces. What do you
prefer: using DHCP relay agents with a centralized DHCP server, or multiple routers acting as DHCP servers? Justify
your choice [0.5 mark]
_______________________________________________________________________________________
_______________________________________________________________________________________
Appendix A – DHCP Configuration Commands.

Router R1
R1(config)# interface g0/0
R1(config-if)# ip helper-address 192.168. <n+2>.254
R1(config-if)# exit
R1(config-if)# interface g0/1
R1(config-if)# ip helper-address 192.168. <n+2>.254

Router R2
R2(config)# ip dhcp excluded-address 192.168. <n+0>.1 192.168. <n+0>.9
R2(config)# ip dhcp excluded-address 192.168. <n+1>.1 192.168. <n+1>.9
R2(config)# ip dhcp pool R1G1
R2(dhcp-config)# network 192.168. <n+1>.0 255.255.255.0
R2(dhcp-config)# default-router 192.168. <n+1>.1
R2(dhcp-config)# dns-server 209.165. <n+200>.225
R2(dhcp-config)# domain-name ccna-lab.com
R2(dhcp-config)# lease 2
R2(dhcp-config)# exit
R2(config)# ip dhcp pool R1G0
R2(dhcp-config)# network 192.168. <n+0>.0 255.255.255.0
R2(dhcp-config)# default-router 192.168. <n+0>.1
R2(dhcp-config)# dns-server 209.165. <n+200>.225
R2(dhcp-config)# domain-name ccna-lab.com
R2(dhcp-config)# lease 2

You might also like