Bug 15183

Summary: DHCP Client problems -- /sbin/dhclient-conf
Product: Base System Reporter: skyhawk <skyhawk>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description skyhawk 1999-11-30 10:40:00 UTC
/sbin/dhclient-script bugs that have been there about forever as far as I can tell.

I first had this problem on 3.2-RELEASE, then later on 3.3-RELEASE with this new system, and it still lingers on with 3.3-STABLE. It should be noted that I was not really a FreeBSD user prior to this point. This problem occurs with both a generic isa NE/2000 card and an isa 3c509b.

This has only occured on single-NIC systems. I've never tested with a multi-homed box.

As far as I can tell, the problem is that arp to the external interfaces is hosed. For example, if my machine has 192.168.1.20 as an IP bound to ed0, and I try to ping 192.168.1.20, I get no ping replies and this generated in syslog :

Nov 30 01:42:00 chronos /kernel: arplookup 127.0.0.1 failed: could not allocate llinfo
Nov 30 01:42:00 chronos /kernel: arpresolve: can't allocate llinfo for 127.0.0.1rt

over and over and over again, until I stop trying to ping.

Fix: 

I'm not even going to pretend to understand all the issues, but i've gone through and commented several lines in /sbin/dhclient-script, which seems to correct the problem, *for me*, and in my *one card* setup.

For convenience, I will make the full dhclient-script file downloadable shortly from ftp://ftp.tempest.yi.org/pub/dhclient-script.modified
How-To-Repeat: As far as I can tell, have a DHCP server on your network, have the following sections in /etc/rc.conf

network_interfaces="ep0 lo0"
#ifconfig_ed0="DHCP"
ifconfig_ep0="DHCP"

As appropriate for your network card, of course.

Try to ping your interface and, unless i'm being an idiot and doing something really wrong, watch /var/log/messages grow! :)
Comment 1 patrick 1999-12-09 06:46:41 UTC
Hi,

The replacement script for /sbin/dhclient-script submitted in PR bin/15342
should fix that problem.

Patrick.

--
www.mindstep.com
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 1999-12-12 01:45:43 UTC
State Changed
From-To: open->closed

fix commited and MFC'ed for 3.4.