0% found this document useful (0 votes)
49 views4 pages

CN 3.2 - Alasso

The document describes configuring a DHCP server using Packet Tracer to understand how DHCP works. It involves building a network topology with a router and PCs. The router's fa0/0 interface is configured as the default gateway for the LAN. A DHCP pool is configured on the router to assign IP addresses to hosts from 192.168.1.0/24. The DHCP server is also configured to provide the default gateway and DNS server. Finally, DHCP is enabled on the PCs to obtain IP addresses, gateway and DNS from the DHCP server.

Uploaded by

Rohan Das
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)
49 views4 pages

CN 3.2 - Alasso

The document describes configuring a DHCP server using Packet Tracer to understand how DHCP works. It involves building a network topology with a router and PCs. The router's fa0/0 interface is configured as the default gateway for the LAN. A DHCP pool is configured on the router to assign IP addresses to hosts from 192.168.1.0/24. The DHCP server is also configured to provide the default gateway and DNS server. Finally, DHCP is enabled on the PCs to obtain IP addresses, gateway and DNS from the DHCP server.

Uploaded by

Rohan Das
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

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING


WORKSHEET 3.2

Student Name: Rohan Das UID: 21BCS7310


Branch: CSE Section/Group:717-A
Semester: 4th Date of Performance: 14.4.23
Subject Name: Computer Networks Subject Code:21CSH-256

1. Aim: Configure DHCP server using Packet Tracer.

2. Objective: To Understand how DHCP works.

3. S/W Requirement: - Packet Tracer or NS2

4. H/W Requirement: -

• Processor – Any suitable Processor e.g. Celeron


• Main Memory - 128 MB RAM
• Hard Disk – minimum 20 GB IDE Hard Disk
• Removable Drives–1.44 MB Floppy Disk Drive
–52X IDE CD-ROM Drive
• PS/2 HCL Keyboard and Mouse

5. Method: -

1. Build the network topology.

2. On the router, configure interface fa0/0 to act as the default gateway for our LAN.

Router>enable
Router#config terminal
Router(config)#int fa0/0
Router(config-if)#ip add [Link] [Link]
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

Router(config-if)#no shutdown
Router(config-if)#exit

3. Configure DHCP server on the Router. In the server we will define a DHCP pool of IP
addressesto be assigned to hosts, a Default gateway for the LAN and a DNS Server.

Router(config)#
Router(config)#ip dhcp pool MY_LAN
Router(dhcp-config)#network [Link] [Link]
Router(dhcp-config)#default-router [Link]
Router(dhcp-config)#dns-server [Link]

We can add ip dhcp excluded-address command to our configuration so as to configure


the router to exclude addresses [Link] through [Link] when assigning
addresses to clients. The ip dhcp excluded-address command may be used to reserve
addresses that are statically assigned to key hosts.

So add the above command under the global configuration mode.

Router(config)#ip dhcp excluded-address [Link] [Link]

4. Now go to every PC and on their IP configuration tabs, enable DHCP. Every PC


should beable to obtain an IP address, default gateway and DNS server, as defined in
step 2.

For example, to enable DHCP on PC1:

Click PC1->Desktop->IP configuration. Then enable DHCP.


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

RESULT: Understood the concept of DHCP.

You might also like