From richard@cogsci.ed.ac.uk  Fri Sep 21 08:55:43 2001
Return-Path: <richard@cogsci.ed.ac.uk>
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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <richard@cogsci.ed.ac.uk>
To: FreeBSD-gnats-submit@freebsd.org
Subject: DHCP and multiple interfaces
X-Send-Pr-Version: 3.113

>Number:         30708
>Category:       misc
>Synopsis:       DHCP and multiple interfaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 21 09:00:02 PDT 2001
>Closed-Date:    Sun Feb 02 04:47:01 PST 2003
>Last-Modified:  Sun Feb 02 04:47:01 PST 2003
>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:
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Sun Feb 2 04:45:39 PST 2003 
State-Changed-Why:  

You need to add configuration for all your interfaces in 
/etc/dhclient.conf. 'man 5 dhclient.conf' for more info. 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Sun Feb 2 04:45:39 PST 2003 
Responsible-Changed-Why:  

I closed it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30708 
>Unformatted:
