Lab 3 2 and 3 3 DHCP Server in Packet Tracer - Oliver-Mustoe/Oliver-Mustoe-Tech-Journal GitHub Wiki

In this lab, we added DHCP to the network we created in Lab 2-1: Subnet Design, also the table in the lab is HEAVILY referenced.

Notes

Lab 3-2

First I added a generic server on the Management VLAN, "End Devices" > "Generic Server" (3rd from left) to the left of the East Core switch.

Then I gave an IP address from my Management VLAN subnet (10.7.10.2 with a mask of 255.255.255.0) and set the default gateway to a IP in my subnet table (10.7.10.1).

Then on the East-Core-Switch Fast Ethernet port 0/3, I configured it as an access port for VLAN 1.

I then used the following commands to set an IP address from my Management subnet (.1) on the East-Core-Switch (no shutdown since VLAN 1 is disable by default):

enable
conf t
ip routing
interface vlan 1
ip address 10.7.10.1 255.255.255.0
no shutdown

See Lab 2 1: Subnet Design for command breakdown.

Then I used Copper-Crossover cable to connect the DHCP server to the East-Core-Switch on Fast Ethernet port 0/3. After this, I could ping from the DHCP server to any end-device on the network.

Lab 3-3

First I renamed my DHCP server to "DHCP-01", then I went to the Services tab and enabled DHCP.

Then I set the following configurations for the following pools:
NOTE: serverPool is the default pool, also non-removable, and will be the pool used for VLAN 1 Management
image

Notes for DHCP configuration:

  • Should be boxes to fill in (with labels indicating where IPs and stuff should go), should be fairly self explanatory
    • Make sure to change the name, and click "Add" instead of "Save" for new pools
  • DNS should be 0.0.0.0
  • Starting IP is the first IP, recommended to start at 20, 50, or 100 in the last octet
  • ENSURE SUBNET MASK FOR VLAN IS CORRECT
  • Make sure to set default gateway for router address for THAT VLAN
  • Pay attention to maximum users value!

To test my DHCP server, I added a workstation directly to EAST-Core-Switch on a open interface (configured for VLAN 1!) and using the command ipconfig /renew, from the command line, I was able to recieve a IP in the "serverPool" pool.

Then on the East-Core-Switch, so that my DHCP requests could cross a router, I told the router to forward DHCP broadcasts from user VLANs with the commmands (example for VLAN 100):

enable
conf t
interface vlan 100
ip helper-address 10.7.11.1

Command breakdown:
1 & 2. Entering global configuration
3. Selecting the VLAN needed
4. Setting the helper address to the DHCP server (like a relay agent)

Finally, I could change the configuration of all of the workstations and laptops from static to DHCP. After this, all systems should get a IP address (from there pool) and be able to ping around the network!