Click to See Complete Forum and Search --> : gentoo: dhcp not activated on boot
Hi, having installed Gentoo (finally!) after 4 attempts I have a basic installation now.
When I log into the command line and run ifconfig I only get the local address (127.0.0.1). If I run ifconfig -a the eth0 interface shows up but with no IP addresses. Also I cannot ping any external IP addresses / sites.
After googling i found that if I run dhcpcd it brings up the entire network and I can access anything that I like on the net. How can I get the system to run this on startup? Which conf file do I have to edit?
I have tried editing /etc/conf.d/net to no avail.
All help greatly apreciated! :)
Cheers, jme
deathadder
10-24-2003, 05:21 AM
im havin a similiar problem at the moment, but in debain
i have to edit my /etc/network/interfaces file, that's were im stuck at the momemt, what ive got so far is
auto
iface lo inet lo
auto eth0
iface eth0 inet eth0 dhcp
i think thats right but i cant check at the moment cause im not on my computer, i believe i need to add 'server 192.168.0.253' to the end
polle
10-24-2003, 05:39 AM
did you try this ?:
# net-setup eth0
then your dhcp is normally automatcally configured
Originally posted by polle
did you try this ?:
# net-setup eth0
then your dhcp is normally automatcally configured
I did that during the installation thinking just that but still nothing. Alsom, that command doesn't seem to be recognised from the command prompt so it must be a installation only command. :rolleyes:
deathadder I have checked and with Gentoo there's no /etc/network/interfaces file, but I will try and play with what you have and enter it into the /etc/conf.d/net file.
Thanks, both, for the replys. :)
Jme
snuck
10-24-2003, 06:12 AM
Did you (as root) "rc-update add net.eth0 default"? That makes the net.eth0 script run on boot, which brings up eth0. If you did then check /etc/conf.d/net again.
As root "/etc/init.d/net.eth0 start" to get the script to run without rebooting.
polle
10-24-2003, 09:25 AM
sure that the modele for your networkcard is in?:
/etc/modules.autoload.d/kernel-2.4
snuck
10-24-2003, 09:31 AM
It must be mustn't it, if he is running "dhcpcd" and getting eth0 up?
polle
10-24-2003, 09:38 AM
@snuck
Right, you are, bad reading of me
jme,
Since you are new to Gentoo, I highly recommend that you go to their web site and look at their documentation. Gentoo does things differently than the commercial (RPM) distros. Their documentation is well written in most cases and easy to understand. You will save yourself a lot of frustration and time by taking the time to read the docs (most are short, 1 - 3 printed pages).
Originally posted by Hayl
jme,
Since you are new to Gentoo, I highly recommend that you go to their web site and look at their documentation. Gentoo does things differently than the commercial (RPM) distros. Their documentation is well written in most cases and easy to understand. You will save yourself a lot of frustration and time by taking the time to read the docs (most are short, 1 - 3 printed pages).
Thanks Hayl, I've read through most of the Gentoo docs over the past few weeks - thought that I beter prepare myself!! :p
And I'll echo you about the Gentoo docs, they are really great and well written, it's all that I have had to use upto now!!
Also, thanks to everyone else who have replied. Im compiling some apps at the moment so I can't try out what you have said to see if the changes do take effect after a reboot. I will update you when I can reboot.
Cheers, Jme