[En-Nut-Discussion] No DNS addresses with DHCP
Jean Pierre Gauthier
jp.gauthier at wanadoo.fr
Thu Dec 30 09:54:19 CET 2004
Michel,
thanks for your help.
DHCP is in sleep state. (70E1 dhcpc 64 SLP 0000 0944 70CD 492 OK )
Even when the server answers "DHCP offer" and this frame well received
(within 2 seconds),
NutDhcpIfConfig call is freezed the "timeout time" and it always returns
"OK" after.
No "last msg" to DHCP is sniffed...
Sometimes (10% of case?), NutDnsConfig2 is called by DHCP subroutine
(printf trace) and DNS IP addresses well set. Perhaps "last msg" is sent in
this case?
Sometimes, DHCP ParseReply seems to recognize DNS IP adresses fields twice
times (seen by printf trace) and NutDnsConfig2 is then called.
Nut/OS NutVersionString() returns "3.9.1 pre".
Jean Pierre
-----Message d'origine-----
De : en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] De la part de Michel
Envoyé : jeudi 30 décembre 2004 09:15
À : 'Ethernut User Chat (English)'
Objet : RE: [En-Nut-Discussion] No DNS addresses with DHCP
Yes, there are only 4 messages going back and forth.
If NutOs does not get the last message to DHCP, your problem would occur.
Can you check in which state the DHCP task is?
Michel
-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Jean Pierre
Gauthier
Sent: woensdag 29 december 2004 10:42
To: 'Ethernut User Chat (English)'
Subject: RE: [En-Nut-Discussion] No DNS addresses with DHCP
Hi Michel,
There are ONLY 2 DHCP messages (sniffed here)during boot :
1) Ethernut -> server : DHCP request : discover ... Some ARP/ICMP
exchanges...
2) server -> Ethernut : DHCP reply : offer (after 2 seconds)
Timeouts tried 5... 30s : no changes.
Ethernut is well registered by the server with IP/MAC/hostname association.
Jean Pierre
-----Message d'origine-----
De : en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] De la part de Michel Envoyé :
mercredi 29 décembre 2004 09:51 À : 'Ethernut User Chat (English)' Objet :
RE: [En-Nut-Discussion] No DNS addresses with DHCP
Hi,
Apparently your Ethernut doesn't receive a final ACK from your DHCP server,
otherwise the NutDnsConfig2 call should have been executed. Or maybe the
timeout that the DHCP client waits is too short.
Michel
-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Jean Pierre
Gauthier
Sent: dinsdag 28 december 2004 23:02
To: 'Ethernut User Chat (English)'
Subject: [En-Nut-Discussion] No DNS addresses with DHCP
Hello,
I have a small problem with DHCP call and the returned DNS addresses.
NutDhcpIfConfig returns good values (allocated address, mask, gateway addr)
and status, but DNS addresses are not set.
DHCP ParseReply routine well and always detects primary/secondary DNS
address, but NutDnsConfig2 isn't called later so that doc.doc_ip1 and
doc.doc_ip2 remain null in DNS structures.
(if I force an horribilis NutDnsConfig2 call in ParseReply with detected DNS
addresses as parameters, all become Ok)
DHCP server is a classical SMC7004VBR WAN gateway and sends one and its own
IP address as DNS server.
Any idea?
Jean Pierre
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list