Enterprise Network Systems
Laboratory Work - Dynamic host Configuration Protocol (DHCP)  
Assessment Value 2.5%

Introduction
Method
Questions
Writeup of the lab


Introduction

The object of today's laboratory work is to examine the operation of Dynamic Host Configuration Protocol (DHCP). The function of DHCP is to obtain local configuration parameters without user intervention and incorporate those parameters into its own configuration.

You will examine this protocol using the definitive document, the Request for Comment (RFC). DHCP's RFC is 2131.

Any web source of RFC 2131 will be suitable for your examination.

Follow the instructions below and use a pen and paper to keep a record of your responses to the questions.

This work will be assessed informally during the lab period and formally at the end of the course.

If you need the portable Packet Tracer application, you can download it from here.


Method

  1. Use a suitable search engine e.g. Google to find RFC 2131. (Tip: you could use inverted commas around your search string to make your search more specific, i.e. enter into the search field    "RFC 2131"   )
  2. Examine the RFC 2131 document to discover key features of DHCP.
  3. Answer the questions given below in your own words using a pen and paper. This means NO CUT & PASTE

  4. Use the answers to your questions to help you when you write up this lab.


Questions
Part 1

  1. How many DHCP servers are required for each subnet in your organisation? (Section 1.6 - Design Goals)
  2. Make a table of the messages that may be sent by either the DHCP client or server. Make brief notes concerning the use of the message. (Section 3.1 Client-server interaction - allocating a network address)
  3. Draw a timeline diagram of the messages exchanged between DHCP client and servers when allocating a new network address. Choose the option Server Selected. (Section 3.1 Client-server interaction - allocating a network address)
  4. Which transport protocol does DHCP employ? (Section 4.1)
  5. Give one reason why you think this protocol is used by DHCP over the other available option(s).
  6. What are the numbers of the client and server ports used by DHCP? (Section 4.1)
  7. Which type of address is sent by the client to the DHCP server at the beginning of the configuration process?
  8. Which type of address is supplied by the DHCP server to the requesting client?
  9. If a client no longer requires its assigned network address, describe the process that takes place between the client and DHCP server.
  10. Describe TWO instances when a client should make use of DHCP  (section 3.7)

Part 2

Practical Work with Packet Tracer

Now you should download the Packet Tracer file to your PC.

The object of the lab is to configure the network servers such that each PC gains an IP address via DHCP and then is able to download a webpage from the Web Server that is situated on another network.

Roll your mouse pointer over the 4 PCs to verify that they have no addressing information already - as shown below.



Your PCs have browser windows and you will need to enter the address www.ens.com into the PC's inbuilt browser.

You can access the browser by clicking on a PC then selecting the Desktop tab and then select Web Browser as below.
 


Enter the address www.ens.com into the browser and click Go.

What happens?

You will need to setup the servers so that the 4 PCs are able to communicate across the network.

You do not need to change any of the settings on the router or either of the switches.

You will need the following IPv4 addresses to setup the servers

DHCP Server IP address 192.168.0.2 /24
Web Server IP address 192.168.100.3 /24
DNS Server IP address 192.168.100.2 /24


Firstly setup the DHCP server by clicking on the server (Server-PT DHCP Server) in the Packet Tracer window and select the Config tab then select INTERFACE, FastEthernet.

Add the IP address
for the DHCP server and corresponding subnet mask.

Return to the Services on the Config tab and select DHCP


  192.168.100.2

Now setup the DHCP server so that it has the information needed to supply the PCs with their IP details.

Firstly
turn the DHCP service on with the radio button.

Enter the Default Gateway address  for the LAN and the DNS server IP address shown above.

Choose a suitable name for the DHCP address pool.
It is good practice to use a name that identifies the location or purpose of the LAN.
Students-N128 would be a suitable candidate here, but you may chhoose your own pool name
Now add the Start IP address for the network as 192.168.0.20
Add a /24 subnet mask in dotted decimal format.
Make the maximum number of users equal to 20.
Add the TFTP server data as the IP address of this machine.

Click Add, then Save.

The DHCP server setup is now complete.


PC DHCP client setup

Go to each PC and roll your mouse over each. Do they have addressing details? If not, why not?

Hint - how has the addressing been setupon on these PCs? Look at their IP Configuration tab.

You will need to turn their DHCP client on for each PC. Click on each PC and select the Desktop tab.
Select the IP Configuration tab and change the method of obtaining an IP address to DHCP from Static.
You should receive an IP address, Subnet Mask, Default Gateway and DNS Server address in a similar manner to that shown below.



Now access the web browser by clicking on a PC then selecting the Desktop tab and then select Web Browser as below.
 


Enter the address www.ens.com into the browser and click Go.

What happens this time? Wait until an error message is displayed in the browser.

Why are you unable to access the web server, according to the error message?



Web Server and DNS Server setup

The Web Server only needs to have its Ethernet interface details to be entered via the appropriate tab  and its Default Gateway entered via the Global Settings tab.  Make sure that the HTTP daemon is turned on via the HTTP tab under SERVICES.

Now go to the DNS server and enter
its Ethernet interface details via the appropriate tab  and its Default Gateway entered via the Global, Settings tab.

Return to one of the PCs and via its Command Prompt try to ping the web server 192.168.100.3

This should be successful.


If this is unsuccessful, check that you have entered all details as specified above and troubleshoot until you do achieve connectivity.

Try Accessing the Web Server

Now use the browser on one of the PCs and enter the address http://www.ens.com

What happens? Why is no web page displayed?

Is there an error message?

Setup the DNS Server

Go to the DNS server and setup its IP address and Default Gateway.

The DNS server should be set up now to map the canonical name to its IP address.

Click on the DNS server's Config tab and SERVICES, DNS.

Turn the DNS service on using the radio button.



The A-record specifies the IP address to which the user would be sent for each domain or subdomain.

Enter the domain name www.ens.com and the IP address 192.168.100.3 and click Add then Save.

This will map the URL to the IP address on the DNS server.

Now return to a PC and use the browser to access www.ens.com

What do you see in the browser?

If this is successful, save your packet tracer file.

What happens if you omit 'www' when you put the URL into the browser? Why do you think this happens?



Simulation Tab

You can use the Simulation tab of Packet Tracer to view the packets as they travel across the network. The packets that are of interest are DNS, TCP and HTTP. You can choose to view only these via the Event List Filters and then make another request for the webpage and view the packets crossing the network. See video.


Writeup of the lab

You are expected to write an account of the work that you carried out in the lab. Show CLEARLY the answers that you have found and include printouts where necessary.

Make sure that it is easy to find the answers to the questions in part 1.

For part 2, you should be sure to answer all questions that were posed and when you are finished be able to write a short explanation of the process that takes place when a computer requests a webpage.

Printouts from
Packet Tracer are allowed in your work and you may wordprocess this lab, but you WILL LOSE ALL MARKS if you are found to have used 'cut & paste' of text to complete this work i.e. do not plagiarise other websites etc.

This laboratory is worth 2.5% of the marks for this course.

Keep a record of this work in your log book. Show it to your lab demonstrator before you leave. You will need to submit this work for marking.


© MMClements  Last updated : 16/11/2011 13:21
 
 

1 http://faq.everybox.com/primary-domain/CNAME-format