Forum Discussion
Johan_Linder_10
Nimbostratus
Jan 04, 2008DHCP relay
Is it possible to use the LTM as a DHCP relay? In my setup I got one untagged VLAN (vlan269) on one physical interface. And about 10 tagged VLANs (NGP_*) on another physical interface. Since the LTM is running Linux I figured I could use "dhcrelay", see below:
big-ip dhcrelay -i NGPA_10_6_3_0 -i vlan269 -i NGPA_10_6_7_0 10.6.3.10
Internet Systems Consortium DHCP Relay Agent V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/NGPA_10_6_7_0/00:01:d7:6a:95:83
Sending on LPF/NGPA_10_6_7_0/00:01:d7:6a:95:83
Listening on LPF/vlan269/00:01:d7:6a:95:82
Sending on LPF/vlan269/00:01:d7:6a:95:82
Listening on LPF/NGPA_10_6_3_0/00:01:d7:6a:95:83
Sending on LPF/NGPA_10_6_3_0/00:01:d7:6a:95:83
Sending on Socket/fallback
Ok, looks good. The problem is that it doesn't seem to actually listen on those interfaces. I'm logging the traffic with a filter:
Jan 4 13:54:21 tmm tmm[930]: 01250002:5: test (86): accept on vlan 273, len: 342 [IPv4 328 0.0.0.0 -> 255.255.255.255 UDP 68 -> 67]
Jan 4 13:54:22 tmm tmm[930]: 01250002:5: test (87): accept on vlan 277, len: 590 [IPv4 576 0.0.0.0 -> 255.255.255.255 UDP 68 -> 67]
I also tried setting up a listening port with "nc":
big-ip nc -l -p 3000
host-on-client-vlan telnet 10.6.3.1 (big-ip floating IP or IP of master)
Trying 10.6.3.1...
telnet: connect to address 10.6.3.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
Ok, that didn't work, try connecting to that port on localhost:
big-ip telnet localhost 3000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Ok, that did work. Does this mean that it's not possible run services that listens on the VLAN interfaces?
Have I done something wrong or is there some other way to do it?
// Johan
- hoolio
Cirrostratus
Can you try adding the port(s) you want to allow access to, to the self IP Port Lockdown list (in the admin GUI under Network >> Self IPs >> Port Lockdown). - Johan_Linder_10
Nimbostratus
Thanks for the reply! - hoolio
Cirrostratus
I'm not too sure on that. You might try increasing the TMM logging using the Log.Tmm.Level db key and see if you get logging for the packets. Else, you could consider creating a virtual server to handle the traffic. That might be a cleaner solution. - cralston_17844
Nimbostratus
I'm in the same boat. I've allowed udp/67 on the selfip's in question. If I run tcpdump on the bigip's command line, I can see the dhcp requests. When I run dhcrelay -d, I don't even see any requests come in. I don't have any ACL's that are getting hit. - cralston_17844
Nimbostratus
...aaaaand in other news, the bigip is smarter than us: - cralston_17844
Nimbostratus
I also tried creating a 0/0 VS listening on 67, first on IP forwarding mode and then L2 (not expecting it to do any good), in the hopes that TMM would recognize 255.255.255.255:67 as something to react to, and it still didn't show up in dhcrelay, even though I could see the packets in tcpdump the whole time. - Johan_Linder_10
Nimbostratus
I can just agree with your tests, I got the same. But I don't have a 0/0 IP forwarding VS and it doesn't work anyway. So I think we can rule that out. As you said, the packets show up in tcpdump, but the TMM seems to ignore them. - Deb_Allen_18Historic F5 AccountApparently we don't yet support DHCP relay, but there is an open CR.
- Chris__Bloss_10
Nimbostratus
Any update on this? I'm moving in to a new datacenter in 6 months and having DHCP working from all segments would be nice. Currently the F5 being in front of a few segments is an issue for DHCP relay. I'd hate to have a bunch of systems running just to encapsulate the DHCP request and forward to the DHCP server. - hoolio
Cirrostratus
I'd suggest opening a case with F5 Support (https://websupport.f5.com or http://www.f5.com/training-support/customer-support/contact/). This way you can get an official status on the request. If it hasn't be added to the product, you can add your case to the request.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects