From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 7 15:40:02 2009 Return-Path: Delivered-To: freebsd-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 5207E106566B for ; Wed, 7 Oct 2009 15:40:02 +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 160258FC08 for ; Wed, 7 Oct 2009 15:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n97Fe1q1092400 for ; Wed, 7 Oct 2009 15:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n97Fe1wK092399; Wed, 7 Oct 2009 15:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 7 Oct 2009 15:40:01 GMT Resent-Message-Id: <200910071540.n97Fe1wK092399@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, sobotap <> Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D79961065693 for ; Wed, 7 Oct 2009 15:31: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 C726B8FC2C for ; Wed, 7 Oct 2009 15:31:54 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n97FVs8A028300 for ; Wed, 7 Oct 2009 15:31:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n97FVsIt028299; Wed, 7 Oct 2009 15:31:54 GMT (envelope-from nobody) Message-Id: <200910071531.n97FVsIt028299@www.freebsd.org> Date: Wed, 7 Oct 2009 15:31:54 GMT From: sobotap <> To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/139405: DHCP server with two interfaces connected to one physical network X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2009 15:40:02 -0000 >Number: 139405 >Category: bin >Synopsis: DHCP server with two interfaces connected to one physical network >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 07 15:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: sobotap >Release: 8.0-CURRENT-200809 >Organization: Warsaw University of Technology >Environment: FreeBSD volt.iem.pw.edu.pl 8.0-CURRENT-200809 FreeBSD 9.0-CURRENT #0: Tue Sep 22 13:21:47 CEST 2009 ato@volt.iem.pw.edu.pl:/tmp/obj/usr/src/sys/VOLT amd64 >Description: Internet Software Consortium DHCP Server V3.0.1rc12pxe2 sk0: 1.1.1.3 (public IP) nve0: 10.10.0.3 (private IP) /etc/dhcpd.conf --------------- shared-network "xxxx" { subnet 1.1.1.0 netmask 255.255.255.0 { authoritative; option domain-name-servers 1.1.1.3; option routers 1.1.1.1; } } subnet 10.10.0.0 netmask 255.255.0.0 { authoritative; option routers 10.10.0.3; option domain-name-servers 10.10.0.3; # unknown clients MAC pool { allow unknown clients; range 10.10.0.100 10.10.0.250; } } host abcd { hardware ethernet 00:11:22:33:44:55; fixed-address 1.1.1.5; } host efgh { hardware ethernet 00:22:44:66:88:99; fixed-address 10.10.0.5; } server dhcp listening on sk0 and nve0 both interfaces are connected to ine physical network Client abcd (public IP) sends DHCPDISCOVER, dhcp server logs next information, **** dhcpd: DHCPDISCOVER from 00:11:22:33:44:55 via nve0: network 10.10.0.0/16: no free leases **** dhcpd: DHCPDISCOVER from 00:11:22:33:44:55 via sk0 server dhcp response DHCPOFFER: 1.1.1.5, client sends DHCPREQUEST: 1.1.1.5, if server DHCP get this request at first via nve0 and then get this request at next via sk0 server DHCP at first send DHCPNAK and next send DHCPACK in accordion with RFC client starts DHCP dialogue from beginning. Changing order interfaces on which server dhcp in listening do the same problem for client efhg (private IP). >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: