Link to home
Start Free TrialLog in
Avatar of leblanc
leblanc

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of gt2847c
gt2847c
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JoPeLo
JoPeLo

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
Avatar of leblanc

ASKER

I am not using PVLAN. I will check the trunk configuration.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leblanc

ASKER

Yes dhcp server and the client are in the same subnet and same vlan.
OK, so you don't need DHCP relay.
You must make sure that broadcast packets are handled correctly from end-to-end
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leblanc

ASKER

i found out that the dhcp sever was no configured correctly