cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1289
Views
3
Helpful
10
Replies

Help Needed: DHCP Not Working on PCs in Packet Tracer

StudioGhilby
Level 1
Level 1

Screenshot 2024-11-07 232105.png

StudioGhilby_0-1731042017239.png

Hi everyone! I’m working on a Packet Tracer activity, and I’m currently setting up the left side of my network. I’m trying to configure DHCP so that the PCs automatically receive IP addresses, but I can't seem to get DHCP working properly.

Here’s what I’ve done so far:

  • Configured the DHCP server with the appropriate IP range.
  • Verified connections between the DHCP server, router, and PCs.

I've attached the topology and the instructions. Any help would be greatly appreciated! Thank you in advance!

10 Replies 10

Blue_Bird
VIP
VIP

Hello StudioGhilby,

DHCP-R router should have the routes for all valn subnets.

Share DHCP-R and R1 configurations... will helpful..!

Best regards
******* If This Helps, Please Rate *******

 

LEFT NETWORK

Put ip on routers
DHCP_R
int g0/0
ip add 10.0.0.2 255.255.255.252

R1
int g0/2
ip add 10.0.0.1 255.255.255.252

1. Configure DHCP_R as the DHCP server
network 1
ip dhcp pool Network_1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns 8.8.8.8

network 2
ip dhcp pool Network_2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns 8.8.8.8

3. Configure Router-on-a-stick on R1
int g0/1
no shut

int g0/1.10
encapsulation dot1q 10
ip add 192.168.1.1 255.255.255.0

int g0/1.20
encapsulation dot1q 20
ip add 192.168.2.1 255.255.255.0

int g0/1.99
encapsulation dot1q 99 native

4. Configure VLANs on S1-S3
vlan 10
name Main_Office

vlan 20
name Branch_Office

vlan 99
name Native

vlan 999
name RESERVE

4.5. Disable DTP
int range f0/21-24
sw mode trunk
sw mode tr native vlan 99
sw nonegotioate

5. Configure Port Security on S1-S3
int range unsused ports
sw mode acc
sw acc vlan 999
shut

int range used ports
sw mode acc
sw port-security
sw port-security max 2
sw port-security mac-address sticky
sw port-security violation shutdown

6. Configure EtherChannel on S1-S3
int range f0/21-24
channel-group 1 mode active


7. Configure OSPF on R1 & DHCP_R
router ospf 10
network 10.0.0.0 0.0.0.3 area 0
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0

passive-interfaces g0/1.10
passive-interfaces g0/1.20

8. Configure the default route on R1 pointing to 172.16.0.155
ip route 0.0.0.0 0.0.0.0 172.16.0.155

Here is my current configurations for Left Network

add ip helper-address 10.0.0.2 command under each sub-interface on R1

int g0/1.10
encapsulation dot1q 10
ip add 192.168.1.1 255.255.255.0

ip helper-address 10.0.0.2

int g0/1.20
encapsulation dot1q 20
ip add 192.168.2.1 255.255.255.0

ip helper-address 10.0.0.2

Best regards
******* If This Helps, Please Rate *******

Thanks for the help!

But whenever I configure everything I don't recieve any DHCP on vlan 10 and 20.

Hello StudioGhilby,

in your topology...between the swithes you used stright cable, it should be cross cable.

Between the switches remove the connections and on the same ports provide connectivity with cross cable...it works..!

Best regards
******* If This Helps, Please Rate *******

@StudioGhilby 

 share you PacketTracer file here, it easier to check. Just zip it first.

Thanks for the suggestion I've updated the post to include the packet tracer file thanks.

I dont believe this is going to work in PacketTracer. It could work in real device.

Add the router just for DHCP server seems to be not supported.  We need to bear with PacketTracer as it is very limited in terms of functions. The router is a router. If you need a DHCP server, there is DHCP server available.

What will work is add the DHCP scope on the router R1, that I am sure. But, request the DHCP to another router, seems to me will not work.

It does not matter if you add ip helper address on the router 1. Seems to me that the device will release DHCP if the scope is create on it.

Blue_Bird
VIP
VIP

Hello StudioGhilby,

In your uploaded file i found no configuration...may be its not saved.

I did the required configuration on  the devices (R1-side)...it's working fine.

just replace the connectivity between the switches with cross cable and trunk is enabled on required links.. it works..!!

 

Same way you have do it for R2-side. Please find the attached lab file.

Best regards
******* If This Helps, Please Rate *******

 

Thanks for the help!!

Really appreciate it.