<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
Hi,<br>
<br>
I'm facing a wired problem using dhclient.<br>
<br>
I'm creating a specific initrd from scratch (for systemimager deployment software), and I've built dhcp-4.2.4-P2<br>
<div><br>
My initrd is using kernel 3.7.5 and udev-182. I've not used systemd and Networkmanager either.<br>
<br>
When booting, all the hardware is correctly detected, but dhclient fails with the error: "No broadcast interface found - exiting.".<br>
<br>
This is strange because if I type "dhclient eth0", it works.<br>
If I type ifconfig eth0 inet 0.0.0.0; ifconfig eth0 down<br>
and If I setup a buggy address like ifconfig eth0 inet 192.168.1.1<br>
then dhclient without parameter can discover the interface a get an ip from the server......<br>
<br>
More over, if I look at /sys/class/net/eth0/flags, it is 1002 (or 1003 if up), thus it is a BROADCAST able interface.<br>
If I copy the binay of dhclient to a "normal" host, it correctly detects the broadcast interfaces. So I'm sure that the problems does not comes from the dhclient code, but from the environment it is running in.<br>
<br>
I can't setup a debug environment into my initrd (gdb+code +...) and it's very hard to debug.<br>
<br>
Looking into common/discover.c, I see no reason why my interface could be ignored.<br>
<br>
- Maybe a filesystem is not mounted and the socket fails to be created and thus no interface are listed? If yes, what mountpoint of path could be missing?<br>
I have (all rw):<br>
/run (tmpfs)<br>
/var/run (link to /run)<br>
/tmp/ (devpts)<br>
/dev (devtmpfs)<br>
/dev/pts (<br>
/sys (sysfs)<br>
/proc (profs)<br>
/var/db/<br>
/var/log (tmpfs)<br>
- Or maybe a bad option is setup in my kernel? If yes which one?<br>
- Or maybe a bad option in udevd compilation? a missing script?<br>
- my /sbin/dhclient-script seems correct and my /etc/dhcp/dhclient-exit-hoots is also correct as I can retreive all parameters when issuing "dhclient eth0".<br>
<br>
Any ideas what could prevent dhclient to ignore eth0 if not specified on the command line and if ip is set to 0.0.0.0?<br>
<br>
Many thanks for any advices<br>
<br>
Best regards.<br>
<br>
PS: I'm running inside a vmware client and the dhcpd on the host is not running (I'm using a dhcpd from centos on another vm). The dhcpd is correctly set up as dhclient eth0 on the client works. It's only when I don't specify the interface and when the ip is
 0.0.0.0 that the dhclient fails to discover interfaces.....<br>
<br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font face="Tahoma">-- <br>
   Olivier LAHAYE<br>
   CEA DRT/LIST/DCSI/DIR</font><br>
</div>
</div>
</div>
</div>
</body>
</html>