Results 1 to 9 of 9
I used a Stage 3 install of Gentoo; been having issues with dhcp over a period of 3 re-installs.
DHCP worked fine on my first install on the base Gentoo ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-14-2005 #1Just Joined!
- Join Date
- Sep 2005
- Posts
- 4
DHCP errors
I used a Stage 3 install of Gentoo; been having issues with dhcp over a period of 3 re-installs.
DHCP worked fine on my first install on the base Gentoo system, but somehow it stopped working and I re-installed in an attempt to correct it. I have read over the manual several times just to make sure that I wasn't leaving anything out.
I emerged dhcpcd, and I have /etc/conf.d/net set to config_eth0=("dhcp"). I have checked to make sure that this is the correct NIC using "lspci -v" (I have two) and it is. This is not a wireless connection. I am sure that my network is configured correctly; there have been no network changes since the original working install of Gentoo.
Upon boot, Gentoo runs net.eth0 and dhcpcd, but fails to receive an IP address. I also get the error that "netmount" has failed to start.
Everything else is working correctly except my dhcp; it's driving me crazy especially since it has worked before, but refuses to now. This leads me to believe that it is a network problem, but there have been no changes to the network.
The network is MAC restricted, but my MAC address is ok because I can boot to Windows and connect.
I really need some help.
EDIT: I forgot to mention the kernel. I used genkernel as well as coldplug, and coldplug has been added to the boot runlevel. My NIC is a standard Broadcom NIC that has worked with other linux distros in the past.
- 09-14-2005 #2
Re: DHCP errors
Do you have the () in there aswell?
Originally Posted by phrack
The one copy of /etc/conf.d/net that i have that works is:
Code:iface_eth0="dhcp" dhcpcd_eth0="-HD"
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
- 09-14-2005 #3Just Joined!
- Join Date
- Sep 2005
- Posts
- 4
I tried your version of /etc/conf.d/net and it still did not work.
I have, however, found out a situation in which the dhcp DOES work, but it is very strange.
If I put the LiveCD back in, and remount all the partitions and chroot into the environment, using these commands, I will get dhcp working on the immediate reboot following the chroot, but only once. If I reboot again, I can't get dhcp to work.
(hda1 is Windows)
This is very strange to me, but perhaps this sheds some light on my problem for you more advanced linux users.Code:mount /dev/hda4 /mnt/gentoo mount /dev/hda2 /mnt/gentoo/boot cd /mnt/gentoo mount -t proc none /mnt/gentoo/proc chroot /mnt/gentoo /bin/bash env-update source /etc/profile
- 09-14-2005 #4
ok, next time u boot and it dont work, try:
See if that worksCode:env-update source /etc/profile dhcpcd eth0
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
- 09-14-2005 #5Just Joined!
- Join Date
- Sep 2005
- Posts
- 4
I tried it, it does not work.
- 09-15-2005 #6
Do you have your NIC selected in the kernel? You said you used genkernel and that can be kinda buggy sometimes imho. Just do this and check.
cd /usr/src/linux
su
make menuconfig
look under: device drivers: networking support: Ethernet 10-100: then your card.
Then you have mount boot if you don't have it booted.
mount /boot
cp arch/i386/boot/bzimage /boot/kernel(whatever your kernel is saved as)
cp System.map /boot/System.map (or whatever it is named)
oh yeah then reboot.
hope this helps.All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL
- 09-20-2005 #7Just Joined!
- Join Date
- Jun 2005
- Location
- Blackburn, North West England (UK)
- Posts
- 50
Hi.
Just a thought did you do:
(or whatever client your using)Code:rc-update add dhcpcd default
after you emerged it?
- 09-20-2005 #8Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
In addition to this, I beleve the new syntax was with spaces between the parantheses and the '"', like this example:
Originally Posted by skrye
iface_eth0=( "dhcp" )
dhcpcd_eth0="-HDN"
- 09-20-2005 #9No. You rc-update add net.ethX default, where X is the ethernet interface. Then you have to configure your /etc/conf.d/net correctly. Make sure to add the modules=( "dhcpcd" ) to the top. Then what jaboua has is correct for the rest of the config.
Originally Posted by skrye
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy


Reply With Quote
