View previous topic :: View next topic |
Author |
Message |
boojummy Tux's lil' helper
Joined: 21 Oct 2003 Posts: 124 Location: Medford, MA
|
Posted: Mon May 03, 2004 12:33 am Post subject: dhcpcd doesn't run automatically after emerge... [SOLVED] |
|
|
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 |
|
|
jjasghar Guru
Joined: 07 Mar 2004 Posts: 342 Location: $HOME=/usa/tx/austin
|
Posted: Mon May 03, 2004 1:44 am Post subject: |
|
|
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 |
|
|
boojummy Tux's lil' helper
Joined: 21 Oct 2003 Posts: 124 Location: Medford, MA
|
Posted: Mon May 03, 2004 2:13 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|