LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2004, 04:39 PM   #1
jaysturm
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
eth0 fails at boot up And connection SLOW. Please Help!


I am pretty much a newb, but i just installed Mandrake 9.2 and when it boots up it says eth0 Failed when running it's DHCP check.

I've read a few other threads with this issue and found one that told me to run the command : dhcpcd etho
that doesn't exist on mandrake... that i can find anyways.... so I read on and found that dhclient does the same thing. So I ran dhclient eth0 and poof my myson 8139 NIC activates itself and gets DHCP info and works... I can get on the net and everything.

But now I have to run dhclient eveytime i boot to get my NIC activated... it is set to activate on bootup, but it fails everytime Mandrake boots.
Just wondering if anyone can offer any advice on how I can get the NIC to start itself on bootup.

P.S. - I have already disabled Kudzo from the system services app and it had no effect.

Also, I am on a dual-boot drive with windows XP.... my download speed on XP is usually around 300 to 400 k/sec... but on Mandrake it is usually 1 to 3 k/sec. Anyone know why the HUGE loss in speed? I am using a cable modem behind a Linksys router (model: BEFW11S4)

thanks in advance for any help.


:edit: - I just found out how to install packages! woohoo. Now i can use dhcpcd also, does the same as dhclient tho.

Last edited by jaysturm; 02-24-2004 at 05:37 PM.
 
Old 02-24-2004, 07:02 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
You could put
Quote:
dhclient eth0
in /etc/rc.d/rc.local and it will run on each boot.

Sometimes, the reason that this doesn't happen on its own is that you have networking services turned off, or there is a timeout on the connection to DHCP server. If your DHCP server is that other OS, it may not be very quick in issuing an IP address. Some scripts have a 10 second timeout and that other OS cannot manage that...
 
Old 02-24-2004, 07:06 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
what is eth0 attached to? if it isn't attached to another machine running DHCPd or a cable/dsl modem then my reccomendation would be to configure eth0 to have a static IP, a dhcp server probably won't be able to dynamicaly assign it's on NIC anyways as servers need to have static ips so the clients can have consistant access to them
 
Old 02-24-2004, 08:00 PM   #4
jaysturm
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
ok I inserted "/sbin/dhclient eth0" in /etc/rc.d/rc.local
And it worked like a charm... so now my nic is all set up by the time linux is up. Thanks for the help!

now does anyone have a clue as to why my connection has gotten so slow? It literally acts slower than a 56k connection... it is impossible to download anything.

eth0 is a nic in my machine... realtek 8139. the nic is connected to a linksys BEFW11S4 router, which is then connected to my cable modem.

My system is an AMD 1700, 725mb DDR 2700 RAM, NVidia FX 5600, that is dual booted with Mandrake 9.2 and Windows XP.

any help is greatly appreciated. I can't freakin wait till I can run everything in linux and I can uninstall Windows for good.
 
Old 02-24-2004, 11:13 PM   #5
artao
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 22

Rep: Reputation: 15
eth0 fails at boot up

i, too, have been having this problem where eth0 fails to start at boot. I know the card works. Mandrake 9.2. Tyan Tomcat IVd with dual P200, 128M RAM, SMC 83C170QF net card, SB Live! (which doesn't work yet either), and Elsa Gloria Synergy 8Meg graphics.
thanks for the 'dhclient' command, that at least got my router (D-Link DI-604) to see the Linux box. (Also on the network is an XP box, which works fine ...) but then the linux box lost the connection again, nor could I bring up the router's config pages with mozilla (as i can with XP). confused. thinking i may just have to re-install linux again, (and again, and again).
I'm pretty much a newb with linux. though i've fiddled with unix for years as a user, this is my first real (solo) install of linux.
gonna hafta watch this thread, most helpful to my current needs i've found...


hmmmm trying the dhclient command again, it fails to bring up the card .. hmmmmm
 
Old 02-25-2004, 04:02 PM   #6
jaysturm
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
"dhclient eth0" worked to bring my card up. You can also try "dhcpcd eth0".

and if either one of these brings up your nic then put it in the "/etc/rc.d/rc.local" file... this worked great for me.

The only problem i'm having now is the slow connection speed.... it's really getting me mad... I really wanna switch over to linux completely, but won't be able to with this crappy 2 k/sec connection.
Please if anyone has any ideas post or email me at jaysturm@yahoo.com

thanks.

Last edited by jaysturm; 02-25-2004 at 04:03 PM.
 
Old 02-26-2004, 09:57 PM   #7
jaysturm
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I'm just bumping this because I really wanna get it fixed. sry
 
Old 02-27-2004, 08:18 AM   #8
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
Linux normally rocks with netowrking. What NIC do you use? What driver is serving it? If you ype
/sbin/ifconfig eth0
do you see any errors being listed? About the only thing that would give you this kind of performance is a buggy driver / poor connection/ etc. Are there any messages in /var/log/messages about eth0? As root, you could do
#less /var/log/messages
inside, type /eth0 <enter> to find the first instance and type n to get to the next.

as root type
#mii-tool
Does that give any clue?
 
Old 02-27-2004, 09:42 AM   #9
jester87239
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
Hi all...
I also have this problem, and I used the /sbin/dhclient eth0 command. I was able to connect to the internet once I removed and popped in my nic in my laptop, but i rebooted and I still got an error. I added the command to my rc.local file, but the error still showed up at boot time. Am I going to have to remove and re-insert my nic card each time? Is this some sort of wierd hardware issue? Any help would be great.
 
Old 02-27-2004, 03:07 PM   #10
jaysturm
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
lspci says my NIC is :
Ethernet controller: MYSON Technology Inc SURECOM EP-320X-S 100/10M Ethernet PCI Adapter

The NIC is using a fealnx driver module.

When I type /sbin/ifconfig eth0 i get :

eth0 Link encap:Ethernet HWaddr 00:01:00:00:00:00
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1141 errors:0 dropped:0 overruns:0 frame:0
TX packets:1306 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:777737 (759.5 Kb) TX bytes:205880 (201.0 Kb)
Interrupt:5 Base address:0xa800

I don't see any errors in there.

in /var/log/messages I have the following instances of eth0 :

Feb 23 22:14:52 localhost kernel: eth0: 100/10M Ethernet PCI Adapter at 0xa800, 00:00:00:00:00:00, IRQ 5.

Feb 23 22:14:51 localhost ifplugd(eth0)[1048]: Using interface eth0/00:00:00:00:00:00 with driver <fealnx> (version: 2.51)
Feb 23 22:14:51 localhost ifplugd(eth0)[1048]: Using detection mode: SIOCETHTOOL
Feb 23 22:14:51 localhost ifplugd(eth0)[1048]: ifplugd 0.15 successfully initialized, link beat not detected.

Feb 23 22:14:51 localhost network: Bringing up interface eth0: failed

*(it says the above error everytime i boot, but by placing /sbin/dhclient eth0 in /etc/rc.d/rc.local file it still activates)*

And it basically just repeats these entrys down the file... nothing other than the ones above.

Think this could be a driver problem? if so, where on the net can I find a driver database for linux? or does anyone else have a asound 10/100 and have good drivers for it?

Thanks for any help.

Last edited by jaysturm; 02-27-2004 at 03:35 PM.
 
Old 02-27-2004, 03:09 PM   #11
jaysturm
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
jester, I still get that failed message everytime I boot up, but after that the dhclient runs and activates it and then my nic works. (but it's still slow.)
 
Old 02-27-2004, 05:09 PM   #12
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
There are a couple of strange things here. The 00:00:00... thing should have the MAC address of the card...

as root type
#mii-tool
Does that give any clue?

I am almost stumped. Do you have a different NIC you can try with your system?

To what are you connected? An ISP, a cable modem, a router... Are any diagnostics available from that end?

I searched the web for fealnx and found lots of hits to problems. This looks like a reasonable solution:
http://www.scyld.com/pipermail/netdr...ly/000041.html

They give steps to compile a Linux driver for this device. That should increase assurance that the driver will be compatible. Fealnx apparently is a bit buggy.
 
  


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
eth0 fails at boot... fowlerlfc Linux - Hardware 3 06-02-2004 10:52 PM
eth0 fails on boot - mandrake 10 Power_Penguin Linux - Networking 5 04-17-2004 07:16 AM
eth0 fails at boot...on a dell laptop jester87239 Linux - Laptop and Netbook 1 02-28-2004 09:28 PM
eth0 fails at boot...on a dell laptop! jester87239 Linux - Networking 1 02-27-2004 02:14 PM
eth0 fails during OS boot TP Linux - General 1 02-15-2001 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration