Lab Manual: Step-by-Step Configuration
of DHCP, DNS, and Web Server in Cisco
Packet Tracer
Objective
To create a simple network using Cisco Packet Tracer that includes:
- A DHCP Server to assign IP addresses
- A DNS Server to resolve domain names
- A Web Server to host a website
- One Router, Two Switches, and Five PCs
Step 1: Add Devices and Connect Them
1. Open Cisco Packet Tracer.
2. Add the following devices from the device list:
- 1 Router
- 2 Switches
- 3 Servers (for DHCP, DNS, and Web)
- 5 PCs
3. Use Copper Straight-Through cables to connect:
- Router to Switch 1 and Switch 2
- Switch 1 to DHCP Server, DNS Server, PC1, and PC2
- Switch 2 to Web Server, PC3, PC4, and PC5
Step 2: Assign IP Addresses
Use the following IP addresses:
- Router: 192.168.1.1
- DHCP Server: 192.168.1.2
- DNS Server: 192.168.1.3
- Web Server: 192.168.1.4
- IP Range for PCs (via DHCP): 192.168.1.10 to 192.168.1.50
Step 3: Configure Router
1. Click on the Router and go to CLI.
2. Enter these commands to set IP and enable the interface:
Router> enable
Router# configure terminal
Router(config)# interface gig0/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)# exit
Router# write memory (to save configuration)
Step 4: Configure DHCP Server
1. Click on the DHCP Server > Desktop > IP Configuration.
- Set IP: 192.168.1.2
- Subnet Mask: 255.255.255.0
- Default Gateway: 192.168.1.1
2. Go to Services > DHCP.
- Turn DHCP service ON.
- Set Pool Name: DHCP-Pool
- Default Gateway: 192.168.1.1
- DNS Server: 192.168.1.3
- Starting IP: 192.168.1.10
- Subnet Mask: 255.255.255.0
- Max Users: 40
- Click 'Add'
Step 5: Configure DNS Server
1. Click on the DNS Server > Desktop > IP Configuration.
- IP: 192.168.1.3
- Subnet Mask: 255.255.255.0
- Default Gateway: 192.168.1.1
2. Go to Services > DNS.
- Turn DNS service ON.
- Add a domain name: www.example.com
- Set IP address: 192.168.1.4 (Web Server)
- Click 'Add'
Step 6: Configure Web Server
1. Click on the Web Server > Desktop > IP Configuration.
- IP: 192.168.1.4
- Subnet Mask: 255.255.255.0
- Default Gateway: 192.168.1.1
2. Go to Services > HTTP.
- Make sure HTTP service is ON.
Step 7: Configure PCs
1. Click on each PC > Desktop > IP Configuration.
2. Select 'DHCP'.
- The PC will receive an IP from the DHCP server.
3. To test:
- Open Web Browser on PC and go to: http://www.example.com
- You should see the web page hosted on the Web Server.