[En-Nut-Discussion] DHCP

Harald Kipp harald.kipp at egnite.de
Wed May 8 11:02:13 CEST 2013


Hi Joerg,

On 15.04.2013 10:30, Joerg Wiegelmann wrote:

> perhaps there is a DHCP Problem? After receiving an IP address from the
> DHCP Server the DHCP Task is asking periodically if the IP Adress is
> valid. If this fails the DHCP-Task goes to the IDLE state and stucks

That doesn't look wrong to me. If the lease time expires, the client
should stop all activity on that interface. However, the Nut/OS DHCP
client will not stop the IP traffic, it will just stop it's own activity.


> there. The workaround is to restart the DHCP-Task from the application.
> The NutOS-Version is 4.10.2.1

This is no work-around, but the intended procedure. An application
should periodically call NutDhcpStatus(). It it returns DHCPST_IDLE,
then the application needs to decide about any further action. It may,
for example, configure a fixed IP address, shut down, inform the
operator, or whatever. It may also decide to restart DHCP by calling
DhcpKick().

Regards,

Harald




More information about the En-Nut-Discussion mailing list