From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jul 8 13:10:07 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A71FF1065674 for ; Wed, 8 Jul 2009 13:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 812A78FC16 for ; Wed, 8 Jul 2009 13:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n68DA7SP062200 for ; Wed, 8 Jul 2009 13:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n68DA7Gx062199; Wed, 8 Jul 2009 13:10:07 GMT (envelope-from gnats) Resent-Date: Wed, 8 Jul 2009 13:10:07 GMT Resent-Message-Id: <200907081310.n68DA7Gx062199@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gavin Chappell Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B867106564A for ; Wed, 8 Jul 2009 13:07:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 1DFDE8FC0A for ; Wed, 8 Jul 2009 13:07:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n68D7rni016588 for ; Wed, 8 Jul 2009 13:07:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n68D7rgL016583; Wed, 8 Jul 2009 13:07:53 GMT (envelope-from nobody) Message-Id: <200907081307.n68D7rgL016583@www.freebsd.org> Date: Wed, 8 Jul 2009 13:07:53 GMT From: Gavin Chappell To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/136461: dhcpd not working without static route for 255.255.255.255 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2009 13:10:08 -0000 >Number: 136461 >Category: ports >Synopsis: dhcpd not working without static route for 255.255.255.255 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 08 13:10:07 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Gavin Chappell >Release: 7.2-RELEASE-p2 >Organization: n/a >Environment: FreeBSD bsddhcp.domain 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:57:44 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: I installed net/isc-dhcp30-server from ports and copied over my dhcpd.conf from a properly functioning Linux machine. I configured it to start on reboot etc, which it did correctly. However, my Ubuntu laptop wouldn't pick up an IP address and ISC dhclient (V3.1.1) just showed various timeouts due to not receiving a response. I ran tcpdump on the Linux DHCP server and my new FreeBSD one to see what was different, and found that Linux with dhcpd V3.0.1rc14 seems to send DHCPOFFERs to a unicast address like so: 13:17:57.013813 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:7e:b0:24:b4, length: 310 13:17:57.014096 IP linuxdhcp.domain.bootps > clientaddress.domain.bootpc: BOOTP/DHCP, Reply, length: 323 Whereas the FreeBSD server with dhcpd V3.0.7 sends DHCPOFFERs to 255.255.255.255 like so: 13:45:37.014402 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:7e:b0:24:b4 (oui Unknown), length 304 13:45:37.015076 IP bsddhcp.domain.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 323 I found the following webpage (http://tldp.org/HOWTO/DHCP/x369.html) and I found that to fix this I needed to add a static route to 255.255.255.255 as follows, once I'd done this, clients were seeing the DHCPOFFERs correctly. Please note that this isn't exactly the same as the linked page as that page suggests that only MS clients have this problem, I was seeing the problem on a Ubuntu 9.04 machine with ISC dhclient V3.1.1. >How-To-Repeat: Install dhcpd from ports, and set it up to serve IP addresses on a network. >Fix: "route add -host 255.255.255.255 -iface fxp0" fixed the problem in my case. Without this static route in place, dhcpd would run correctly but systems were unable to see the DHCPOFFERs that were sent out Could be automated on bootup with (in /etc/rc.conf): static_routes="broadcast" route_broadcast="-host 255.255.255.255 -iface fxp0" I don't know how this would work with a box with multiple network cards for multiple DHCP-served subnets. >Release-Note: >Audit-Trail: >Unformatted: