Experiment # 06
Configuration of Web, DHCP and DNS Server
Objective:
In this lab we will learn how to configure services of Web, DHCP and DNS through Server.
Theory:
A Web server is a program that, using the client/server model and the World Wide Web's
Hypertext Transfer Protocol (HTTP), serves the files that form Web pages to Web users (whose
computers contain HTTP clients that forward their requests). A name server is a computer
hardware or software server that implements a network service for providing responses to
queries against a directory service. It translates an often humanly meaningful, text-based
identifier to a system internal, often numeric identification or addressing component. This
service is performed by the server in response to a service protocol request.
The Dynamic Host Configuration Protocol (DHCP) is a standardized network protocol used
on Internet Protocol (IP) networks for dynamically distributing network configuration
parameters, such as IP addresses for interfaces and services. With DHCP, computers request
IP addresses and networking parameters automatically from a DHCP server, reducing the need
for a network administrator or a user to configure these settings manually.
The Domain Name System (DNS) is a distributed database in which you can map hostnames
to IP addresses through the DNS protocol from a DNS server. Each unique IP address can have
an associated hostname. DNS works a bit like a telephone book: It assigns domain names
like [Link] to numerical IP addresses ([Link]) and vice versa. DNS
consists of thousands of servers working together. If one server cannot resolve a name or IP,
it can contact another server that can then ask the next one, and so on.
Lab Instructor: Engr. Basit Akram
Procedure:
First, open Cisco Packet Tracer.
Now, select and place different devices in your logical work environment, that are three PCs,
three servers and one switch.
Connected pc and server with a switch to establish a connection between them using straight
Through copper wire.
Lab Instructor: Engr. Basit Akram
After the successful establishment of the connections give IP addresses to servers.
Give IP to server DHCP:
Click on DHCP Server -> Desktop -> IP Configuration.
IP : [Link]
Now follow the same step for remaining Servers
Give IP to Web Server: [Link]
Lab Instructor: Engr. Basit Akram
Give ip to server DNS Server: [Link]
Make sure given IP Addresses are of Local Domain for all devices.
After successfully assignment of IP address we are going to get services from each server.
DHCP Server Configuration:
For DHCP configuration:
• Click on the DHCP server.
• Click on “services” tab
• Select DHCP from the options.
• Now Check “on” to enable DHCP Service.
• Default Gateway: [Link]
• DNS Server:[Link]
• Start IP address: [Link]
• Maximum Number of Users: 15
• Click on “save”
Congratulations, Your DHCP Configuration is up.
Lab Instructor: Engr. Basit Akram
Check the DHCP at client 0:
To check the DHCP at client 0.
Click om PC and open IP Configuration. Now click on DHCP mode you can see that the IP
address dynamically assign by DHCP server.
Now follow the same step for remaining Client PCs to assign IP address.
Lab Instructor: Engr. Basit Akram
To check the communication between Client’s PCs, we can Ping them by:
Click on client 0 go to the command prompt and write the ping command with client 1 IP
address.
C:\>ping [Link]
To enable web server or made web server:
Go to services and select HTTP
Enable both HTTP and HTTPS protocols.
You can see multiple files in it. This is the default website already created in it. So if you want to
change it there is an edit button in front of each file.
To check the working of the Website, open browser on the same server. In the URL box,
write the IP address that you assign earlier to the same server.
Lab Instructor: Engr. Basit Akram
To resolve the website’s IP address into Domain name we have to assign domain name
through DNS Server.
To access website through domain name:
• Click on DNS Server
• Go to Services and click on DNS.
• Enable DNS Services.
• Write the name you want to assign to your website ip address ([Link])
• Select Type “A Record”
• Address of Web Server: [Link]
• Click on “Add” button.
Lab Instructor: Engr. Basit Akram
Now change the type to “CNAME” and add the domain name again.
To access the website with www extension:
That is all.
Note: Add DNS Server address to both server’s IP Configurations before browsing your
website.
Now just open any client and go to the web browser. Write your website domain name
[Link]
Lab Instructor: Engr. Basit Akram
Lab Task
1. Perform a configuration of DHCP server that will assign ip address of class B network
2. Perform a configuration of DNS server for your local area network. Assign different name
to the PC and access the PCs by using the name instead of IP address.
3. Perform a configuration of two web servers and access it by using IP address and by
Domain Name.
Conclusion
________________________________________________________________
________________________________________________________________
________________________________________________________________
_____
Lab Instructor: Engr. Basit Akram