01-10-2012 02:38 AM - edited 03-07-2019 04:15 AM
Hi,
I would like to know if ip helper-address feature is working on a layer 2 switch (2950,2960) or you should use a Layer 3 switch to do that?
Thanks in advance.
Best regards,
Laurent
01-10-2012 02:43 AM
hi,
i think it has to be a layer 3 switch as the "ip helper-address" command forwards the dhcp process into another subnet, thus routing is occuring and therefore the device has to be layer 3.
correct me if iam wrong.
florian
01-10-2012 02:48 AM
Laurent and Florian,
To my great surprise, I actually found the ip helper-address command to be present on a SVI of a 2950 Catalyst switch. I would have to test it in a lab if it actually works, though. Theoretically, it should - it would send the repackaged unicast DHCP packet through its default gateway towards the predefined DHCP server. But first and foremost, it does not make sense. Laurent, if there is a router in your network then it is its job to do the DHCP Relay function. Why would you want to configure a DHCP Relay function on an L2 device that still has to send the DHCP packet via an existing router - and not configure the existing router itself with the ip helper-address command?
Best regards,
Peter
01-10-2012 02:51 AM
Hi,
there is no need to ip helper-address in L2 switch.
01-10-2012 02:55 AM
Hi,
Well, there can be rare circumstances when this can be actually useful, such as when your L2 switch is smarter than your no-name router which is incapable of doing DHCP Relay itself. But I would like to hear from Laurent if he has any particular need to run the IP Helper on his 2950/2960 switch.
Best regards,
Peter
01-10-2012 03:21 AM
Hi all,
Well. I need the IP helper feature on the 2950 switch because the default gateway for the subnet is the ISP L3 switch and then whenever we have to change the DHCP IP then we don´t need to call the ISP and wait for the change.
It could be intersting to test if a L2 switch actually support the IP helper-address feature.
Best regards,
Laurent
01-10-2012 06:44 AM
Hi Laurent,
I have confirmed in our lab that both Cat2950 and Cat2960 are capable of running as DHCP Relay Agents. The prerequisites are:
There is a major limitation on the 2950 switches: as there can be at most one SVI in the "no shutdown" state at any time, the DHCP Relay feature can be activated only for a single VLAN whose SVI is currently activated. There is, I believe, no workaround available. The 2960 switches do not have this limitation.
IOSes used in my experiment:
2950: c2950-i6k2l2q4-mz.121-22.EA13.bin
2960: c2960-lanbasek9-mz.122-58.SE1.bin
Best regards,
Peter
01-10-2012 07:03 AM
Hi Peter,
Perfect reply!
Thanks a lot for that.
/Laurent
09-20-2015 11:20 PM
I'd like to add the 4th condition which is necessary so the DHCP Relay works:
Cheers,
Frank
09-22-2015 08:05 PM
Hi Frank,
Good point. It should be noted that the service dhcp is a default setting on these platforms and so does not need to be explicitly entered unless disabled at some point in the past.
Best regards,
Peter
03-06-2019 08:58 AM
So, has it been determined whether or not it is more suitable to use an L2 device as a relay agent versus a multi-layer or L3 device?
03-06-2019 06:02 PM
03-07-2019 07:01 AM
I agree with Joseph that a layer 3 switch (or router) is more suitable. Especially true in terms of the 2950 switch where you are limited to forwarding DHCP for a single vlan. Peter made an interesting point about cases where it might make sense to do the DHCP forwarding on a layer 2 switch. But in general it would be preferable to perform this on a layer 3 device.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide