The Wayback Machine - https://web.archive.org/web/20241006094555/https://www.geeksforgeeks.org/configuring-dhcp-and-web-server-in-cisco-packet-tracer/
Open In App

Configuring DHCP and Web Server in Cisco Packet Tracer

Last Updated : 24 Jun, 2022
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

DHCP is an Internet control protocol used to assign an IP address to any appliance, or node, on an internet network so they can transmit data using IP. DHCP automatically handles these configurations rather than requiring network administrators to manually set IP addresses to all network devices. DHCP can be executed on small local networks, as well as large company networks. 

To know more about DHCP you may refer to the article Dynamic Host Configuration Protocol (DHCP).

Steps:

Step 1: First, open the cisco packet tracer desktop and select the devices given below:

S.NO Device Model Name Qty.
1. PC PC 1
2. switch PT-switch 1
3. server Server-PT 2

IP Addressing Table

S.NO Device IPv4 Address Subnet Mask Default Gateway DNS
1. PC0 192.168.5.11 255.255.255.0 192.168.5.1 nil
2. server0 192.168.5.12 255.255.255.0 192.168.5.1 nil
3. DNS 192.168.5.13 255.255.255.0 192.168.5.1 192.168.5.13
  • Then, create a network topology as shown below the image.
  • Use an Automatic connecting cable to connect the devices with others.

 

Step 2: Configure the PCs (hosts) Server0 and DNS with IPv4 address and Subnet Mask according to the IP addressing table given above.

  • To assign an IP address, click on the device.
  • Then, go to desktop and IP configuration and there you will find IPv4 configuration.
  • Fill IPv4 address and subnet mask and other inputs.

 

 

 

Step 3: Configure the HTTP sever0

  • To configure the HTTP server.
  • Go to services then click on HTTP
  • Then delete all of the files except the index.html and edit it.

 

 

Step 4: Configure the DNS server

  • To configure the DNS server.
  • Go to services then click on DNS.
  • Then turn on the DNS services.
  • Name the server cisco.com and type address 192.168.5.12
  • And add the record.

 

Step 5: Verify the server by using the web browser in the Host.

  • Enter the IP address of server0 and click on GO.
  • It will show the results.

 


Previous Article
Next Article

Similar Reads

Configuring EIGRP Default Route Propagation on Cisco Packet Tracer
Pre-requisite: EIGRP fundamentals, EIGRP Configuration. With respect to EIGRP or any routing protocol, summarization is a significant tool to create a boundary for query propagation If a router receives a query for a network it does not have in its topology table, it'll straightaway transmit a reply indicating an unreachable destination (Destinatio
3 min read
Packet Tracer to Configure DHCP On a Wireless Router
Pre-requisite : Dynamic Host Configuration Protocol (DHCP), Basics of Wi-Fi. DHCP is based on a client-server model, based on discovers, offers, requests, and ACKs. The DHCP port number for the server is 67 and for the client is 68. This is a client/server protocol using UDP services. IP addresses are assigned from a pool of addresses. In DHCP, cli
3 min read
How to Create Web Server On Packet Tracer?
A web server is like a computer that uses an HTTP (Hyper Text Transfer Protocol) and many other protocols. it responds when a client makes a request over the World Wide Web. The main work of the web server is to show website content that is processed, and stored, in the webserver to deliver the webpages to the user. The Web server also uses SMTP (S
2 min read
How To Locate And Deploy Devices in Cisco Packet Tracer?
The main purpose of the Cisco Packet Tracer is to help students learn the principles of networking with hands-on experience as well as develop Cisco technology-specific skills. Since the protocols are implemented in software-only methods, this tool cannot replace hardware Routers or Switches. Interestingly, this tool does not only include Cisco pro
2 min read
Connecting Multiple Computers Using Hub in Cisco Packet Tracer
Cisco Packet Tracer is a tool built by Cisco and it provides network simulation to practice simple and complex networks. The main purpose of Cisco Packet Tracer is to help students learn the principles of networking and demonstrate the networking concepts. Connecting Multiple Computers Using Hub in Cisco Packet TracerStep 1: Open the Cisco Packet T
2 min read
Small Organization Set Up in CISCO Packet Tracer
Cisco Packet Tracer is a tool built by Cisco and it provides network simulation to practice simple and complex networks. The main purpose of the Cisco Packet Tracer is to help students learn the principles of networking and demonstrate the networking concepts. Step 1: Open the Cisco Packet Tracer. Step 2.: After opening the Cisco Packet tracer, add
3 min read
Implementing Star Topology using Cisco Packet Tracer
A star topology for a Local Area Network (LAN) is one in which each node is connected to a central connection point, such as a hub or switch. Whenever a node tries to connect with another node then the transmission of the message must be happening with the help of the central node. The best part of star topology is the addition and removal of the n
2 min read
Basic Firewall Configuration in Cisco Packet Tracer
Prerequisite: Firewall A firewall is a hardware or software network security device that monitors all incoming and outgoing traffic based on a defined set of security rules, it accepts, rejects, or drops that specific traffic. Accept: Allow traffic.Reject: Block traffic but respond with "reachable error".Drop: Block unanswered traffic firewall esta
2 min read
How to Deploy Cable Devices in Cisco Packet Tracer?
The main purpose of Cisco Packet Tracer is to help students learn the principles of networking with hands-on experience as well as develop Cisco technology specific skills. Since the protocols are implemented in software only methods, this tool cannot replace hardware Routers or Switches. Interestingly, this tool does not only include Cisco product
3 min read
How to Add Port in Router in CISCO Packet Tracer?
Cisco Packet Tracer is a tool built by Cisco and it provides network simulation to practice simple and complex networks. The main purpose of the Cisco Packet Tracer is to help students learn the principles of networking and demonstrate the networking concepts. Router is a networking device that works in the network layer and can connect two differe
2 min read
Subnetting Implementation in Cisco Packet Tracer
A subnet, or subnetwork, is a part of a larger network. Subnets are a logical part of an IP network into multiple, smaller network components. The Internet Protocol (IP) is the method for transmitting data from one computer to another over the internet network. Each computer, or host, on the internet, has at least one IP address as a unique identif
3 min read
RIP Routing Configuration Using 3 Routers in Cisco Packet Tracer
Pre-Requisite: Routing Information Protocol (RIP) Routing Information Protocol (RIP) is an active routing protocol that operates hop count as a routing metric to find the most suitable route between the source and the destination network. It is a distance-vector routing protocol that has an AD value of 120 and works on the Network layer of the OSI
3 min read
DHCP Server Configuration in Cisco
DHCP is a network management protocol used in networks to dynamically assign IP addresses and other network configuration information like default gateway, mask, DNS server address, etc. It is an application layer protocol.  In this article, we will know about DHCP server configuration using Cisco Packet Tracer. Steps to Configure and Verify DHCP S
2 min read
How to Configure End Devices on Packet Tracer?
End devices are the source and destination devices, which are used for data sent over any internet network. In order to determine one end device from another, each end device on a network is determined by an address. When an end device starts communication, it uses the address of the destination end device to determine where the message should be t
2 min read
How to Make Computer Lab in Packet Tracer?
Cisco Packet Tracer is a tool built by Cisco and it provides network simulation to practice simple and complex networks. The main purpose of the Cisco Packet Tracer is to help students learn the principles of networking and demonstrate the networking concepts. A DHCP Server is a network server that automatically assigns IP addresses, default gatewa
2 min read
How to Simulate Heavy Traffic on Packet Tracer?
In this article, we will see how by using the Cisco Packet Tracer can we create a Virtual LAN, how can we assign the ports to it, and how to configure the trunk ports as well as stimulate heavy traffic. Also, we will see how it will be executed. So let's start this article by understanding its setup first. Setting UpActivate the Cisco Packet Tracer
2 min read
Configuring and Verifying VLANs in Cisco
VLAN is the abbreviation for Virtual LAN, i.e. Virtual Local Area Network. This is a custom network we create from one or more existing LANs. It enables a group of devices from multiple networks (both wired and wireless) to be combined into a single Logical network. The result is a VLAN that can be administered like a physical area network. The net
4 min read
Configuring RIP Versions 1 and 2 in Cisco
Pre-requisite Routing Information Protocol (RIP) Routing is a process of finding a path and then sending packets across networks, the device which performs these functions is called a router. Types of Routing:  Static Routing Dynamic RoutingDynamic Routing Algorithms are based on Distance Vector or Link State routing. RIP is a Dynamic, Distance Vec
4 min read
Configuring RIP Default Information Originate in Cisco
Pre-requisites: RIP, Configuring RIP Versions 1 and 2 in Cisco. After configuring one or multiple default routes on the routers in the routing protocol's domain, the routing protocol (in our case Routing Information Protocol) can advertise default routes, and each router chooses the best default route to list as that router’s gateway of last resort
3 min read
Configuring RIP Route Summarization in Cisco
Pre-requisites: RIP, super netting Supernetting is mainly used in Route Summarization, where routes to multiple networks with similar network prefixes are combined into a single routing entry, with the routing entry pointing to a Super network, encompassing all the networks. This in turn significantly reduces the size of routing tables and also the
2 min read
Configuring Local User Authentication in Cisco
One shared password for all authentication purposes is not the safest method. Giving each person a login and password makes tracking them easier. There are primarily two methods for logging into a Cisco router equipment (and also to other networking devices in general). Using a local login and password on the device itself.By using an external auth
5 min read
Configuring RIP Timers in Cisco
Pre-requisites: RIP RIP is a Distance Vector Routing Protocol with an AD 120 value of and uses next-hop as metric value to find the best route to a destination. It supports a maximum of 15 hop counts, and 16 is considered as infinity. RIP uses split horizon to avoid forming of loops and uses split horizon with reverse poisoning to advertise a netwo
2 min read
Configuring EIGRP Timers in Cisco
EIGRP is an Advanced Distance Vector and Hybrid Routing Protocol. This is a CISCO proprietary protocol. It does not use broadcast packets to send information to other neighbors but will use multicast or unicast. We support multiple network layer protocols that are supported. EIGRP runs directly at the top of the IP header. EIGRP uses a rich set of
2 min read
Configuring Per Interface OSPF in Cisco
A routing technique called OSPF (Open Shortest Path First) is used in computer networks to choose the optimum route for packet forwarding. As a link-state routing protocol, OSPF determines the shortest path between any two nodes using knowledge on the network topology, including the condition and price of network links. In order to divide the netwo
2 min read
Configuring EIGRP Maximum Paths in Cisco
Pre-requisite: EIGRP Configuration, EIGRP Implementation in Cisco. EIGRP is a CISCO proprietary protocol for routing. EIGRP calculates the best route to a destination using the metric value it is based on. Link bandwidthDelayEIGRP selects the shortest path and installs that path in the routing table. If there are multiple paths to the destination w
3 min read
Configuring Multi-Area OSPF in Cisco
OSPF listens to the neighbors and collects their link-state data to build a topology map containing all the routers within the network and saves this information in its Link-State Database. With this information (stored in the Link-State Database), it calculates the best/optimal path to reach a certain network using the SPF algorithm (Shortest Path
2 min read
Configuring RIP for IPv6 – RIPng in Cisco
Pre-requisites: Routing Information Protocol (RIP), Routing Information Protocol (RIP) V1 & V2, Implementation of RIP Routing Routing Information Protocol (RIP) is a dynamic routing protocol that applies hop count as a routing metric to find the best path between source and destination networks. It is a distance vector routing protocol with an
3 min read
Configuring a Loopback Interface in Cisco
A loopback interface is used for device identification. Although you can use any interface address to determine if the device is online, we recommend using the loopback address. Network topology changes can remove interfaces or change addresses, but the loopback address never changes. Uses of Loopback Interface:It is used for routing protocols, rea
1 min read
Configuring OSPF For IPv6 – OSPFv3 in Cisco
Prerequisites: OSPF Implementation and Open Shortest Path First (OSPF) protocol States Open Shortest Path First (OSPF) is a link-state routing protocol used to find the best path between the source and destination router using its own shortest path first). OSPF was developed by the Internet Engineering Task Force (IETF) as one of the Internal Gatew
4 min read
Configuring OSPF Stub Areas in Cisco
Prerequisites: OSPF Implementation and Open Shortest Path First (OSPF) protocol States Open Shortest Path First (OSPF) is a link-state routing protocol used to find the best path between the source and destination router using its own shortest path first). OSPF was developed by the Internet Engineering Task Force (IETF) as one of the Internal Gatew
3 min read