Bug 25038

Summary: dhcp client could not set hostname on boot
Product: Base System Reporter: lev <lev>
Component: kernAssignee: Murray Stokely <murray>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   

Description lev 2001-02-12 20:50:02 UTC
I got this error on boot:
======================================================================
Doing initial network setup:
 hostname.
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
dhclient: New IP Address(ed0): 192.168.1.1
dhclient: New Subnet Mask (ed0): 255.255.255.0
dhclient: New Broadcast Address(ed0): 192.168.1.255
dhclient: New Routers: 192.168.1.3
======================================================================

It apperas about 4 times for every 5 boots. And sometimes it works Ok.
If I have "hostanem="lev"" in my /etc/rc.conf fille, I got this error too, but hostname have been set Ok. If here is no "hostname" in rc.conf, error appears, and there is nor hostname ((Amnesiac) in login prompt).

All my network configuration is one line:
ifconfig_ed0="DHCP"

How-To-Repeat: Try to boot with DHCP client.
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2002-02-19 09:21:21 UTC
Responsible Changed
From-To: freebsd-bugs->murray

I'll look at this one.
Comment 2 Murray Stokely freebsd_committer freebsd_triage 2005-03-18 02:33:14 UTC
State Changed
From-To: open->closed

This has been fixed with upgrade of DHCP to 3.0.1.