| View previous topic :: View next topic |
| Author |
Message |
V-Li Developer

Joined: 03 Jan 2006 Posts: 597
|
Posted: Fri Apr 07, 2006 6:48 am Post subject: [solved]dhcpcd does not receive an IP, no nameserver |
|
|
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 |
|
 |
sazioh n00b

Joined: 26 Jan 2006 Posts: 26
|
Posted: Fri Apr 07, 2006 7:05 am Post subject: |
|
|
| Code: | | echo "nameserver 192.168.1.1" >>/etc/resolv.conf |
(replace 192.168.1.1 by your actual dns server)
s- |
|
| Back to top |
|
 |
ASID Apprentice


Joined: 22 Mar 2006 Posts: 181
|
Posted: Fri Apr 07, 2006 7:08 am Post subject: |
|
|
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 |
|
 |
V-Li Developer

Joined: 03 Jan 2006 Posts: 597
|
Posted: Fri Apr 07, 2006 7:25 am Post subject: |
|
|
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 |
|
 |
|