From owner-freebsd-bugs Fri Sep 21 9: 0: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DBE1637B40F for ; Fri, 21 Sep 2001 09:00:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8LG02E73343; Fri, 21 Sep 2001 09:00:02 -0700 (PDT) (envelope-from gnats) Received: from rhymer.cogsci.ed.ac.uk (rhymer.cogsci.ed.ac.uk [129.215.144.8]) by hub.freebsd.org (Postfix) with ESMTP id AD09137B405 for ; Fri, 21 Sep 2001 08:55:42 -0700 (PDT) Received: from mcpherson.cogsci.ed.ac.uk (mcpherson [129.215.110.47]) by rhymer.cogsci.ed.ac.uk (8.9.3/8.9.3) with ESMTP id QAA12397 for ; Fri, 21 Sep 2001 16:55:37 +0100 (BST) Received: (from richard@localhost) by mcpherson.cogsci.ed.ac.uk (8.9.3/8.9.3) id QAA29264 for FreeBSD-gnats-submit@freebsd.org; Fri, 21 Sep 2001 16:55:36 +0100 (BST) Message-Id: <200109211555.QAA29264@mcpherson.cogsci.ed.ac.uk> Date: Fri, 21 Sep 2001 16:55:36 +0100 (BST) From: Richard Tobin To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: misc/30708: DHCP and multiple interfaces Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30708 >Category: misc >Synopsis: DHCP and multiple interfaces >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 21 09:00:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Richard Tobin >Release: FreeBSD 4.4-RELEASE i386 >Organization: None >Environment: System: FreeBSD small.cogsci.ed.ac.uk 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Thu Sep 20 00:02:33 BST 2001 richard@small.cogsci.ed.ac.uk:/home/src/sys/compile/VAIO i386 >Description: /etc/rc.network takes care to gather up all the DHCP interfaces to pass to a single dhclient program. /etc/pccard_ether on the other hand expects to run a separate dhclient for each interface, carefully storing their pids in different files. If there are multiple pccard interfaces, or (more likely) a built-in interface and a pccard interface (eg a wireless card), multiple instances of dhclient will be started. All but the first will fail with "can't bind to dhcp address: Address already in use". >How-To-Repeat: Set the ifconfig_xxx variable for a built-in interface to DHCP, and set pccard_ifconfig to DHCP. Insert a pcmcia network card. >Fix: Either make it possible to run multiple dhclient programs (perhaps impossible) or keep a record of the interfaces requiring dhcp and restart dhclient when the list changes. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message