[En-Nut-Discussion] No DNS addresses with DHCP

Michel unreal at home.nl
Thu Dec 30 09:14:31 CET 2004


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





More information about the En-Nut-Discussion mailing list