Lab 03‐3 - LPouliot/Junior-Spring-NET-330-01-Network-Design GitHub Wiki
DHCP Server in Packet Tracer
Remember how annoying it was to assign the IP addresses to all of the clients in Packet Tracer in the last lab...
In this lab, you will configure a DHCP Server in Packet Tracer to assign IP's to laptops and workstations.
Using your Packet Tracer file from the Lab Prep, do the following:
Find and review your Subnet Table from Last Week's Lab
VLAN | VLAN_NAME | Hosts Needed | Network Address | Netmask | Router Address | CIDR |
---|---|---|---|---|---|---|
200 | StuWireless | 900 | 10.22.0.0 | 255.255.252.0 | 10.22.0.1 | /22 |
210 | FSWireless | 650 | 10.22.4.0 | 255.255.252.0 | 10.22.4.1 | /22 |
110 | Student | 450 | 10.22.8.0 | 255.255.255.0 | 10.22.8.1 | /24 |
1 | Management | 250 | 10.22.9.0 | 255.255.255.0 | 10.22.9.1 | /24 |
100 | FacStaff | 200 | 10.22.10.0 | 255.255.255.0 | 10.22.10.1 | /24 |
130 | StuLab1 | 35 | 10.22.11.0 | 255.255.255.192 | 10.22.11.1 | /26 |
140 | StuLab2 | 35 | 10.22.11.64 | 255.255.255.192 | 10.22.11.65 | /26 |
Configure the DHCP Server
Rename the generic server you enabled in the Lab Prep to DHCP-01
Go to the Services tab and enable DHCP
Change the Start Address of serverPool to 100 in the last octet.
- serverPool is the Default Pool and cannot be removed.
- You will use this pool for VLAN 1 Management
HIT SAVE
Create a Pool for each of your FacStaff, Student, Lab1, and Lab2 VLANs
- Default gateway is the router address for that VLAN (e.g. FacStaff, Student...)
- Leave DNS at 0.0.0.0
- Start IP address -the first IP that you want to assign (I suggest starting at 20,50, or 100)
- Subnet Mask for that VLAN- get this correct!
- Maximum Users - set this close to the requirements in your Subnet Table
- TFTP leave at 0.0.0.0
FacStaff
Default G: 10.22.10.1
DNS: 0.0.0.0
Start IP: 10.22.10.20
Sub Mask: 255.255.255.0
Max User: 200
TFTP: 0.0.0.0
Student
Default G: 10.22.8.1
DNS: 0.0.0.0
Start IP: 10.22.8.50
Sub Mask: 255.255.255.0
Max User: 400
TFTP: 0.0.0.0
StuLab1
Default G: 10.22.11.1
DNS: 0.0.0.0
Start IP: 10.22.11.20
Sub Mask: 255.255.255.192
Max User: 30
TFTP: 0.0.0.0
StuLab2
Default G: 10.22.11.65
DNS: 0.0.0.0
Start IP: 10.22.11.70
Sub Mask: 255.255.255.192
Max User: 30
TFTP: 0.0.0.0
Test your DHCP Server
Add a workstation directly to East-Core-Switch on VLAN1 (use FA0/4 or other open interface)
Workstation should be able to get an IP address from the DHCP server (look at IP Configuration) -you can also try ipconfig /renew from the command line
Configure DHCP Relay
East-Core-Switch is the router for your VLANs. Remember - DHCP requests are broadcasts and cannot cross a router without help!
To get DHCP broadcasts from your user VLANs (100, 110, 130, 140), you need to tell the router to forward them to your DHCP server.
This is done with the "ip helper-address" vlan interface configuration
- On East-Core-Switch, go into the interface configuration for FacStaff VLAN 100 (config t, interface vlan 100)
- Use "ip helper-address" to provide the IP address of the DHCP server
DHCP IP: 10.22.9.2
- Repeat steps for each user vlan
Configure Clients to use DHCP
Go into the configuration on your Admin, Student, and Lab Workstations, Laptops and change the Gateway from static to DHCP
Your devices should get DHCP addresses
All of your systems should be able to ping each other.
TIP: Once turning on DCHP - Give It Time To Think!