DHCPOFFER sent to wrong MAC?

David W. Hankins David_Hankins at isc.org
Sun Aug 20 15:53:52 UTC 2006


On Fri, Aug 18, 2006 at 08:42:50PM -0400, Jason Lixfeld wrote:
> WITH_DHCP_SOCKETS=true

Eureka!

Use BPF not SOCKETS.

Using a regular berkeley socket and trying to transmit a packet
to 255.255.255.255 appears to be causing your FreeBSD 6.1 machine
to route the packet via unicast to your default router.

If you use BPF, ISC DHCP will craft the packet it specifically
needs to (and it will be unicast to the client in this case, not
broadcast) in this case.

Alternatively, you can keep BSD sockets, but you'll have to bind
the server to an alias hidden from your users - such as on a lo0
alias - and use a relay agent to handle the broadcasts and
responses.

-- 
ISC Training!  October 16-20, 2006, in the San Francisco Bay Area,
covering topics from DNS to DHCP.  Email training at isc.org.
-- 
David W. Hankins	"If you don't do it right the first time,
Software Engineer		you'll just have to do it again."
Internet Systems Consortium, Inc.	-- Jack T. Hankins


More information about the dhcp-users mailing list