Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]dhcpcd does not receive an IP, no nameserver
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
V-Li
Developer
Developer


Joined: 03 Jan 2006
Posts: 597

PostPosted: Fri Apr 07, 2006 6:48 am    Post subject: [solved]dhcpcd does not receive an IP, no nameserver Reply with quote

When using a blank /etc/conf.d/net Gentoo boots up fine until it brings up eth0 (a cable based network card), dhcpcd just times out without receiving an IP address. When using a fixed address by

Code:
iface_eth0="192.168.1.123 broadcast 192.168.1.255 netmask 255.255.255.0"
gateway="eth0/192.168.1.1"


it works fine, althought name resolving does not work. I can use websites of which I know the IP address but DNS does not work. How can I investigate further? Which logfiles, tools to debug the connection? The DHCP server is a router connected to a ADSL modem.

BTW: WinXP has no problem with all that, so I think the problem is on the Gentoo side.
_________________
Christian Faulhammer, Gentoo Lisp project, GNU Emacs wrangler
http://www.gentoo.org/proj/en/lisp/ #gentoo-lisp on FreeNode

http://gentoo.faulhammer.org/


Last edited by V-Li on Fri Apr 07, 2006 7:26 am; edited 1 time in total
Back to top
View user's profile Send private message
sazioh
n00b
n00b


Joined: 26 Jan 2006
Posts: 26

PostPosted: Fri Apr 07, 2006 7:05 am    Post subject: Reply with quote

Code:
echo "nameserver 192.168.1.1" >>/etc/resolv.conf


(replace 192.168.1.1 by your actual dns server)

s-
Back to top
View user's profile Send private message
ASID
Apprentice
Apprentice


Joined: 22 Mar 2006
Posts: 181

PostPosted: Fri Apr 07, 2006 7:08 am    Post subject: Reply with quote

Try:
Code:

ifconfig eth0 up
dhcpcd -d -t 160 eth0

Make sure eth0 is the corerct interface to use. This will take a bit longer. Then please post the results.
Back to top
View user's profile Send private message
V-Li
Developer
Developer


Joined: 03 Jan 2006
Posts: 597

PostPosted: Fri Apr 07, 2006 7:25 am    Post subject: Reply with quote

Ok, after doing the manual dhcpd call the boot procedure works. I am connected to a local ISP which delivers routers with own firmware (Linux based)...the support told me that an firmware upgrade has taken place a few days ago and the DHCP server is a bit buggy. So I was hit by this bug (it needs to get the IP address once taking a really long time and then is faster)...thank you all for your support.
_________________
Christian Faulhammer, Gentoo Lisp project, GNU Emacs wrangler
http://www.gentoo.org/proj/en/lisp/ #gentoo-lisp on FreeNode

http://gentoo.faulhammer.org/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum