[En-Nut-Discussion] DHCP and four Ethernuts, IP conflict

Lars Andersson laran at ikp.liu.se
Tue May 6 12:52:31 CEST 2003


Thank you all for the help with the DHCP problems.
The explanations from you all combined with reading the rfc made things more clear to me.

Regards,
/Lars

-----Original Message-----
From: chromy at asix.cz [mailto:chromy at asix.cz]
Sent: den 6 maj 2003 10:49
To: en-nut-discussion at egnite.de
Subject: RE: Re[2]: [En-Nut-Discussion] DHCP and four Ethernuts, IP conflict


> I have had some problem getting the NUT DHCP to work properly with a Linux
> machine. Do you thing that the acceptance of the unicast UDP datagrams may
> solve this problem?

Yes, it will.

NUT DHCP can also work with Linux DHCP server as it is, if the server is
configured to use broadcasts. Just put "always-broadcast on;" in proper
section of /etc/dhcpd.conf (unpatched NutNet is not able to receive
unicast
until ip address is configured). But due to already mentioned problem with
xid (it is not random in fact), this is not much reliable.

> I plan to try to implement some random value alg. using the MAC and the
> timer for generating the xid. Is the xid parameter supposed to be unique
> for each device and then repeat this value each time or is it supposed to
> be unique for each request made?

I suggest reading the RFC.

Pavel

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion



More information about the En-Nut-Discussion mailing list