ip dhcp relay

This is my setup:
DHCP server<-->core switch (L3) <--> sw1 (L2) <-->sw2 (L2) <---> PC1

PC1 is using dhcp. But it could not get the DHCP from the server. If I configure it with a static IP address, everything works. Somebody suggested enabling dhcp relay on sw1. But I disagree because from my understanding, the dhcp relay is used to forward DHCP traffic between 2 different subnets. Furthermore, I don't think the layer 2 switch can do dhcp relay. Any thoughts would be greatly appreciated. Thx
LVL 1
leblancAccountingAsked:
Who is Participating?
 
gt2847cConnect With a Mentor Sr. Security ConsultantCommented:
DHCP relay would be enabled on the L3 switch.  The VLAN interface routing for the PC would have to forward it as it has knowledge of the origination subnet...
0
 
JoPeLoCommented:
Looking at your layout, I believe the DHCP server is in a different subnet (VLAN?) of PC1. If so, you should configure the DHCP relay on your core switch L3. In cisco gear, the DHCP relay agent is configured using the ip helper-address interface command.
If the DHCP server is in the same VLAN of your PC1, and supposing you are not using PVLANs, you should look for trunk misconfiguration in all trunk configurations in sw1, sw2 and core switch (is that VLAN allowed in all trunk interfaces?) and/or if that VLAN exists in all switches.

Hope it helps.

jopelo
0
 
leblancAccountingAuthor Commented:
I am not using PVLAN. I will check the trunk configuration.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
vivigattConnect With a Mentor Commented:
Are the DHCP server and the client(s) in the same subnet?
If so, you need a DHCP relay (ip helper in Cisco world).
If not, this is something else...
0
 
leblancAccountingAuthor Commented:
Yes dhcp server and the client are in the same subnet and same vlan.
0
 
vivigattCommented:
OK, so you don't need DHCP relay.
You must make sure that broadcast packets are handled correctly from end-to-end
0
 
leblancConnect With a Mentor AccountingAuthor Commented:
I found out that the vlan where the dhcp server is  connected to was not configured.
0
 
leblancAccountingAuthor Commented:
i found out that the dhcp sever was no configured correctly
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.