How to configure DHCP, DNS, HTTP servers in Cisco packet tracer along with switches?


In this tutorial, we will learn about how to configure DHCP, DNS, HTTP servers along with switches. We will learn this configuration by a lab in Cisco packet tracer and try to understand the working of servers, but before starting this lab we also learn basics of servers and switches like why we use servers and why we need servers in our daily life. So, before starting the lab we will learn about the uses and importance of servers and switches and we also learn the impact of servers in our daily life.

Also Read: How to configure Servers(DHCP, DNS, HTTP) along with the routers.

In this lab, we use switches, DHCP server, DNS server, HTTP server, and PC. Here I will tell you about some basic concept of these components in detail.

1. Switch: – A network switch is a computer networking device that connects devices together on the same network. In other words, we also say that the switch is a networking device which connects a large number of systems on the same network. A switch is a medium through which we send and receive the data packet from one system to another in the same network. If you want to connect systems from the different networks in that case switch is useless in that situation we use a router to connect systems from different networks.

2. DHCP server: – The DHCP (dynamic host configuration protocol) is a standardized network protocol which is used in internet protocol (IP) networks. DHCP is used to assign IP automatically to the system with the help of a machine called DHCP server. A DHCP server enables computers to request IP addresses and networking parameters automatically. In the absence of a DHCP server, each computer on the network needs to statically (manually)  assigned to an IP address.

3. DNS server: – DNS (domain name server) is a server which is used to assign names to an IP address. It allows you to connect to any website or network by simple names instead of their IP address. It is really very hard to memorization of IP addresses of any website and network so here DNS help us by converting the number into a name. Now we just type only name instead of IP of any website and network to search it on the internet.

4. HTTP server: – HTTP (Hypertext Transfer Protocol) is a medium which is used to make communication in between client and server. The primary function of an HTTP server is to store, process and deliver web pages to clients. Pages delivered are most frequently HTML documents, which may include images,  style sheet and scripts in addition to text content.

Now we configure servers in Cisco packet tracer by using a lab in it.

switch lab

Step 1: – First of all we go to the DHCP server and click on it to open it. Then a screen will be open in it, we will click on the desktop option and then click on IP configuration to provide IP address statically to the DHCP server and also give the IP address of the DNS server in the column of DNS server. The figure is shown below


Learn how to configure a Cisco router as a DHCP client and also assign IP address to it. Read here.


ip assign to dhcp

Step 2: – After that now choose the service option in it to make that server as a DHCP server and it is able to provide an IP address automatically to the other systems. In it, we fill all entries on this server and choose ON option in it as given below to turn on DHCP server.

dhcp configuration

Now your DHCP server is configured successfully. The work on the DHCP server will be done completely. Now this machine is able to provide IP addresses to other systems which are connected to that network.

Step 3: – Now we configure DNS server by clicking on it. After clicking on the DNS server we click on the desktop option and then click on IP configuration option to provide an IP address to the DNS server. In IP configuration option we change it from static to DHCP. Now it has taken IP address automatically from the DHCP server. The figure is given below

ip assign to dns

Step 4: – Now before making this machine a DNS server, we go to the HTTP server and provide the IP address to it by using DHCP server similarly as DNS server and then after that click on services option to make this machine as an HTTP server. In services, we choose HTTP from the left sidebar and now there create a page or edit a page which you want to see in your web browser.

Learn how to configure static routing on 4 routers. Read this.

Step 4: – After that, we again, click on DNS server and then select DNS option from the right sidebar in it and click on it to configure this machine as a DNS server. In it, we give the name and IP address of the HTTP server and then click on add option in it to provide a name to IP address of the HTTP server which helps us to open that web page by name instead of IP address of the HTTP server and generally name will be easy to memorize by us. After that, we choose ON option to start DNS server. The figure is shown below

dns configuration

Now all servers are configured by us and Now we move on PCs to provide an IP address to them by using a DHCP server. All set now.

Are you trying to find a balance between your digital and real life? Fight phone addiction with apps like Forest and read more about it here.

After that, we will go to any PC on that network and then go to the web browser and we type the name of our page in it which is given in the DNS server by us to open it in our system browser. The figure is shown below

outcome of http server

And now outcome will appear in the form of our page which is made by us in HTTP server. It indicates that all servers are working properly because the messages go to DNS server where it directs it to the HTTP server and the webpage loads from HTTP server to our computer screen.


That’s It all servers and PCs working properly and communicate each other if you have any problem regarding this lab contact me otherwise tell me your query by the comment, I will help you.
If you want to know this process in video format then click on given below link

Your thoughts?

This site uses Akismet to reduce spam. Learn how your comment data is processed.