Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd doesn't run automatically after emerge... [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
boojummy
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2003
Posts: 124
Location: Medford, MA

PostPosted: Mon May 03, 2004 12:33 am    Post subject: dhcpcd doesn't run automatically after emerge... [SOLVED] Reply with quote

Hello,

I'm pretty ignorant when it comes to networking, so I need a little help finding the source of this problem.

Basically, after doing an emerge world (and a reboot), my networking stopped working. I verified that the machine was still plugged in, that the machine still recognized the NIC, that the module still loaded OK (sungem on ppc). But any attempt to actually use the networking (e.g., ping [host]) would return a "network unreachable" error.

It occurred to me that there might be a DHCP problem, so I told dhcpcd to renew the lease manually ('dhcpcd -n'). Voila! Networking works. Turns out it wasn't getting an address on startup. However, every time I restart the machine, I have to rerun 'dhcpcd -n' to get my networking going again. Seems that some configuration information must have gotten wiped out somewhere.

Can anyone tell me how to reconfigure my machine to use dhcp every time it boots?

Thanks,

-b


Last edited by boojummy on Mon May 03, 2004 2:13 am; edited 1 time in total
Back to top
View user's profile Send private message
jjasghar
Guru
Guru


Joined: 07 Mar 2004
Posts: 342
Location: $HOME=/usa/tx/austin

PostPosted: Mon May 03, 2004 1:44 am    Post subject: Reply with quote

rc-upate show

to see if it's part if the default runlevel

if not--> rc-upate add dhcpcd default

also-----> /etc/init.d/net.eth0 start

if your eth0 goes down at any time
_________________
#include <LinuxUser #324070>
main()
{
printf("and i'm sorry my spellign sucs.");
}
Back to top
View user's profile Send private message
boojummy
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2003
Posts: 124
Location: Medford, MA

PostPosted: Mon May 03, 2004 2:13 am    Post subject: Reply with quote

Aha, after poking around a little, I realized that I am an idiot. There was no /etc/init.d/dhcpcd initscript, but there was a dhcp one. However, my guess is that's if I want to run a dhcp server, not a client.

So I looked through the net.eth0 initscript, and I saw this, at the top:
Quote:
#NB: Config is in /etc/conf.d/net


Duh, looks like I blindly overwrote the /etc/conf.d/net script with etc-update. I guess this is a good example of why I should know what all those scripts do before I replace them, ha!

-b
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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