0% found this document useful (0 votes)
22 views5 pages

24101C2006_EXPERIMENT_5

The document outlines the Dynamic Host Configuration Protocol (DHCP), which automates IP address assignment in networks, enhancing management and preventing conflicts. It details the steps to configure DHCP on a Cisco router, including network setup, router configuration, and testing the DHCP setup. The document emphasizes the importance of DHCP in providing essential network settings for seamless device communication.

Uploaded by

padhishruti28
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views5 pages

24101C2006_EXPERIMENT_5

The document outlines the Dynamic Host Configuration Protocol (DHCP), which automates IP address assignment in networks, enhancing management and preventing conflicts. It details the steps to configure DHCP on a Cisco router, including network setup, router configuration, and testing the DHCP setup. The document emphasizes the importance of DHCP in providing essential network settings for seamless device communication.

Uploaded by

padhishruti28
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

EXPERIMENT 5

Name:Hassaan Tole
Rollno:24101C2006
Branch:INFT

What is DHCP Protocol?


- Dynamic Host Configuration Protocol (DHCP) is a network management protocol that automatically
assigns IP addresses to devices on a network. DHCP can be used on small local networks and large
enterprise networks.

What is the use of DHCP Protocol?


- DHCP simplifies network management by dynamically assigning and recycling IP addresses, reducing
manual configuration, preventing IP conflicts, and ensuring efficient use of available IP addresses. It also
provides devices with essential network settings like subnet mask, default gateway, and DNS servers,
enabling seamless communication within the network.

Network Diagram:

Steps to Configure DHCP on a Cisco Router:

1. Set Up the Network Topology

Take one Cisco router and configure it as a DHCP server.


Connect two switches to the router.
Connect three client PCs to each switch.
Assign IP addresses to the router’s interfaces:
FastEthernet 0/0 → 192.168.1.1
FastEthernet 0/1 → 192.168.2.1

2. Configure the Router


Open the CLI (Command Line Interface) of the router.
Enter configuration mode:
enable
configure terminal

Assign a name to the router (optional):


hostname DHCP_Server

Assign IP addresses to the interfaces:

interface FastEthernet 0/0


ip address 192.168.1.1 255.255.255.0
no shutdown
exit

interface FastEthernet 0/1


ip address 192.168.2.1 255.255.255.0
no shutdown
exit

Verify assigned IPs:


do show ip interface brief

3. Configure DHCP on the Router

Exclude the router’s own IP addresses so they are not assigned to clients:

ip dhcp excluded-address 192.168.1.1


ip dhcp excluded-address 192.168.2.1

Create a DHCP Pool for Network 1 (192.168.1.x):

ip dhcp pool Network1


network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
exit

Create a DHCP Pool for Network 2 (192.168.2.x):

ip dhcp pool Network2


network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 8.8.8.8
exit

4. Test DHCP Configuration

Go to any PC:
Open Desktop > IP Configuration.
Select DHCP.
The PC should receive an IP address from the router.

Verify connectivity by pinging another PC:


ping 192.168.1.2

If the reply is successful, DHCP is working correctly.


To check the DHCP configuration on the router:

show run | section dhcp


Now your router is successfully configured as a DHCP server, and your client devices should receive IPs
automatically!

DHCP Ip configuration:
Packet Transfer Output:​

Real Time Packet Transfer Output:

Message Transfer between Pc’s using Ping:

You might also like