LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-26-2006, 02:37 PM   #1
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Rep: Reputation: 30
Mandriva 2006 - eth0 hangs during boot; then fails; have to reconnect manually


I'm having issues with my cable connection. It seems that when I turn on the computer, or reboot it, it hangs when detecting "eth0".
If in verbose mode, it shows "failed".
When I get into my desktop, I have to right click on that network icon near the clock, and go and click on "connect to eth0".
After a couple/few seconds, it connects.

It sure is annoying, being I don't see why it keeps failing, when I can connect it within a few seconds.
 
Old 03-27-2006, 11:19 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,156

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Are you turning on your modem/router at the same time as you are turning on your computer? If so, maybe the computer boots faster than the modem can, so it hasn't had time to establish a connection and "Fails".
Otherwise you'll probably see some useful information about what failed and why in /var/log/messages

HTH
 
Old 03-27-2006, 03:31 PM   #3
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
That stuff is always on. I have no problems with it using windows XP, mandrakelinux 10.1 and suse 10.0

If I don't manually connect, it just never will.

I'll try typing that in sometime, currently on suse, but will check through mandiva soon
 
Old 03-27-2006, 05:32 PM   #4
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
I typed in that command, but all it says is permission denied. Even tried in root and shutdown (maintenance) mode.
Same thing: Permission denied
 
Old 03-28-2006, 03:49 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,156

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
/var/log/messages is not a command, it is a text file. Look at it by opening a terminal, becoming root and typing:
tail -1000 /var/log/messages
There may be some information about why your connection is failing.

Your modem probably has a DHCP server running. You could try the following (as root):
ifdown eth0
dhclient eth0
If that gets you connected then put those lines at the end of the file /etc/rc.d/rc.local and you should be connected at boot time.

HTH
 
Old 03-28-2006, 04:39 PM   #6
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
It seems like it does what you say it will, but when I reboot, it hangs again and it's disconnected when I get on the desktop.
 
Old 03-28-2006, 05:08 PM   #7
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
more detailed:

[root@localhost jeremy]# ifdown eth0
[root@localhost jeremy]# dhclient eth0
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

eth1: unknown hardware address type 24
eth1: unknown hardware address type 24
Listening on LPF/eth0/00:11:2f:d4:51:8f
Sending on LPF/eth0/00:11:2f:d4:51:8f
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.108 -- renewal in 41086 seconds.
[root@localhost jeremy]#


I am going through what you do call "DHCP". When I get on the desktop, I'm disconnected.
When I type in the dhclient eth0, I get connected.
As soon as I reboot, it hangs again, and apon arrival on the desktop, not connected.
 
Old 03-29-2006, 02:06 AM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,156

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
OK, we'll start at the beginning again. Let's go s-l-o-w-l-y.....

1] Your modem is on all the time & is connected to the net.
2] Your computer does not make the connection at boot time.
3] You are able to connect manually with the dhclient eth0 command.
4] This connection does not survive a reboot.

You could find out why your computer does not make the connection at boot time, by examining the output of tail -1000 /var/log/messages, but it seems you haven't done this. If you don't find out why the connection is failing, you can't fix it, but you could ignore it......

You can ignore the failure to connect at boot time, and always connect manually. This might get tedious though.

As I said yesterday, if dhclient eth0 gets you connected, then you should put ifdown eth0
dhclient eth0
as the last two lines in the file /etc/rc.d/rc.local. The contents of this file are executed after your machine has finished booting, but before the desktop comes up. So you'll be connected automatically.
 
Old 03-29-2006, 05:29 AM   #9
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
I'm so sorry. I read that as -tall not -tail. I came up with a ton of info.

Also, I thought when you talked about that being the last two lines, I still thought typing in terminal.
This morning, it hit me. You edit that rc.local or whatever, and place those two in the bottom.
Well, due to that, there's partial success.
It fails detecting the IP address, but as soon as I'm on the desktop, I am connected.

The only issue now, is that long hang up. I can go upstairs, start the car, maybe another thing, and that darn thing is still at boot.
 
Old 03-29-2006, 07:38 PM   #10
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
Final update (I hope anyway)

My onboard LAN card failed. I mean failed. I wasn't even able to connect manually. I went over to SuseLinux 10.0, which had no problems before, but it turned out, I wasn't able to go online there either.
I went on Windows XP, no internet. So that's when I figured my onboard LAN card died.

I popped out a LAN card from another PC, popped it in, it works through windows again as usual.

Also, there was no hang up during the boot sequence in Mandriva, PLUS, it was connected right away!
 
Old 03-30-2006, 05:47 AM   #11
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,156

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Ah Ha! - Hardware problems!
Glad you were able to fix it.
 
Old 04-01-2006, 02:51 PM   #12
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
I want to thank you all for helping me on this problem. I believe I still need that one "dhclient eth1" in that file, so helping me wasn't a total waste of time.
I'm almost certain I do, because mandrakelinux and suselinux worked well, and mandriva didn't.
So, thanks again! I've been shutting it off, rebooting, even reinstalled it to test, and it works!
Many thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandriva 2006 hangs on install p41elvis Linux - Laptop and Netbook 10 03-28-2006 07:30 AM
mandriva 2006 install on hp fails dickgregory Mandriva 5 02-28-2006 06:17 PM
Mandriva 2006 hangs with centrino jpuig Linux - Laptop and Netbook 3 02-25-2006 05:12 PM
Mandriva 2006 hangs at odd times. Streetwise Mandriva 5 02-08-2006 09:17 PM
Module Build Fails Mandriva 2006 rrrssssss Linux - Software 1 11-14-2005 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration