Published using Google Docs
DHCP | Day 39 Lab - CCNA study notes Issue 33
Updated automatically every 5 minutes

DHCP | Day 39 Lab - CCNA study notes Issue 33

Practice configuring DHCP (server, client, and relay agent) in a network using Packet Tracer (Free CCNA | DHCP | Day 39 Lab – Notes)

(Lab prepared by Jeremy McDowell)

Lab instructions:

PC1 and PC2 do not have IP addresses yet. R1’s g0/0 interface also does not have an IP address.

We will configure R2 as a DHCP server, and R1 as a DHCP client on its g0/0 interface. We will also configure R1 as a DHCP relay agent.

1. Configure the following DHCP pools on R2:

POOL1: 192.168.1.0/24 (reserve .1 to .10)

     DNS 8.8.8.8

     Domain: jeremysitlab.com

     Default Gateway: R1

POOL2: 192.168.2.0/24 (reserve .1 to .10)

     DNS 8.8.8.8

     Domain: jeremysitlab.com

     Default Gateway: R2

POOL3: 203.0.113.0/30 (reserve .1)

>Let’s start by reserving the IP addresses for each pool.

R(config)#ip dhcp excluded-address low-address high address

>Next, let’s configure the pools in turn - shall we? Create a separate DHCP pool for each network that the router is acting as a DHCP server for.

R(config)#ip dhcp pool pool-name

R(dhcp-config)#network ip-address {/prefix-length | subnet mask}

R(dhcp-config)#dns-server ip-address

R(dhcp-config)#domain-name domain-name

R(dhcp-config)#default-router ip-address

POOL1:

Now, POOL2 and POOL3. We checked the running config dhcp section to review the DHCP pools.

Thus we have configured R2 as a DHCP server.

Let’s go to the CLI of PC2 to see if it can get an IP address from R2 (see answers to question 4).

2. Configure R1's G0/0 interface as a DHCP client.

    What IP address did it configure?

To make R1 a DHCP client on its G0/0 interface:

R1(config)#interface g0/0

R1(config-if)#ip address dhcp

As you can see in the CLI output: “Interface GigabitEthernet0/0 assigned DHCP address 203.0.113.2, mask 255.255.255.252, hostname R1”.

3. Configure R1 as a DHCP relay agent for the 192.168.1.0/24 subnet.

 

R1(config)#interface g0/1

R1(config-if)#ip helper-address 203.0.113.1

4. Use the CLI of PC1 and PC2 to make them request an IP address

    from their DHCP server.

Let’s see if PC1 can get an address from R2, the DHCP server, via R1, the DHCP relay agent.

Let’s go to the CLI of PC2 to see if it can get an IP address from R2.

Source:

Free CCNA | DHCP | Day 39 Lab | CCNA 200-301 Complete Course

https://www.youtube.com/watch?v=cgMsoIQB9Wk&list=PLxbwE86jKRgMpuZuLBivzlM8s2Dk5lXBQ&index=76