On Wed, Apr 14, 2010 at 1:41 PM, Alkis Georgopoulos <[email protected]> wrote:
> Hi all,
>
> I face the following problem with udhcpc: it always sends a clientid,
> even if I specify --clientid=''.
> Afaik the dhcp specs say that the client may or may not send a clientid,
> but if it does, it must always send the same id.
>
> The problem begins when other dhcp clients are used on the same PC. For
> example, when a PC PXE-boots, it may get the following IPs:
>  * 192.168.0.20 for the first PXE request,
>  * 192.168.0.20 for the udhcpc request
>
> OK so far. But if we reboot the PC, it now may get:
>  * 192.168.0.21 for the PXE request because .20 is reserved for the
> specific clientid that udhcpc sent before,
>  * 192.168.0.21 for the udhcpc request
>
> And if we reboot it one more time:
>  * 192.168.0.22 for the PXE request because .21 is reserved for the
> specific clientid that udhcpc sent before,
>  * 192.168.0.22 for the udhcpc request,
>
> etc, quickly exhausting the available lease range.
>
> Dhclient, ipconfig and the intel PXE stack in my nic do not send a
> clientid, and no lease problem occurs (I observed that
> in /var/lib/dhcp3/dhcpd.leases). Is it possible to modify udhcpc so that
> it also does not send a clientid? Or at least so that it doesn't send it
> when --clientid='' is specified?
> (sending an empty clientid is very different than not sending a clientid
> at all).

Use option -C. It is documented in udhcpc --help.
-- 
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to