0% found this document useful (0 votes)
23 views61 pages

DCN v2.0

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)
23 views61 pages

DCN v2.0

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/ 61

Karachi Institute of Economics & Technology

College of Computing & Information Sciences

Data Communication & Networks


Lab Manual

Compiled by: Junaid Akhter


Karachi Institute of Economics & Technology
College of Computing & Information Sciences

Data Communication & Networks


Lab Manual
Compiled by:
Junaid Akhter

CID: ______________ Semester: ______________


Student ID: ________________________________
Student Name: _____________________________
Instructor Name: ___________________________
KARACHI INSTITUTE OF ECONOMICS & TECHNOLOGY
College of Computing & Information Sciences
Data Communication & Networks Lab Manual

INDEX
Date Particular Lab Instructor Course
Sign Teacher Sign
Lab 1:
Introduction to Cisco Packet Tracer
Lab 2:
Connectivity between devices
Lab 3:
Creating Ethernet Cable
Lab 4:
Basic Router Configurations
Lab 5:
Troubleshooting
Lab 6:
Assigning IPs and TELNET
Lab 7:
Variable Length Subnet Mask
Lab 8:
Dynamic Host Configuration Protocol on Router
Lab 9:
File Transfer Protocol
Lab 10:
DNS and Web Server Configuration
Lab 11:
DNS and Email Server Configuration
Lab 12:
Configure Static routes
Lab 13:
Configure DHCP on a server
Content

......................................................................................................................................................... 1
Lab 1 Introduction to Packet Tracer ................................................................................................... 1
Difference between End & Intermediate devices: .................................................................................... 2
Symbols of Cable Type: ....................................................................................................................... 3
Lab-1 Exercise: .................................................................................................................................... 3
Lab 2 Connectivity between Devices .................................................................................................. 5
Part A: Establish Connectivity between End Devices ................................................................................ 5
Task-1, Drag & Drop .................................................................................................................................. 5
Task-2, Connectivity ............................................................................................................................ 5
Task-3, Checking the Connectivity ...................................................................................................... 5
Part B: Establish Connectivity between a Client & Server ........................................................................ 6
Task –1, Configure Server ................................................................................................................... 6
Task-2, IP Configuration on PC ............................................................................................................ 6
Task- 3, IP in URL ................................................................................................................................. 6
Task- 4, Command Prompt.................................................................................................................. 6
Lab-2 Exercise: ........................................................................................................................................... 7
Lab 3 Ethernet cable .......................................................................................................................... 8
Lab-3 Exercise: ......................................................................................................................................... 12
Lab 4 Router Configuration .............................................................................................................. 13
Part A: Basic Router Configurations ........................................................................................................ 13
Part B: Assigning the IP Addresses to the Intermediary Devices. ........................................................... 16
Task –1, Drag routers ........................................................................................................................ 16
Task –2, Place module ....................................................................................................................... 17
Task –3, Attach cable ........................................................................................................................ 17
Task –4, Router1 IP ........................................................................................................................... 17
Task –5, Router 2 IP........................................................................................................................... 17
Task –6, PING .................................................................................................................................... 18
Lab-4 Exercise: ......................................................................................................................................... 18
Lab 5 Troubleshooting of Devices..................................................................................................... 19
Part A: Troubleshooting connecting same devices Scenario .................................................................. 19
Troubleshooting ................................................................................................................................ 19
Task –1, Design .................................................................................................................................. 20
Task- 2, Identify the problem ............................................................................................................ 20
Part B: Troubleshooting connecting different devices Scenario ............................................................. 21
Task –1, Design .................................................................................................................................. 21
Task –2, Identify the problem between PC0 and Router_Muree ..................................................... 21
Task –3, Identify the problem Server0 and Router_Hunza ............................................................... 21
Lab-5 Exercise: ......................................................................................................................................... 21
Lab 6 IP Assigning and TELNET .......................................................................................................... 22
Part A: Assigning IP Address to the Different Intermediary Devices ................................................ 22
Task –1, Drag a Router & a switch .................................................................................................... 22
Task –2, Router 1CLI .......................................................................................................................... 22
Task –3, Configure the Fast Ethernet Interface ................................................................................ 22
Task –4, PING .................................................................................................................................... 23
Part B: Establishing the TELNET Session between the Intermediary & End Device ................................ 24
TELNET: ............................................................................................................................................. 24
Task –1, Design .................................................................................................................................. 24
Task –2, Assign the password ........................................................................................................... 24
Enable Password ............................................................................................................................... 24
Line Console Password ...................................................................................................................... 25
Line VTY password ............................................................................................................................ 25
Task –3, Router IP.............................................................................................................................. 25
Task –4, IP to PC ................................................................................................................................ 25
Task –5, Verify TELNET ...................................................................................................................... 25
Lab 6 Exercise: ......................................................................................................................................... 26
Lab 7 Variable Length Subnet Mask (VLSM) ....................................................................................... 27
Part A: Use VLSM technique to configure given topology ...................................................................... 27
Variable Length Subnet Mask (VLSM) ............................................................................................... 27
Task1, IP Belongs to which Class ....................................................................................................... 27
Task 2, Requirement ......................................................................................................................... 28
Task 3, Fill the table to satisfy the requirements .............................................................................. 28
Part B: Use VLSM technique & safe Addresses by using the correct prefix length. ................................ 29
Requirement ..................................................................................................................................... 29
Fill the table to satisfy the requirements .......................................................................................... 30
Lab-7 Exercise: ......................................................................................................................................... 30
....................................................................................................................................................... 31
LAB ................................................................................................................................................. 31
Lab 8 Introduction to DHCP.............................................................................................................. 31
Static IP addresses ..................................................................................................................................... 32
Task-1, Router IP ..................................................................................................................................... 32
Task-2, Configuring DHCP ........................................................................................................................ 32
Task-3, PC get automatic IP ..................................................................................................................... 32
Task 4– (Troubleshooting) ....................................................................................................................... 33
Lab-8 Exercise: ......................................................................................................................................... 33
Lab 9 File Transfer Protocol ............................................................................................................. 34
Task- Upload a File to the FTP Server ...................................................................................................... 34
Task 1, IP to Router ................................................................................................................................. 34
Task 2, IP’s on PC & Server ...................................................................................................................... 35
Task 3, Activate Ftp services.................................................................................................................... 35
Task 4, create a text file .......................................................................................................................... 35
Task - Rename and Download the Uploaded File ................................................................................... 37
Lab-9 Exercise: ......................................................................................................................................... 37
Lab 10 DNS (Domain Name Server) and Web Server Configuration ................................................... 38
Domain Name Server ...................................................................................................................... 38
Web Server ..................................................................................................................................... 38
Task 1, IP on Router................................................................................................................................. 38
Task 2, IP on Server & PC......................................................................................................................... 39
Task 3, Web Page Searching by IP ........................................................................................................... 39
Task 4, Address Record entry .................................................................................................................. 39
Task 4, Canonical Name entry ................................................................................................................. 40
Task 5, Web Page Searching by Domain ................................................................................................. 40
Lab-10 Exercise: ....................................................................................................................................... 41
Lab 11 DNS and Email Server Configuration...................................................................................... 42
Email Server .................................................................................................................................... 42
Task 1, IP to Router ................................................................................................................................. 43
Task 2, IP to PC & Server ......................................................................................................................... 43
Task 3, Making of Domain & User ID’s .................................................................................................... 43
Task 4, Users Configuration ..................................................................................................................... 44
Task 5, Sending an Email from Alice ........................................................................................................ 45
Task 6, Receiving an Email on Bob .......................................................................................................... 45
Lab-11 Exercise: ....................................................................................................................................... 46
Lab 12 Configuring Static Route ....................................................................................................... 47
Task-1, Configure IP ................................................................................................................................. 47
Task 2, Configuring Static Route.............................................................................................................. 48
Lab-12 Exercise: ....................................................................................................................................... 49
Lab 13 DHCP Server Configuration ................................................................................................... 50
Task 1, Router IP ...................................................................................................................................... 50
Task 2, IP on DHCP Server ....................................................................................................................... 51
Task 3, DHCP Server ................................................................................................................................ 51
Task 4, Helper Address ............................................................................................................................ 52
Task 5, Dynamic IP’s of PC ....................................................................................................................... 53
Lab-13 Exercise: ....................................................................................................................................... 54
Course Title: Lab-1
Data Communication & Networks Introduction to Packet Tracer

Lab 1: Objective
Introduction to Packet Tracer
Lab 1
Introduction to Packet Tracer

 Packet Tracer is a powerful router simulator created by Cisco Systems. It provides virtual
interfaces to interact with physical environment.
 The purpose of Packet Tracer is to offer students and teachers a tool to learn the
principles of networking as well as develop Cisco Technology specific skills.
 Packet Tracer is a simple Drag & Drop simulator that provides user-friendly
environment.
 One of the biggest advantages of packet tracer is that when implementing a large scale
of network in a physical environment it helps to establish the whole scenario in the
simulator.
 Packet Tracer creates .pkt& .pka Extension when saving files.
 Packet Tracer Include Routers, Switches, Hub, Servers, End Devices, Firewalls, And
Multi user environment support, so one can easily perform a large activity with its
group members or partners on two computers. After completing of an activity both can
merge a single Lab in one activity.

College of Computing & Information Sciences 1


Course Title: Lab-1
Data Communication & Networks Introduction to Packet Tracer

Difference between End & Intermediate devices:


Intermediary devices:
A device that connects directly to end user devices or provides end user routing to other
networks, for instance, a router is an example of intermediary devices Intermediary devices
connect the individual hosts to the network and can connect multiple individual networks to
form an internet-work.
End Devices:
The network devices that people are most familiar with are called end devices. These devices form the
interface between the human network and the underlying communication network.
Some examples of end devices are:
Computers (work stations, laptops, file servers, web servers)
Network printers, VoIP phones, Security cameras, Mobile handheld devices (such as wireless barcode
scanners, PDAs)

Selecting Connection Type


Difference between Twisted Pair & Unshielded Twisted Pair:
Twisted pair: Twisted pair cabling is a type of wiring in which two conductors (the forward and
return conductors of a single circuit) are twisted together for the purposes of canceling out
electromagnetic interference (EMI) from external sources.

College of Computing & Information Sciences 2


Course Title: Lab-1
Data Communication & Networks Introduction to Packet Tracer
UTP: is a four – pair medium used in verity of networks. UTP does not require fixed spacing
connection that is necessary with coaxial type connection. UTP is also finding increasing use in
video applications, primarily in security cameras. Much middle to high-end cameras includes a
UTP output with setscrew terminals. This is made possible by the fact that UTP cable bandwidth
has improved to match the baseband of television signals.

Symbols of Cable Type:

Console Cable (used to connect with a router)

Straight through Cable (Used to Connect Different Devices)

Copper Crossover cable (Used to connect with the same devices)

Fiber (used in WAN environment)

Phone (used in VOIP Phone)

Coaxial cable (used in WAN emulation)

Serial DCE Cable (Used in WAN links where clock rate is required)

Serial DTE Cable (used in WAN link where clock rate is not required)

Lab-1 Exercise:
1- Where do we use End Devices and Why?
________________________________________________________________________
____________________________________________________________________

2- Where do we use Intermediate Devices and Why?


________________________________________________________________________
____________________________________________________________________

3- Name at least 3 examples of each?


____________________________________________ __ _____________________
______________________________________________ _____________________

College of Computing & Information Sciences 3


Course Title: Lab-1
Data Communication & Networks Introduction to Packet Tracer
4- Why we use Cross Cables?
______________________________________________________________________

5- Why we use Straight Cables?


______________________________________________________________________

6- Why we use Remote Access?


______________________________________________________________________

7- Which type of Cable is used for Remote Access?


__________________________________________________ _________________

College of Computing & Information Sciences 4


Course Title: Lab-2
Data Communication & Networks Connectivity Between Devices

Lab 2: Objective:
Part A: Establish Connectivity between End Devices
Part B: Establish Connectivity between a Client & Server

Lab 2
Connectivity between Devices
Part A: Establish Connectivity between End Devices

Figure1: Topology Diagram

Refer to figure 1,

Task-1, Drag & Drop


Drag & Drop All the END devices & Intermediary devices

Task-2, Connectivity
Connect these Devices with Copper Cross over cable

Task-3, Checking the Connectivity


After establishing the connectivity between all the devices check that all devices must be Showing
GREEN signal.

