FACULTY OF TECHNICAL AND VOCATIONAL EDUCATION
UNIVERSITI TUN HUSSEIN ONN MALAYSIA
86400 BATU PAHAT, JOHOR
LABORATORY SHEET
LAB 8:
DHCP and DNS server
PROGRAM CODE : BBN
SEM/SESSION : 2 / 2024/2025
COURSE CODE : BBN12602
COURSE NAME : SWITCHING AND ROUTING IN INDUSTRIAL NETWORK
LECTURER NAME : Pn. Fathin Liyana binti Zainudin (Course Coordinator)
COURSE LEARNING : Students will understand how DHCP and DNS works
OUTCOME (CLO-1) (LOD1, PLO1, C2)
OBJECTIVE:
i. At the end of the session you will be able to
Use Cisco Packet Tracer software for simulation
Understanding how DHCP and DNS works
Setting the DHCP server
Setting the DNS server
DURATION:
2 hours
LAB SUBMITION DATE:
Nama/
NAME MUHAMMAD ARIF FAHMI BIN SUHAIZAN
ITEM MARKS
1. Attendance/Discipline / 20
2. Participation / 20
MARKS CONTRIBUTION 3. Results/Discussion / 60
/FOR INSTRUCTORS ONLY
TOTAL MARKS / 100
Instructor’s Comment Submission Stamp
and Date
Task 1: Router as DHCP server
1. Using Cisco Packet Tracer software, setup a simple network connection as in Figure 1.
Figure 1
2. Setting R1 router g0/0 and g0/1 interface ip address using CLI command
3. Configure DHCP router for Network 1 and Network 2 using CLI command
DHCP setting in Router can be checked using command below
4. Select DHCP for each device connected to SW1 and SW2 as in Figure 2. Observe and discuss.
Figure 2
What I observe from this is that, when we change it in CLI from Router, a device will immediately
have an ip adrress, subnet mask and gateaway automatically when we change from Static to
DHCP.
Network1
Laptop0:
PC0 & PC1:
Network2
Laptop1:
PC2 & PC3:
Disscuss:
When a device’s IP setting was changed from Static to DHCP using the CLI on a router, it
automatically received an IP address, subnet mask, and default gateway.
This shows that DHCP simplifies network setup by assigning configurations automatically, saving
time and reducing errors. While DHCP is efficient for most devices, Static IPs are still necessary
for critical devices that require fixed addresses.
Task 2: Configure DHCP and DNS server
1. Clear DHCP setting in Router
2. Add DHCP and DNS server to network as in Figure 3.
Figure 3
3. Set DHCP Server and DNS Server IP address (static)
Figure 4
4. Configure connection for DHCP Server and Network 1.
5. Select DHCP for each device connected to SW1 and SW2 as in Figure 2. Observe and discuss.
Observe:
So before I put server, every device still having ip adrress, subnet mask and gateaway in DHCP. But
when I switch to static and switch back to DHCP after connecting server, system can’t read as it
write DHCP failed. It says that APPA is being used.
Discuss:
In the DNS Server, go to Services at part DHCP. Set a Pool Name, then fill in the Default Gateway,
DNS Server, Start IP Address, and Subnet Mask. After completing all fields, click Add and Save. Then,
create another DHCP pool for interface g0/1.
6. Add [Link] as admin as in Figure 5.
Figure 5
After add:
7. Ping admin from PC2. Make an observation and discuss.
Observe:
When PC2 pings [Link], 4 packets are sent. Only 3 replies are received, and 1 packet is lost.
This shows 25% packet loss. PC2 can still reach the admin PC.
Discussion:
Even though the connection works, it is not fully stable. The lost packet could be caused by a weak
cable or a small network problem. It is not a full disconnection, but it should be checked to prevent
bigger issues in the future.
References
:
DHCP DNS and Web Server configuration in cisco packet tracer
[Link]
DHCP Server Configuration within a router Tutorial in CISCO Packet Tracer
[Link]