COMPUTER NETWORKS LAB
A Pratibha Meghana
3/4 IT(B)
319126511067
AIM:
To configure the router using DHCP protocol.
Description:
A switch is a device in a computer network that connects other
devices together. Multiple data cables are plugged into a switch to
enable communication between different networked devices.
Switches manage the flow of data across a network by transmitting a
received network packet only to the one or more devices for which
the packet is intended. Each networked device connected to a switch
can be identified by its network address.
Router:
Routers guide and direct network data, using packets that
contain various kinds of data such as files, communications, and
simple transmissions like web interactions.
The data packets have several layers, or sections, one of which
carries identifying information such as sender, data type, size, and
most importantly, the destination IP (Internet protocol) address. The
router reads this layer, prioritizes the data, and chooses the best
route to use for each transmission.
Procedure:
Open Cisco Packet Tracer Software.
Construct the two LANs using end devices and switch and name
the two LANs as LAN1 and LAN2.
Connect these LANs to the router through straight through
cables.
Now configure the IP address of the end devices through
dynamic method.
a)Click on the end devices
b)Go to the desktop.
c)Then go to Ip configuration and select the DHCP there.
Configure the [Link] the steps below:
1)Click on the router.
2)Go to CLI(Command Line Interface)
3)Type the following commands
The commands are:
En
Config terminal
Ip dhcp pool LAN1
Network [Link] [Link]
Default-router [Link]
Exit
Interface GigabitEthernet0/0
Ip address [Link] [Link]
No shut
Ip dhcp pool LAN2
Network [Link] [Link]
Default-router [Link]
Exit
GigabitEthernet0/1
Ip address [Link] [Link]
No shut
Add the simple PDU(Protocol Data Unit) to the two end devices
in which the message is to be sent from one device to other
device.
Finally run the [Link] will see the message is being
send from source to the [Link] the message is sent
you will see a green colour tick mark on the source
device,which indicates that message has been sent successfully.