College of Computing & Information Sciences 5


Course Title: Lab-2
Data Communication & Networks Connectivity Between Devices
Part B: Establish Connectivity between a Client & Server

Figure 2: Topology Diagram


Refer to figure 2,

Task –1, Configure Server


Configure Server-Pt with the following

IP address: 192.168.1.254
Subnet Mask: 255.255.255.0
Click on the Server-PT icon Then Select from the Upper menu “Desktop” After selecting the
desktop select “IP CONFIGURATION”. Place the above Address with respect to their names.

Task-2, IP Configuration on PC
Click on the PC-PT icon then select from the upper Menu “Desktop” After selecting desktop,
select IP CONFIGURATION. Place the following address

IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0

Task- 3, IP in URL
Go to the PC-PT icon then select from the upper Menu “Desktop” After selecting desktop, click
on the “WEB BROWSER” place the following IP in the “URL”
192.168.1.254
When you hit enter a message will arrive “Welcome to Packet Tracer”

Task- 4, Command Prompt


Finally Again click on the PC-PT icon then select from the upper Menu “Desktop” After selecting
desktop, click on “Command Prompt” to check the connectivity between the client & server put
the following command in Command Prompt
PC>ping 192.168.1.254

College of Computing & Information Sciences 6


Course Title: Lab-2
Data Communication & Networks Connectivity Between Devices

Figure 3: Command Prompt


This would be your Final Result after completing the whole activity.

Lab-2 Exercise:
Design a network as your teacher will assigned you in the lab

College of Computing & Information Sciences 7


Course Title Lab-3
Data Communication and Networks Creating an Ethernet Cable_

Lab 3: Objective:
Create an Ethernet Cable

Lab 3
Ethernet cable
Ethernet cabling has been standard in networking installation for years. It’s the fastest way of
connecting PCs together – to your router or a central switch. Sure, you could go wireless, but the
truth is that wireless internet is still slow for anything high bandwidth and is particularly
susceptible to interference. A good network cable can go for 100m or more at gigabit speeds.

In this lab, we’ll be discussing how to make a cross-over cable.

First of all, what is Cross-Over Cable?

In an Ethernet networking environment – like in a family home with multiple PCs that are wired
– the computers must all connect to a central router. The router takes all the bits being sent out
by the computers and relays them onto the other devices on the network. However, a crossover
cable can be used to connect two devices directly, without the need for a router in the middle. It
simply reverses some of the pins so that the output on one computer is being sent to the input
of another. In the years before my family had Internet, I used this to play 2-player network games!

This is one use for a cross-over cable; the other is to expand a network by connecting another
network switch, thereby giving you more ports. It’s always handy to have a length of cross-over
cable around!

Why You Probably Don’t Need a Cross-Over Cable

Having explained how a cross-over cable can be used, you ought to know that you probably don’t
need one. Most network devices are now equipped with what’s called “autosensing” or
switchable “uplink” ports. These either use software to automatically detect when a port should
be run in cross-over mode, or give you a physical switch that you can use to enable the mode.

Realistically, you’ll only really need a cross-over cable if you’re dealing with old hardware, or if
you’re wanting to quickly connect two computers in a network-less environment.

College of Computing & Information Sciences 8


Course Title Lab-3
Data Communication and Networks Creating an Ethernet Cable_

(Figure 1)

What you’ll need


Some Ethernet cabling obviously, I’ll be using CAT5 today. Strictly speaking, CAT5e is certified
for true gigabit support, but in practice plain old CAT5 cabling can be used just fine over short
distances as shown in figure 1.

 A crimping tool. This your all-in-one networking tool – specially shaped for pushing down
the pins in the plug and able to strip the shielding off cables, as well as cut.
 2 RJ45 plugs.
 (Optional) 2 plug shields.

The diagram below (figure 2), preferably printed out as a reference,

Figure 2

College of Computing & Information Sciences 9


Course Title Lab-3
Data Communication and Networks Creating an Ethernet Cable_
Making the Cable

Start by threading some shields onto the


cable, it will be easier to do it now rather than
later.

Strip about 1.5cm of cable shielding from both ends – your crimping tool should have a round
area specifically for this task as shown in Figure 3.

Untangle the wires (there should be 4 “twisted pairs”). Arrange them in the order shown on the
sheet from top to bottom; one end should be in arrangement A, the other B. (Figure 4)

College of Computing & Information Sciences 10


Course Title Lab-3
Data Communication and Networks Creating an Ethernet Cable_

When you’ve got the order correct, bunch them together in a line. If you have some that stick up
beyond the others, use the crimping tool to crop them back to a uniform level.

The hardest part is placing these into the RJ45 plug without messing up the order. Hold the plug
with the clip side facing away from you; the gold pins should be facing towards you.

Push the cable right in – the notch at the end of the plug should just be over the cable shielding.
If it isn’t, you stripped too much shielding off, so consider cropping the cables back a little more.

College of Computing & Information Sciences 11


Course Title Lab-3
Data Communication and Networks Creating an Ethernet Cable_

When the wires are sitting tightly in the plug, insert in into the end of your crimping tool and
push down – in theory the crimper is shaped to the exact right size, but in practice I find pushing
too hard can crack the brittle plastic plug.

Repeat for the other end, using diagram B instead.

If you don’t have a cable tester, the easiest way to test is just to plug it in. The status LEDs vary
by device, but typically one will show activity while the other indicates speed.

Lab-3 Exercise:
Design a network as your teacher will assigned you in the lab

College of Computing & Information Sciences 12


Course Title Lab-4
Data Communication and Networks Basic Router Configuration_

Lab 4: Objective:
Part A: Basic Router Configurations
Part B: Assigning the IP Addresses to the Intermediary
Devices.
Lab 4
Router Configuration
Part A: Basic Router Configurations
Cisco 1841 Router

College of Computing & Information Sciences 13


Course Title Lab-4
Data Communication and Networks Basic Router Configuration_

User EXEC Mode:


When you are connected to the router, you are started in user EXEC mode. The user EXEC
commands are a subset of the privileged EXEC commands.
Privileged EXEC Mode:
Privileged commands include the following:
• Configure – Changes the software configuration.
• Debug – Display process and hardware event messages.

• Setup – Enter configuration information at the prompts.


Enter the command disable to exit from the privileged EXEC mode and return to USER EXEC
mode.

