Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bizarre dhcp problem
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
Tsuki
n00b
n00b


Joined: 27 May 2004
Posts: 42
Location: Southampton, England

PostPosted: Thu May 27, 2004 8:05 pm    Post subject: Bizarre dhcp problem Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54827
Location: 56N 3W

PostPosted: Thu May 27, 2004 8:26 pm    Post subject: Reply with quote

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.
Code:
iface_eth0="dhcp"

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
View user's profile Send private message
Tsuki
n00b
n00b


Joined: 27 May 2004
Posts: 42
Location: Southampton, England

PostPosted: Thu May 27, 2004 9:04 pm    Post subject: Reply with quote

Already checked both of those, I'm afraid ^_^; (I guess I should have mentioned that... sorry!)
Back to top
View user's profile Send private message
Pachacamac
Veteran
Veteran


Joined: 22 Nov 2003
Posts: 1264
Location: Paris - France

PostPosted: Thu May 27, 2004 9:30 pm    Post subject: Reply with quote

Quote:
host unresolvable
? I think it is a problem with your DNS.

Did you try to ping the IP ?
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