View previous topic :: View next topic |
Author |
Message |
Tsuki n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 May 2004 Posts: 42 Location: Southampton, England
|
Posted: Thu May 27, 2004 8:05 pm Post subject: Bizarre dhcp problem |
|
|
I'm on a network with a dhcp server, so I use dhcp to set up my (only) network card's configuration. After booting up, however, I'm unable to use the network at all (everything produces a "host unresolvable" error).
The odd thing, though, is that if I delete /var/run/dhcpcd-eth0.pid and run dhcpcd eth0 myself, the connection works fine. Both before and after doing it manually, ifconfig reports an identical configuration of eth0.
I'm wondering if the automatic run of dhcpcd on boot-up isn't filling in my /etc/resolv.conf properly - any ideas what might be causing that?
(If this is really simple, sorry! I'm not very experienced with Linux - but as you can probably tell from the fact I've been through a Gentoo install, I'm learning fast! ^_^) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54827 Location: 56N 3W
|
Posted: Thu May 27, 2004 8:26 pm Post subject: |
|
|
Tsuki,
dhcpd doesn't run on boot. Thats to enable you to serve IP addresses to others. To get an IP from a DHCP server on your network you need to edit /etc/conf.d/net to have just one line uncommented. Thats this one.
This makes eth0 broadcast for a dhcp server.
You also need to have done Code: | rc-update add net.eth0 default | If you do it a second or subsequent time, you just provoke an error message. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Tsuki n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 May 2004 Posts: 42 Location: Southampton, England
|
Posted: Thu May 27, 2004 9:04 pm Post subject: |
|
|
Already checked both of those, I'm afraid ^_^; (I guess I should have mentioned that... sorry!) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Pachacamac Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/64980873541e17d1288359.jpg)
Joined: 22 Nov 2003 Posts: 1264 Location: Paris - France
|
Posted: Thu May 27, 2004 9:30 pm Post subject: |
|
|
? I think it is a problem with your DNS.
Did you try to ping the IP ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|