Configuration Mode
Configuration mode has a set of sub modes that you use for modifying interface settings, routing
protocol settings, line settings, and so forth. Use caution with configuration mode because all
changes you enter take effect immediately.
To enter configuration mode, enter the command configure terminal and exit by pressing Ctrl-Z.

Note: Almost every configuration command also has a no form. In general, use the no form to
disable a feature or function. Use the command without the keyword no to re-enable a
disabled feature or to enable a feature that is disabled by default.

College of Computing & Information Sciences 14


Course Title Lab-4
Data Communication and Networks Basic Router Configuration_
For example, IP routing is enabled by default. To disable IP routing, enter the no ip routing
command and enter ip routing to re-enable it.
Getting Help
In any command mode, you can get a list of available commands by entering a question mark (?).

Router>
To obtain a list of commands that begin with a particular character sequence, type in those
characters followed immediately by the question mark (?).
Router#co?
Configure connect copy

To list keywords or arguments, enter a question mark in place of a keyword or argument. Include
a space before the question mark.
Router#configure?
Memory (Configure from NV memory)
Network (Configure from a TFTP network host)
Terminal (Configure from the terminal)
You can also abbreviate commands and keywords by entering just enough characters to make
the command unique from other commands. For example, you can abbreviate the show
command to sh.

Configuration Files
Any time you make changes to the router configuration, you must save the changes to memory
because if you do not they will be lost if there is a system reload or power outage. There are
two types of configuration files: the running (current operating) configuration and the startup
configuration.
Following privileged mode commands to work with configuration files.
• Router#configure terminal – modify the running configuration manually from the terminal.

• Router#show running-config – display the running configuration.

• Router#show startup-config – display the startup configuration.


• Router#copy running-config startup-config – copy the running configuration to the startup
configuration.
• Router#copy startup-config running-config – copy the startup configuration to the running
configuration.
• Router#erase startup-config – erase the startup-configuration in NVRAM.
• Router#copytftp running-config – load a configuration file stored on a Trivial File Transfer
Protocol (TFTP) server into the running configuration.
• Router#copy running-config tftp – store the running configuration on a TFTP server.

College of Computing & Information Sciences 15


Course Title Lab-4
Data Communication and Networks Basic Router Configuration_
Part B: Assigning the IP Addresses to the Intermediary Devices.

Figure 1: Topology design

Figure 2: Packet Tracer view

Task –1, Drag routers


Drag two routers in the white area of the packet tracer.

College of Computing & Information Sciences 16


Course Title Lab-4
Data Communication and Networks Basic Router Configuration_
Task –2, Place module
NOTE: First power OFF your router then place a HWIC-2T, then power ON the router. Click each
router and go the Physical Interface as shown in the (figure 2) Click HWIC-2T button, which is
placed in the left side of the Interface, when you click on HWIC-2T button, after clicking the
button drag the following figure in the above-mentioned panel.

HWIC-2T is used when we need to connect two WAN interfaces with each other

Perform the same task with the remaining router.

Task –3, Attach cable


When the HWIC-2T is placed properly in the router the next step is to plug the Serial Cable in
each router.
Note: Serial Cable must be DCE from one End and DTE from another end otherwise router will
not work.

Task –4, Router1 IP


Click on Router 1 Select CLI (command Line interface) Tab & enter the following commands.

--- System Configuration Dialog ---


Continue with configuration dialog? [yes/no]: N
Press RETURN to get started! (Press Enter Key)
Router>enable (Press enter key)
Router#
Router# configure terminal (press Enter)
Enter configuration commands, one per line. End with CNTL/Z.
Router (config)#
Router(config)#interface serial 0/0/0
Router(config-if)#
Router(config-if)#ip address 10.0.0.1 255.255.255.0
Router(config-if)#clock rate 64000----------------------------------(First Router is DCE )
Router(config-if)#no shutdown
Router(config-if)#end

Task –5, Router 2 IP


Click on Router 2 Select CLI (command Line interface) Tab & enter the following commands

--- System Configuration Dialog ---


Continue with configuration dialog? [yes/no]: N
Press RETURN to get started! (Press Enter Key)
Router>enable (Press enter key)
Router#

College of Computing & Information Sciences 17


Course Title Lab-4
Data Communication and Networks Basic Router Configuration_
Router# configure terminal (press Enter)
Enter configuration commands, one per line. End with CNTL/Z.
Router (config)#
Router(config)#interface serial 0/0/0
Router(config-if)#
Router(config-if)#ip address 10.0.0.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#End

Task –6, PING


Finally ping another router. In the end your ping should be 100%
Router#ping 10.0.0.2

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/42/51 ms

Lab-4 Exercise:
Design a network as your teacher will assigned you in the lab.

College of Computing & Information Sciences 18


Course Title Lab-5
Data Communication and Networks Troubleshooting between devices_

Lab-5: Objective:
Part A: Troubleshooting connecting same devices Scenario
Part B: Troubleshooting connecting different devices Scenario

Lab 5
Troubleshooting of Devices
Part A: Troubleshooting connecting same devices Scenario

Troubleshooting
Network troubleshooting is the collective measures and processes used to identify, diagnose
and resolve problems and issues within a computer network.
It is a systematic process that aims to resolve problems and restore normal network operations
within the network.
Network troubleshooting is primarily done by network engineers or administrators to repair or
optimize a network. It is generally done to recover and establish network or Internet
connections on end nodes/devices.
Some of the processes within network troubleshooting include but are not limited to:

 Finding and resolving problems and establishing Internet/network connection of a


computer/device/node
 Configuring a router, switch or any network management device
 Installing cables or Wi-Fi devices
 Updating firmware devices on router switch
 Removing viruses
 Adding, configuring and reinstalling a network printer

Network troubleshooting can be a manual or automated task. When using automated tools,
network management can be done using network diagnostic software.

College of Computing & Information Sciences 19


Course Title Lab-5
Data Communication and Networks Troubleshooting between devices_

Figure 1

Refer to the Figure 1,


PC1 is connected with PC3, and PC2 is connected with PC4. PC1 can communicate with PC3 but
PC2 & PC4 are unable to communicate with each other

Task –1, Design


Design the above topology and show how PC’s are communicating with each other
Task- 2, Identify the problem
Identify the problem and solve it by placing the correct IP & subnet masks.

