Bug 14810

Summary: [PATCH] initialising multiple interfaces through DHCP does not work
Product: Base System Reporter: hibma <hibma>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
rc.network.diff none

Description hibma 1999-11-10 10:40:01 UTC
In my configuration I have two ethernet interfaces that I would like to
configure through DHCP. In rc.conf:

	ifconfig_ed1="DHCP"
	ifconfig_wb0="DHCP"

This does not work for the second interface as dhclient bails out on the
fact that port 68 is already taken (by dhclient started for the first
interface).

Fix: Instead of starting a dhclient for each interface, start on for all of them at
the same time.

And the uuencoded version (to maintain overlong lines):
How-To-Repeat: 
	Add a second (bogus possibly) network interface to your rc.conf
Comment 1 dd freebsd_committer freebsd_triage 2001-07-22 16:16:31 UTC
Responsible Changed
From-To: freebsd-bugs->n_hibma

over to originator.
Comment 2 Nick Hibma freebsd_committer freebsd_triage 2001-07-22 21:30:39 UTC
Responsible Changed
From-To: n_hibma->freebsd-bugs

I am not clued in enough to actually be able to tell whether the requested 
change does make sense. 

Please someone else have a look and tell me whether this patch makes sense.
Comment 3 Tony Fleisher 2001-07-23 05:08:14 UTC
This was commited by obrien in etc/rc.network rev 1.67
This PR can be closed.

Commit Log:

Suport multiple ``ifconfig_*?="DHCP"'' configurations.

Currently we have a problem in that `dhclient' bails when configuring the
second interface as port 68 is already in use (by the `dhclient' started
for the first interface).

PR:             14810
Submitted by:   n_hibma
Comment 4 Nick Hibma freebsd_committer freebsd_triage 2001-07-23 08:52:58 UTC
State Changed
From-To: open->closed

This was commited by obrien in etc/rc.network rev 1.67 
Submitted by:	Tony Fleisher <takhus@takhus.mind.net>