Bug 30708

Summary: DHCP and multiple interfaces
Product: Base System Reporter: Richard Tobin <richard>
Component: miscAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-RELEASE   
Hardware: Any   
OS: Any   

Description Richard Tobin 2001-09-21 17:00:02 UTC
/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".

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.
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.
Comment 1 Doug Barton freebsd_committer freebsd_triage 2003-02-02 12:45:39 UTC
State Changed
From-To: open->closed


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


Comment 2 Doug Barton freebsd_committer freebsd_triage 2003-02-02 12:45:39 UTC
Responsible Changed
From-To: freebsd-bugs->dougb


I closed it.