PC1 IP Address _________________________

PC1 Subnet Mask _______________________

PC3 IP Address _________________________

PC3 Subnet Mask________________________

PC2 IP Address _________________________

PC2 Subnet Mask________________________

PC4 IP Address _________________________

PC4 Subnet Mask________________________

College of Computing & Information Sciences 20


Course Title Lab-5
Data Communication and Networks Troubleshooting between devices_
Part B: Troubleshooting connecting different devices Scenario

Figure 2
Refer to the Figure 2. PC0 is connected to the Router_Muree with a console cable, but it is unable
to Establish TELNET session & indicates Red Signal on PC and a server0 is connected with
Router_Hunza with an Ethernet cable, but still showing Red Signal after giving no shutdown
command on the interface.

Refer to figure 2,

Task –1, Design


Design the above topologies according to the scenario.

Task –2, Identify the problem between PC0 and Router_Muree


Identify the cause, why PC1 is unable to establish the TELNET session with the Router and
indicating the Red Signal in your own words?

Answer:______________________________________________________________________________

_____________________________________________________________________________________

Task –3, Identify the problem Server0 and Router_Hunza


Identify the cause, why Server0 is unable to connect with the Router and indicating the Red Signal
in your own words?
Answer:______________________________________________________________________________

_____________________________________________________________________________________

At the end of this activity, your task should be 100 %. PC0 must indicate Green signal & can also
establish the Telnet session with the Router-Muree.
Server0 must indicates Green signal connected with Router_Hunza.

Lab-5 Exercise:
Design a network as your teacher will assigned you in the lab.

College of Computing & Information Sciences 21


Course Title Lab-6
Data Communication and Networks IP Assigning and TELENT_

Lab 6: Objective:
Part A: Assigning IP Address to the Different Intermediary
Devices
Part B: Establishing the TELNET Session between the
Intermediary & End Device

Lab 6
IP Assigning and TELNET
Part A: Assigning IP Address to the Different Intermediary Devices

Figure 1

Task –1, Drag a Router & a switch


Drag a Router & a switch with respect to the Topology diagram (figure 1)

Task –2, Router 1CLI


Click on the Router 1 and select CLI Tab

Task –3, Configure the Fast Ethernet Interface


Configure the Fast Ethernet Interface from the router so that it would show Green signal &
acknowledge each other
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: N
Press RETURN to get started! (Press Enter Key)
Router>enable (Press enter key)
Router#
Router# configure terminal (press Enter)
Enter configuration commands, one per line. End with CNTL/Z.
Router (config)#

College of Computing & Information Sciences 22


Course Title Lab-6
Data Communication and Networks IP Assigning and TELENT_
Router(config)#interface FastEthernet 0/0
Router(config-if)#ip address 11.0.0.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#End

Task –4, PING


Router#ping 11.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 10/14/30 ms

College of Computing & Information Sciences 23


Course Title Lab-6
Data Communication and Networks IP Assigning and TELENT_
Part B: Establishing the TELNET Session between the Intermediary & End Device
TELNET:
Telnet is a protocol that allows you to connect to remote computers (called hosts) over
a TCP/IP network (such as the internet). Using telnet client software on your computer, you can
make a connection to a telnet server (that is, the remote host). Once your telnet client
establishes a connection to the remote host, your client becomes a virtual terminal, allowing
you to communicate with the remote host from your computer. In most cases, you'll need to
log into the remote host, which requires that you have an account on that system. Occasionally,
you can log in as guest or public without having an account.

Figure 2
Note: when establishing a TELNET session Between Intermediary device and End Devices from
Command prompt three Passwords are required.

1) Enable password
2) Line console password
3) Line VTY password

Task –1, Design


Design the Topology with respect to the diagram (figure 2)

Task –2, Assign the password


Assign the password to the router so that PC can establish the TELNET session from command
prompt.

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Enable Password
Router(config)#enable password cisco

College of Computing & Information Sciences 24


Course Title Lab-6
Data Communication and Networks IP Assigning and TELENT_
Line Console Password
Router(config)#line console 0
Router(config-line)#password cisco
Router(config-line)#login

Line VTY password


Router(config-line)#exit
Router(config)#line vty 0 4
Router(config-line)#password cisco
Router(config-line)#end

Task –3, Router IP


Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 11.0.0.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#end

Task –4, IP to PC
Assign the IP Address to the PC

Figure 3

Task –5, Verify TELNET


Finally Open the Command Prompt from the PC.

PC>telnet 11.0.0.1
Trying 11.0.0.1 ...Open

College of Computing & Information Sciences 25


Course Title Lab-6
Data Communication and Networks IP Assigning and TELENT_
User Access Verification
Password: cisco (password will not be shown in the Command prompt)
Router>
This would be your final result and in the end it should be 100%

Lab 6 Exercise:
Design a network as your teacher will assigned you in the lab.

College of Computing & Information Sciences 26


Course Title Lab-7
Data Communication and Networks Variable Length Subnet Mask

Lab 7: Objective:
Part A: Use VLSM technique to configure given topology
Part B: Use VLSM technique & safe Addresses by using the
correct prefix length.

Lab 7
Variable Length Subnet Mask (VLSM)
Part A: Use VLSM technique to configure given topology
Variable Length Subnet Mask (VLSM)
VLSM stands for Variable Length Subnet Mask where the subnet design uses more than one mask
in the same network which means more than one mask is used for different subnets of a single
class A, B, C or a network. It is used to increase the usability of subnets as they can be of variable
size. It is also defined as the process of sub netting of a subnet.

Figure 1: VLSM topology

Task1, IP Belongs to which Class


Use 202.101.100.0 & select a class in which the requirement satisfy
What class should be used to accomplish this topology?
Ans. _____________________________________________

College of Computing & Information Sciences 27


Course Title Lab-7
Data Communication and Networks Variable Length Subnet Mask
Task 2, Requirement
Router 1&2 (Se0/0/0): Require 2 useable hosts
Router 1(Fa0/0) Require 100 Useable Hosts
Router 1(Fa0/1) Require 50 usable Hosts
Router 2(Fa0/0) Require 28 usable Hosts

Task 3, Fill the table to satisfy the requirements


Device Interface IP Address (Range) Subnet Mask Default Gateway
Name

Router-1 Se0/0/0

Router-1 Fa0/0

Router-1 Fa0/1

Router-2 Se0/0/0

Router-2 Fa0/0

College of Computing & Information Sciences 28


Course Title Lab-7
Data Communication and Networks Variable Length Subnet Mask
Part B: Use VLSM technique & safe Addresses by using the correct prefix length.

Figure 2: VLSM addressing

Requirement
Use the above IP Addresses & select a class in which the requirement satisfy
What class should be used for Router 1 Interfaces?
Ans. _____________________________________________

What class should be used for Router 1 & 2 Serial Interfaces?


Ans. ______________________________________________

What class should be used for Router 2 interfaces?


Ans.______________________________________________

Router 1&2 (Se0/0/0): Require 2 useable hosts


Router 1(Fa0/0) Require 75 Useable Hosts
Router 1(Fa0/1) Require 100 usable Hosts
Router 2(Fa0/0) Require 508 usable Hosts
Router 2(Fa0/1) Require 125 usable hosts

College of Computing & Information Sciences 29


Course Title Lab-7
Data Communication and Networks Variable Length Subnet Mask
Fill the table to satisfy the requirements
Device Name Interface IP Addresses (Range) Subnet Mask Default Gateway

Router-1 Se0/0/0

Router-1 Fa0/0

Router-1 Fa0/1

Router-2 Se0/0/0

Router-2 Fa0/0

Router-2 Fa0/1

Lab-7 Exercise:
Design a network as your teacher will assigned you in the lab.

College of Computing & Information Sciences 30


Course Title Lab-8
Data Communication and Networks DHCP Configuration on router

Lab 8: Objective
LAB which PC would be able to get
Design a topology for DHCP through
IP’S dynamically.

Lab 8
Introduction to DHCP
Design a topology for DHCP through which PC would be able to get IP’S dynamically.

Figure 1:
What is DHCP?
Dynamic Host Configuration Protocol (DHCP) is a network protocol that enables a server to
automatically assign an IP address to a computer from a defined range of numbers (that is, a
scope) configured for a given network.

How DHCP assigns IP addresses


DHCP assigns an IP address when a system is started, for example:
1. A user turns on a computer with a DHCP client.
2. The client computer sends a broadcast request (called a DISCOVER or DHCPDISCOVER), looking
for a DHCP server to answer.
3. The router directs the DISCOVER packet to the correct DHCP server.
4. The server receives the DISCOVER packet. Based on availability and usage policies set on
the server, the server determines an appropriate address (if any) to give to the client.

College of Computing & Information Sciences 31


Course Title Lab-8
Data Communication and Networks DHCP Configuration on router
The server then temporarily reserves that address for the client and sends back to the client an
OFFER (or DHCPOFFER) packet, with that address information. The server also configures the
client's DNS servers, WINS servers, NTP servers, and sometimes other services as well.
5. The client sends a REQUEST (or DHCPREQUEST) packet, letting the server know that it
intends to use the address.
6. The server sends an ACK (or DHCPACK) packet, confirming that the client has been given
a lease on the address for a server-specified period of time.
7. A DHCP lease is a temporary assignment of an IP address to a device on the network.
Static IP addresses
When a computer uses a static IP address, it means that the computer is manually configured
to use a specific IP address. One problem with static assignment, which can result from user
error or inattention to detail, occurs when two computers are configured with the same IP
address. This creates a conflict that results in loss of service. Using DHCP to dynamically assign
IP addresses minimizes these conflicts.
Refer to figure 1,

Task-1, Router IP
Configure the interface of a router with a correct IP address

Router>enable
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Task-2, Configuring DHCP


Router(config)#ip dhcp excluded-address 192.168.1.2 192.168.1.10
Router(config)#ip dhcp pool Network1
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#exit

Task-3, PC get automatic IP


When selecting the IP address to the PC. The pc would be able to get the IP assigned
automatically. (See figure 2)

College of Computing & Information Sciences 32


Course Title Lab-8
Data Communication and Networks DHCP Configuration on router

Figure 2

Task 4– (Troubleshooting)
If a pc has assigned the IP statically then it would not be able to get acknowledgement from
other PC’S. (See figure 3 & 4)

Figure 3

Figure 4

Lab-8 Exercise:
Design a network as your teacher will assigned you in the lab.

College of Computing & Information Sciences 33


Course Title Lab-9
Data Communication and Networks File Transfer Protocol Configuration_

Lab 9: Objective:
File Transfer Protocol
Lab 9
File Transfer Protocol
FTP Server
 An FTP Server is a piece of software that is running on a computer and uses the File
Transfer Protocol to store and share files. Remote computers can connect anonymously,
if allowed, or with a user name and password in order to download files from this server
using a piece of software called a FTP Client.
 An FTP server is a computer which has a file transfer protocol (FTP) address and is
dedicated to receiving an FTP connection. An FTP server needs a TCP/IP network for
functioning and is dependent on usage of dedicated servers with one or more FTP
clients. In order to ensure that connections can be established at all times from the
clients, an FTP server is usually switched on.
 An FTP server is an important component in FTP architecture and helps in exchanging of
files over internet. An FTP server is also known as an FTP site.

Task- Upload a File to the FTP Server

Figure 1
Refer to figure 1,

Task 1, IP to Router
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Fa0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0

College of Computing & Information Sciences 34


Course Title Lab-9
Data Communication and Networks File Transfer Protocol Configuration_
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface Fa0/1
Router(config-if)#ip address 172.16.0.1
Router(config-if)#ip address 172.16.0.1 255.255.0.0
Router(config-if)#no shutdown
Router(config-if)#exit

Task 2, IP’s on PC & Server


Now configure given IP’s on PCs and Server and then ping the connections to test complete
connectivity.

Task 3, Activate Ftp services


Activate Ftp services on Ftp Server (as shown in figure 2)

Figure 2

Task 4, create a text file


Next go to PC0 and open Text Editor and create a .txt file named HelloWorld. (As shown in
figure 3)

College of Computing & Information Sciences 35


Course Title Lab-9
Data Communication and Networks File Transfer Protocol Configuration_

Figure 3
Open the Command Prompt of PC0 and type:
PC>dir

Check if your file has been saved to your PC directory.


Then connect to ftp server:
PC>ftp 192.168.1.2
Enter the username and password as created. Then type:
ftp>dir
Check the directory files on the FTP Server. Then upload your file:

ftp>put HelloWorld.txt
ftp>rename HelloWorld.txt MyWorld.txt

Check on Server that your file has been successfully uploaded.


ftp>dir
ftp>quit

Packet Tracer PC Command Line 1.0


PC>221- Service closing control connection

College of Computing & Information Sciences 36


Course Title Lab-9
Data Communication and Networks File Transfer Protocol Configuration_
Task - Rename and Download the Uploaded File
Open the command prompt of PC1 and establish connection with FTP Server.
PC>ftp 192.168.1.2
Enter the username and password.
Check the directory and rename the file name HelloWorld.txt to MyWorld.txt
ftp>dir
ftp>rename HelloWorld.txt MyWorld.txt

Renaming HelloWorld.txt
ftp>
[OK Renamed file successfully from HelloWorld.txt to MyWorld.txt]
ftp>quit
Packet Tracer PC Command Line 1.0
PC>221- Service closing control connection

Next open the command prompt of PC2 and establish connection with FTP Server to download
the recently renamed file.
PC>ftp 192.168.1.2
Enter the username and password.

Check the directory and download the file named MyWorld.txt


ftp>dir
ftp>get MyWorld.txt
Reading file MyWorld.txt from 192.168.1.2:
File transfer in progress...
[Transfer complete - 11 bytes]
11 bytes copied in 0.01 secs (1100 bytes/sec)
ftp>quit
Packet Tracer PC Command Line 1.0
PC>221- Service closing control connection.

Now check that the file is in your PC directory.


PC>dir
Volume in drive C has no label.
Volume Serial Number is 5E12-4AF3
Directory of C:\
1/1/1970 5:0 PM 11 MyWorld.txt
2/7/2106 11:28 PM 26 sampleFile.txt
37 bytes 2 File(s)

Lab-9 Exercise:
Design a network as your teacher will assigned you in the lab.

College of Computing & Information Sciences 37


Course Title: Lab-10
Data Communication & Networks DNS and Web Server Configuration

Lab 10: Objective:


DNS (Domain Name Server) and Web Server Configuration

Lab 10
DNS (Domain Name Server) and Web Server Configuration
Domain Name Server
A DNS server is a type of name server that manages, maintains and processes Internet domain
names and their associated records. In other words, a DNS server is the primary component
that implements the DNS (Domain Name System) protocol and provisions domain name
resolution services to Web hosts and clients on an IP-based network.
Web Server
A web server is a computer that runs websites. It's a computer program that distributes web
pages as they are requisitioned. The basic objective of the web server is to store, process and
deliver web pages to the users. This intercommunication is done using Hypertext Transfer
Protocol (HTTP). These web pages are mostly static content that includes HTML documents,
images, style sheets, test etc. Apart from HTTP, a web server also supports SMTP (Simple Mail
transfer Protocol) and FTP (File Transfer Protocol) protocol for emailing and for file transfer and
storage.

Figure 1
Refer to figure 1,

Task 1, IP on Router
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Fa0/0
Router(config-if)#ip address 172.16.0.1 255.255.0.0
Router(config-if)#no shutdown

College of Computing & Information Sciences 38


Course Title: Lab-10
Data Communication & Networks DNS and Web Server Configuration
Router(config-if)#exit
Router(config)#interface Fa0/1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit

Task 2, IP on Server & PC


Configure the IPs on Servers and PC; make sure to enter the DNS Server IP as well as
192.168.1.3

Task 3, Web Page Searching by IP


To simply access the Web Server, open the Web Browser from the PC and in the URL bar enter the IP of
the Web Server as 192.168.1.2 (As shown in figure 2 )

Figure 2

Task 4, Address Record entry


To access the Web Server via the DNS Server, add an A Record (Address Record) entry in the DNS Server
(As shown in figure 3).

College of Computing & Information Sciences 39


Course Title: Lab-10
Data Communication & Networks DNS and Web Server Configuration

Figure 3

Task 4, Canonical Name entry


Now enter another entry in DNS Server for helloworld.com as a CNAME (Canonical Name) record (As
shown in figure 4).

Figure 4

Task 5, Web Page Searching by Domain


Now open the web browser from the PC again and enter www.helloworld.com in the URL bar (As shown
in figure 5).

College of Computing & Information Sciences 40


Course Title: Lab-10
Data Communication & Networks DNS and Web Server Configuration

Figure 5

Lab-10 Exercise:
Design a network as your teacher will assigned you in the lab.

College of Computing & Information Sciences 41


Course Title: Lab-11
Data Communication & Networks DNS and Email Server Configuration

Lab 11: Objective:


DNS and Email Server Configuration

Lab 11
DNS and Email Server Configuration
Email Server
A mail server (sometimes also referred to an e-mail server) is a server that handles and delivers
e-mail over a network, usually over the Internet. A mail server can receive e-mails from client
computers and deliver them to other mail servers. A mail server can also deliver e-mails to
client computers. A client computer is normally the computer where you read your e-mails, for
example your computer at home or in your office. Also an advanced mobile phone or
Smartphone, with e-mail capabilities, can be regarded as a client computer in these
circumstances.

SMTP and POP3 server


when you press the "Send" button in your e-mail program (e-mail client) the program will
connect to a server on the network / Internet that is called an SMTP server. SMTP is an
acronym for Simple Mail Transfer Protocol and it is a protocol that is used when e-mails are
delivered from clients to servers and from servers to other servers.
When you download e-mails to your e-mail program the program will connect to a server on
the net that is known as a POP3 server. A POP3 server uses a protocol named POP3 for its
communication. That is the reason why it is called a POP3 server and POP3 is an acronym
for Post Office Protocol version 3.

Figure 1
Refer to figure 1,

College of Computing & Information Sciences 42


Course Title: Lab-11
Data Communication & Networks DNS and Email Server Configuration
Task 1, IP to Router
Router>enable
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Fa0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface Fa0/1
Router(config-if)#ip address 172.16.0.1 255.255.0.0
Router(config-if)#no shutdown
Router(config-if)#exit

Task 2, IP to PC & Server


Configure IPs on the PCs and Servers making sure to enter the IP for DNS Server as 192.168.1.3.
Configure the DNS Server with an A Record (Address Record) entry for gmail.com (As shown in
figure 2).

