View previous topic :: View next topic |
Author |
Message |
Buck1 n00b
Joined: 08 Mar 2005 Posts: 20
|
Posted: Fri Mar 18, 2005 3:43 pm Post subject: Netmount failed - No DHCP |
|
|
Hello,
I'm trying to get DHCP to work (Well, the "easiest" connection anyway) so i can connect to the internet.
I went through the handbook during install, i reboot without the LiveCD and have no network/internet.
In the boot up it shows "Starting DHCP... netmount failed" or something similar.
Ive tried setting the netowrk up again but no luck, if anyone can help me i will be very pleased, thanks |
|
Back to top |
|
|
egberts Guru
Joined: 04 Nov 2003 Posts: 357 Location: Dimmed Cathode Ray Tube
|
Posted: Fri Mar 18, 2005 5:06 pm Post subject: |
|
|
I posted troubleshooting for eth0 failure, but you say netmount....
Try this
https://forums.gentoo.org/viewtopic-t-310169-highlight-.html _________________ Clusters of Fry's Special, AMD 2200, 2 GB DDR, 220 GB (2008.1/desktop, stage 1, -O3) x8
HP Compaq Fry's SPecial, AMD 2100, 2 GB DDR, 260 GB (2008.0/server, stage 1, -O3)
Ultra Sparc 5, 256MB, 3GB (2006.1/server, stage 1, -O3) |
|
Back to top |
|
|
Buck1 n00b
Joined: 08 Mar 2005 Posts: 20
|
Posted: Fri Mar 18, 2005 5:34 pm Post subject: |
|
|
Its worked before, it seems i don't have netowrk at all, is there a way i cna get net-setup like installer or some configuration file to fix it or anything? |
|
Back to top |
|
|
egberts Guru
Joined: 04 Nov 2003 Posts: 357 Location: Dimmed Cathode Ray Tube
|
Posted: Fri Mar 18, 2005 10:55 pm Post subject: |
|
|
Try the steps I gave and report back the result....
I'll try and help you diagnose this problem. _________________ Clusters of Fry's Special, AMD 2200, 2 GB DDR, 220 GB (2008.1/desktop, stage 1, -O3) x8
HP Compaq Fry's SPecial, AMD 2100, 2 GB DDR, 260 GB (2008.0/server, stage 1, -O3)
Ultra Sparc 5, 256MB, 3GB (2006.1/server, stage 1, -O3) |
|
Back to top |
|
|
yaneurabeya Veteran
Joined: 13 May 2004 Posts: 1754 Location: Seattle
|
Posted: Fri Mar 18, 2005 10:58 pm Post subject: |
|
|
Have you emerged dhcpcd and make the relevant configuration modifications to your /etc/conf.d file? Also, your network card's kernel driver is loaded on boot, correct?
Please copy your /etc/conf.d file here. |
|
Back to top |
|
|
ToastedBagel n00b
Joined: 10 Mar 2005 Posts: 3
|
Posted: Sat Mar 19, 2005 1:21 am Post subject: |
|
|
I am having a similar problem, where DHCP got screwed up, and I unemerged and re-emerged it (dhcpcd).
But now it won't connect on boot. I can still connect by typing (as root): dhcpcd eth0 -HD -t 10
but that is of course annoying and tedious to do EVERY BOOT.
I just need to know where the info has to go: in /etc/init.d/net.eth0 ? Would should it look like? |
|
Back to top |
|
|
yaneurabeya Veteran
Joined: 13 May 2004 Posts: 1754 Location: Seattle
|
Posted: Sat Mar 19, 2005 1:27 am Post subject: |
|
|
Modify that in your /etc/conf.d/net file like so...
Code: | dhcpcd_eth0="-HD -t 10" |
|
|
Back to top |
|
|
ToastedBagel n00b
Joined: 10 Mar 2005 Posts: 3
|
Posted: Sat Mar 19, 2005 1:40 am Post subject: |
|
|
yaneurabeya wrote: | Modify that in your /etc/conf.d/net file like so...
Code: | dhcpcd_eth0="-HD -t 10" |
|
That is already done, and DHCP doesn't even try to start on boot...
it says: Bringing eth0 up.....
and that's all it says about it, it keeps going right to everything else booting |
|
Back to top |
|
|
yaneurabeya Veteran
Joined: 13 May 2004 Posts: 1754 Location: Seattle
|
Posted: Sat Mar 19, 2005 1:43 am Post subject: |
|
|
Wait... isn't it -hD? |
|
Back to top |
|
|
ToastedBagel n00b
Joined: 10 Mar 2005 Posts: 3
|
Posted: Sat Mar 19, 2005 1:44 am Post subject: |
|
|
what's the difference? |
|
Back to top |
|
|
egberts Guru
Joined: 04 Nov 2003 Posts: 357 Location: Dimmed Cathode Ray Tube
|
Posted: Sat Mar 19, 2005 4:56 am Post subject: |
|
|
DHCP is not resolving.... Please check the link above to troubleshoot the ethernet.
# tcpdump -vv -s 0 -i eth0 _________________ Clusters of Fry's Special, AMD 2200, 2 GB DDR, 220 GB (2008.1/desktop, stage 1, -O3) x8
HP Compaq Fry's SPecial, AMD 2100, 2 GB DDR, 260 GB (2008.0/server, stage 1, -O3)
Ultra Sparc 5, 256MB, 3GB (2006.1/server, stage 1, -O3) |
|
Back to top |
|
|
yaneurabeya Veteran
Joined: 13 May 2004 Posts: 1754 Location: Seattle
|
Posted: Sat Mar 19, 2005 6:14 am Post subject: |
|
|
egberts wrote: |
DHCP is not resolving.... Please check the link above to troubleshoot the ethernet.
# tcpdump -vv -s 0 -i eth0 |
Read his post about how directly invoking dhcpcd he is able to get a DHCP ticket. The problem is with his /etc/conf.d/net file or with dhcpcd, not with packet loss, or his overall 'ethernet' connection. |
|
Back to top |
|
|
SubTexel n00b
Joined: 28 Jan 2003 Posts: 72 Location: Hampton, VA
|
Posted: Sat Mar 19, 2005 6:30 am Post subject: |
|
|
yaneurabeya wrote: | egberts wrote: |
DHCP is not resolving.... Please check the link above to troubleshoot the ethernet.
# tcpdump -vv -s 0 -i eth0 |
Read his post about how directly invoking dhcpcd he is able to get a DHCP ticket. The problem is with his /etc/conf.d/net file or with dhcpcd, not with packet loss, or his overall 'ethernet' connection. |
Run dmesg | grep eth0 and tell us the output. _________________ Linux Registered user: 221337 |
|
Back to top |
|
|
Buck1 n00b
Joined: 08 Mar 2005 Posts: 20
|
Posted: Sat Mar 19, 2005 8:47 pm Post subject: |
|
|
Errm.. i'm really confused on what i should do here XD
If anyone can just give me simple (n00b style) steps i'll be good to go. ^_^; |
|
Back to top |
|
|
StrCrssd n00b
Joined: 17 Apr 2002 Posts: 68 Location: McAllen, TX USA
|
Posted: Sat Mar 19, 2005 8:55 pm Post subject: Same Problem |
|
|
I'm having this same problem.
It appears to bring net.eth0 up during the "boot" part of the cycle, then brings it down (improperly) due to a netmount problem, then up again during the "default" runlevel. During the default runlevel, it encounters the leftover pid file from the first attempt and bails.
I'm working on it now. _________________ StrCrssd
Give a man enough rope, he'll hang himself. Teach a man to make rope, he'll hang other people. |
|
Back to top |
|
|
Sith_Happens Veteran
Joined: 15 Dec 2004 Posts: 1807 Location: The University of Maryland at College Park
|
Posted: Sat Mar 19, 2005 9:13 pm Post subject: |
|
|
Running dhcpcd -d eth0 then running dmesg could give you some additional information. _________________ "That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall |
|
Back to top |
|
|
Buck1 n00b
Joined: 08 Mar 2005 Posts: 20
|
Posted: Sat Mar 19, 2005 10:55 pm Post subject: |
|
|
Hey, is there anything i can do while i'm in knoppix, its a real pain to keep rebooting all the time. |
|
Back to top |
|
|
Sith_Happens Veteran
Joined: 15 Dec 2004 Posts: 1807 Location: The University of Maryland at College Park
|
Posted: Sat Mar 19, 2005 11:23 pm Post subject: |
|
|
Buck1 wrote: | Hey, is there anything i can do while i'm in knoppix, its a real pain to keep rebooting all the time. | You could post the gentoo installations /etc/conf.d/net file. _________________ "That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall |
|
Back to top |
|
|
Buck1 n00b
Joined: 08 Mar 2005 Posts: 20
|
Posted: Sat Mar 19, 2005 11:28 pm Post subject: |
|
|
Ok, my conf.d/net is:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
dhcpcd_eth0="HD"
dhcpcd_eth0="-N"
# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
# For setting the default gateway
#
#gateway="eth0/192.168.0.1" |
|
Back to top |
|
|
Sith_Happens Veteran
Joined: 15 Dec 2004 Posts: 1807 Location: The University of Maryland at College Park
|
Posted: Sat Mar 19, 2005 11:40 pm Post subject: |
|
|
Comment out this line: Code: | iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" | And combine these two lines together: Code: | dhcpcd_eth0="HD"
dhcpcd_eth0="-N"
#into
dhcpcd_eth0="-NHD" | See if that fixes your problem. _________________ "That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall |
|
Back to top |
|
|
yaneurabeya Veteran
Joined: 13 May 2004 Posts: 1754 Location: Seattle
|
Posted: Sun Mar 20, 2005 2:22 am Post subject: |
|
|
Which is what I suggested doing initially. Please read my directions about posting your conf accordingly if you want to be helped in a timely manner.
Note: Having your interface line uncommented doesn't do anything. It's the double dhcpcd_eth0 part that's confusing the rc script. Believe me, I've tried . |
|
Back to top |
|
|
Buck1 n00b
Joined: 08 Mar 2005 Posts: 20
|
Posted: Sun Mar 20, 2005 8:25 am Post subject: |
|
|
Ok well i changed the conf.d/net
Nothing changed, netmount still doesn't start. Will it be a good idea to re-emerge it?
Or any other suggestion would be nice. |
|
Back to top |
|
|
Daishi n00b
Joined: 09 Feb 2005 Posts: 40
|
|
Back to top |
|
|
Buck1 n00b
Joined: 08 Mar 2005 Posts: 20
|
Posted: Mon Mar 21, 2005 9:28 pm Post subject: |
|
|
Yay, i fixed it... sort of.
I got it working finally and i'm posting using Gentoo! yay!
to fix it, I just reinstalled, not the best idea, but it worked. |
|
Back to top |
|
|
|