Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Netmount failed - No DHCP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Buck1
n00b
n00b


Joined: 08 Mar 2005
Posts: 20

PostPosted: Fri Mar 18, 2005 3:43 pm    Post subject: Netmount failed - No DHCP Reply with quote

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 :D
Back to top
View user's profile Send private message
egberts
Guru
Guru


Joined: 04 Nov 2003
Posts: 357
Location: Dimmed Cathode Ray Tube

PostPosted: Fri Mar 18, 2005 5:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Buck1
n00b
n00b


Joined: 08 Mar 2005
Posts: 20

PostPosted: Fri Mar 18, 2005 5:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
egberts
Guru
Guru


Joined: 04 Nov 2003
Posts: 357
Location: Dimmed Cathode Ray Tube

PostPosted: Fri Mar 18, 2005 10:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Fri Mar 18, 2005 10:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
ToastedBagel
n00b
n00b


Joined: 10 Mar 2005
Posts: 3

PostPosted: Sat Mar 19, 2005 1:21 am    Post subject: Reply with quote

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
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Sat Mar 19, 2005 1:27 am    Post subject: Reply with quote

Modify that in your /etc/conf.d/net file like so...

Code:
dhcpcd_eth0="-HD -t 10"
Back to top
View user's profile Send private message
ToastedBagel
n00b
n00b


Joined: 10 Mar 2005
Posts: 3

PostPosted: Sat Mar 19, 2005 1:40 am    Post subject: Reply with quote

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
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Sat Mar 19, 2005 1:43 am    Post subject: Reply with quote

Wait... isn't it -hD?
Back to top
View user's profile Send private message
ToastedBagel
n00b
n00b


Joined: 10 Mar 2005
Posts: 3

PostPosted: Sat Mar 19, 2005 1:44 am    Post subject: Reply with quote

what's the difference?
Back to top
View user's profile Send private message
egberts
Guru
Guru


Joined: 04 Nov 2003
Posts: 357
Location: Dimmed Cathode Ray Tube

PostPosted: Sat Mar 19, 2005 4:56 am    Post subject: Reply with quote

egberts wrote:
I posted troubleshooting for eth0 failure, but you say netmount....

Try this

https://forums.gentoo.org/viewtopic-t-310169-highlight-.html


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
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Sat Mar 19, 2005 6:14 am    Post subject: Reply with quote

egberts wrote:
egberts wrote:
I posted troubleshooting for eth0 failure, but you say netmount....

Try this

https://forums.gentoo.org/viewtopic-t-310169-highlight-.html


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
View user's profile Send private message
SubTexel
n00b
n00b


Joined: 28 Jan 2003
Posts: 72
Location: Hampton, VA

PostPosted: Sat Mar 19, 2005 6:30 am    Post subject: Reply with quote

yaneurabeya wrote:
egberts wrote:
egberts wrote:
I posted troubleshooting for eth0 failure, but you say netmount....

Try this

https://forums.gentoo.org/viewtopic-t-310169-highlight-.html


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
View user's profile Send private message
Buck1
n00b
n00b


Joined: 08 Mar 2005
Posts: 20

PostPosted: Sat Mar 19, 2005 8:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
StrCrssd
n00b
n00b


Joined: 17 Apr 2002
Posts: 68
Location: McAllen, TX USA

PostPosted: Sat Mar 19, 2005 8:55 pm    Post subject: Same Problem Reply with quote

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
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Sat Mar 19, 2005 9:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Buck1
n00b
n00b


Joined: 08 Mar 2005
Posts: 20

PostPosted: Sat Mar 19, 2005 10:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Sat Mar 19, 2005 11:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Buck1
n00b
n00b


Joined: 08 Mar 2005
Posts: 20

PostPosted: Sat Mar 19, 2005 11:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Sat Mar 19, 2005 11:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Sun Mar 20, 2005 2:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Buck1
n00b
n00b


Joined: 08 Mar 2005
Posts: 20

PostPosted: Sun Mar 20, 2005 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Daishi
n00b
n00b


Joined: 09 Feb 2005
Posts: 40

PostPosted: Sun Mar 20, 2005 5:00 pm    Post subject: Reply with quote

Hey Buck1, I've been having the exact same problem as you for the past few days, check this post it solved the problem for me..

https://forums.gentoo.org/viewtopic-t-308930-highlight-netmount.html

Hope that helps.

-Fredric
Back to top
View user's profile Send private message
Buck1
n00b
n00b


Joined: 08 Mar 2005
Posts: 20

PostPosted: Mon Mar 21, 2005 9:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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