Figure 2

Task 3, Making of Domain & User ID’s


Configure the Email Server; create a domain for gmail.com and User IDs for Alice & Bob (As
shown in figure 3).

College of Computing & Information Sciences 43


Course Title: Lab-11
Data Communication & Networks DNS and Email Server Configuration

Figure 3

Task 4, Users Configuration


Open the Email Settings on Alice and Bob and configure them (As shown in figure 4 & 5).

Figure 4

College of Computing & Information Sciences 44


Course Title: Lab-11
Data Communication & Networks DNS and Email Server Configuration

Figure 5

Task 5, Sending an Email from Alice


Send a Test Email to Bob from Alice (As shown in figure 6)

Figure 6

Task 6, Receiving an Email on Bob


Now receive the email from Alice on Bob (As shown in figure 7)

College of Computing & Information Sciences 45


Course Title: Lab-11
Data Communication & Networks DNS and Email Server Configuration

Figure 7

Lab-11 Exercise:
Design a network as your teacher will assigned you in the lab.

College of Computing & Information Sciences 46


Course Title: Lab-12
Data Communication & Networks Static Route Configuration

Lab 12: Objective:


Configuring Static Route

Lab 12
Configuring Static Route
Static routing
Static routing, the alternative to dynamic routing, is the process in which the system network
administrator would manually configure network routers with all the information necessary for
successful packet forwarding. The administrator constructs the routing table in every router by
putting in the entries for every network that could be a destination. Static routes to network
destinations are unchangeable.
Static routing is a type of network routing technique. Static routing is not a routing protocol;
instead, it is the manual configuration and selection of a network route, usually managed by the
network administrator. It is employed in scenarios where the network parameters and
environment are expected to remain constant.

Static routing is only optimal in a few situations. Network degradation, latency and congestion
are inevitable consequences of the non-flexible nature of static routing because there is no
adjustment when the primary route is unavailable.

Figure 1
Refer to figure 1,

Task-1, Configure IP
Configure ip address on the three routers
Router1>enable
Router1#configure Terminal
Router1(Config)# interface se0/0/0
Router1(Config-if)# ip address 10.0.0.1 255.0.0.0
Router1(Config-if)# clock rate 64000
Router1(Config-if)# no shutdown

Router2>enable
Router2#configure Terminal
Router2(Config)# interface se0/0/0

College of Computing & Information Sciences 47


Course Title: Lab-12
Data Communication & Networks Static Route Configuration
Router2(Config-if)# ip address 10.0.0.2 255.0.0.0
Router2(Config-if)# no shutdown
Router2(Config-if)#end
Router2>enable
Router2#configure Terminal
Router2(Config)# interface se0/0/1
Router2(Config-if)# ip address 192.168.2.1 255.255.255.0
Router2(Config-if)# clockrate 64000
Router2(Config-if)# no shutdown

Router3>enable
Router3#configure terminal
Router3(Config)#interface se0/0/1
Router3(Config-if)#ip address 192.168.2.2 255.255.255.0
Router3(Config-if)#no shutdown
Router3(Config-if)#end
Router3>enable
Router3#configure terminal
Router3(Config)#interface fa0/0
Router3(Config-if)#Ip address 172.16.1.1 255.255.255.0
Router3(Config-if)#no shutdown
Router3(Config-if)#end

Task 2, Configuring Static Route


Router1>enable
Router1# Configure terminal
Router1(Config)#ip route 172.16.1.0 255.255.255.0 10.0.0.2
(Where 172.16.1.0= Destination Address 255.255.255.0= Subnet mask, 10.0.0.2= Next Hop
Address)
Router1(Config)#ip route 192.168.2.0 255.255.255.0 10.0.0.2
Router2>enable
Router2#configure Terminal
Router2(Config)#ip route 172.16.1.0 255.255.255.0 192.168.2.2

Router3>enable
Router3#configure terminal
Router3(Config)#ip route 10.0.0.0 255.0.0.0 192.168.2.1

College of Computing & Information Sciences 48


Course Title: Lab-12
Data Communication & Networks Static Route Configuration

Lab-12 Exercise:
Design a network as your teacher will assigned you in the lab.

College of Computing & Information Sciences 49


Course Title Lab-13
Data Communication and Networks DHCP Configuration on Server_

Lab 13: Objective:


DHCP Server Configuration
Lab 13
DHCP Server Configuration

Figure 1

DHCP Server
A DHCP Server is a network server that automatically provides and assigns IP addresses, default
gateways and other network parameters to client devices. It relies on the standard protocol
known as Dynamic Host Configuration Protocol or DHCP to respond to broadcast queries by
clients.
A DHCP server automatically sends the required network parameters for clients to properly
communicate on the network. Without it, the network administrator has to manually set up
every client that joins the network, which can be cumbersome, especially in large networks.
DHCP servers usually assign each client with a unique dynamic IP address, which changes when
the client’s lease for that IP address has expired.

Refer to figure 1,

Task 1, Router IP
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Fa0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0

College of Computing & Information Sciences 50


Course Title Lab-13
Data Communication and Networks DHCP Configuration on Server
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface Fa0/1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit

Task 2, IP on DHCP Server


Assign IP on DHCP Server, as shown in figure 2.

Figure 2

Task 3, DHCP Server


Configure DHCP Server, as shown in figure 3& 4.

College of Computing & Information Sciences 51


Course Title Lab-13
Data Communication and Networks DHCP Configuration on Server

Figure 3

Figure 4

Task 4, Helper Address


Assign helper address IP on attached router.
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

College of Computing & Information Sciences 52


Course Title Lab-13
Data Communication and Networks DHCP Configuration on Server
Router(config)#interface Fa0/0
Router(config-if)#ip helper-address 192.168.1.10
Router(config-if)#exit
Router(config)#interface Fa0/1
Router(config-if)#ip helper-address 192.168.1.10
Router(config-if)#exit
Router(config)#end

Task 5, Dynamic IP’s of PC


Now all the attached PC’s should be able to get dynamic IP’s. (As shown in figure 5 & 6)

Figure 5

College of Computing & Information Sciences 53


Course Title Lab-13
Data Communication and Networks DHCP Configuration on Server

Figure 6

Lab-13 Exercise:
Design a network as your teacher will assigned you in the lab.

College of Computing & Information Sciences 54

You might also like