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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-26-2006, 02:37 PM
|
#1
|
Member
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338
Rep:
|
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.
|
|
|
03-27-2006, 11:19 AM
|
#2
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,156
|
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
|
|
|
03-27-2006, 03:31 PM
|
#3
|
Member
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338
Original Poster
Rep:
|
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
|
|
|
03-27-2006, 05:32 PM
|
#4
|
Member
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338
Original Poster
Rep:
|
I typed in that command, but all it says is permission denied. Even tried in root and shutdown (maintenance) mode.
Same thing: Permission denied
|
|
|
03-28-2006, 03:49 AM
|
#5
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,156
|
/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
|
|
|
03-28-2006, 04:39 PM
|
#6
|
Member
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338
Original Poster
Rep:
|
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.
|
|
|
03-28-2006, 05:08 PM
|
#7
|
Member
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338
Original Poster
Rep:
|
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.
|
|
|
03-29-2006, 02:06 AM
|
#8
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,156
|
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.
|
|
|
03-29-2006, 05:29 AM
|
#9
|
Member
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338
Original Poster
Rep:
|
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.
|
|
|
03-29-2006, 07:38 PM
|
#10
|
Member
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338
Original Poster
Rep:
|
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! 
|
|
|
03-30-2006, 05:47 AM
|
#11
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,156
|
Ah Ha! - Hardware problems!
Glad you were able to fix it.
|
|
|
04-01-2006, 02:51 PM
|
#12
|
Member
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338
Original Poster
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 06:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|