Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net.eth0 won't work...suddenly?
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
shivamohan
n00b
n00b


Joined: 19 Jul 2004
Posts: 39
Location: Ontario, Canada

PostPosted: Mon Jul 19, 2004 1:58 pm    Post subject: net.eth0 won't work...suddenly? Reply with quote

Hi,

My network has been working fine since I installed Gentoo (for the most part). However, yesterday, I unplugged my LAN wire to move my notebook, and re-plugged it later.

Suddenly, the net.eth0 script stopped working. I am unable to either start it manually. It also doesn't start properly on booting up. I have rebooted with gentoo dev. sources, gentoo sources, and vanilla sources, but it fails to work with any of them.

I then tried to boot up with the basic installation CD, but still, the network doesn't work!

I know that the proper kernel module is loaded (xirc2ps_cs). ifconfig eth0 works.

The router does work...other computers on it are able to connect to the internet / to each other no problem.

Thanks.

Best,
Shiva Mohan


Last edited by shivamohan on Fri Jul 23, 2004 12:12 am; edited 2 times in total
Back to top
View user's profile Send private message
barbar
Guru
Guru


Joined: 16 Apr 2003
Posts: 397
Location: Austria

PostPosted: Mon Jul 19, 2004 4:08 pm    Post subject: Reply with quote

Does dmesg give any messages about harware failure ?
Is your ip assigned with dhcp from your router ? What happens when you restart your router ?
Back to top
View user's profile Send private message
shivamohan
n00b
n00b


Joined: 19 Jul 2004
Posts: 39
Location: Ontario, Canada

PostPosted: Tue Jul 20, 2004 1:39 pm    Post subject: Reply with quote

barbar wrote:
Does dmesg give any messages about harware failure ?


The only failures reported with dmesg were :
Code:

ACPI disabled because your bios is from 1999 and too old
You can enable it with acpi=force
.
.
.
eth%d: autonegotiation failed; using 10mbs
eth%d: MII selected
eth%d: media 10BaseT, silicon revision 5
eth0: Xircom: port 0x300, irq 3, hwaddr 00:10:A4:C4:0B:E1
eth0: autonegotiation failed; using 10mbs
eth0: MII selected
eth0: media 10BaseT, silicon revision 5


barbar wrote:
Is your ip assigned with dhcp from your router ?

Yes, my IP is assigned via a DHCP server on the router.
barbar wrote:
What happens when you restart your router ?

I tried restarting my router and updating its firmware, but that didn't make any changes. I also tried connecting my notebook to the network at my University, but it wasn't able to connect to that either.
Quote:
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Tue Jul 20, 2004 2:28 pm    Post subject: Reply with quote

I dont know if this is related but I have a similar pb which started last night 4am.

I have not been able to connect from gentoo since.

First all has been stable for months.
I did a fair bit of time on the net yesterday into the small hours. No pbs.

I needed to build xfd and jfs into my kernel (2.6.6-love4 beautifully stable) so I did the necessary and rebooted .

I have not been able to connect since.

Obviously I put the kernel back as it was , even if I seriously doubt this was the cause.

I am currently connected off an old winbox so the adsl link is good. This was not the case earlier so I believe the original pb was my ISP.

I have rebooted endless times power-cycled the modem etc.

Run through adsl-setup loads but all I get is timeouts on adsl-connenct.

The "link" diode no longer flashes during connection so I think my gentoo has been stuffed somewhere along the line.

Sorry that's a bit long bit I need to say what I've done rather than a non-specific post.

Thanks. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Soulcito
Developer
Developer


Joined: 01 Jul 2004
Posts: 48
Location: Lima - Peru

PostPosted: Tue Jul 20, 2004 8:20 pm    Post subject: Reply with quote

shivamohan, have you tried using your linuxbox as the router?
_________________
"Live as if you were to die tomorrow. Learn as if you were to live forever"
http://soulse.blogspot.com
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Tue Jul 20, 2004 8:48 pm    Post subject: Reply with quote

shivamohan wrote:

Code:


eth%d: autonegotiation failed; using 10mbs
eth%d: MII selected
eth%d: media 10BaseT, silicon revision 5
eth0: Xircom: port 0x300, irq 3, hwaddr 00:10:A4:C4:0B:E1
eth0: autonegotiation failed; using 10mbs
eth0: MII selected
eth0: media 10BaseT, silicon revision 5



Those warnings indicate a hardware failure. In other words, the driver is working but the card itself cannot use NWAY negotiation to determine the speed of the remote port. NWAY usually works well but has been known to fail in various ways -- though it would be unusual for it to be working for a good while and then suddenly fail.

This could be cabling - you should replace your cable if you haven't already. If the cable is fine, it could be the NIC itself. Look into forcing it to a particular speed and duplex setting and see if that resolves the problem. Also try another network card if you can and see if that works (which will also double-check the cabling).

EDIT: also, if the link light is not flashing or is dimmer than usual, that points directly at the NIC hardware itself. Assuming the link is good and the driver is loaded, the link light should be lit, regardless of the state of the interface. NICs can fail like this from power surges -- they even sell surge protectors for network lines. If your ISP was having a problem it may have trickled down to you.
Back to top
View user's profile Send private message
shivamohan
n00b
n00b


Joined: 19 Jul 2004
Posts: 39
Location: Ontario, Canada

PostPosted: Wed Jul 21, 2004 1:45 pm    Post subject: Reply with quote

Thanks a lot! The problem is fixed.

aetius wrote:
EDIT: also, if the link light is not flashing or is dimmer than usual, that points directly at the NIC hardware itself.

Yup...you were right...the light wasn't flashing.
aetius wrote:
it could be the NIC itself. Look into forcing it to a particular speed and duplex setting and see if that resolves the problem.

Yup...that was it!
After following some of the info from https://forums.gentoo.org/viewtopic.php?t=26716 , it's started working.

Thanks again. Glad it wasn't the card itself that was broken.

EDIT: Forgot to mention, I didn't remove the PCMCIA support in the kernel (as was suggested by the aforementioned link).
Back to top
View user's profile Send private message
shivamohan
n00b
n00b


Joined: 19 Jul 2004
Posts: 39
Location: Ontario, Canada

PostPosted: Fri Jul 23, 2004 12:15 am    Post subject: Reply with quote

oops...guess I counted my eggs before they were in the basket (or something like that)...lol :(

After rebooting, it stopped working again!

I found the LED's on my network card...they start flashing on when the hotpluggin starts at boot time...after that they become dormant...not a peep.

I tried manually settting the duplex setting etc. for the xirc2ps_cs module, but it made no change.

Any help?...
Back to top
View user's profile Send private message
shivamohan
n00b
n00b


Joined: 19 Jul 2004
Posts: 39
Location: Ontario, Canada

PostPosted: Fri Jul 23, 2004 12:16 am    Post subject: Reply with quote

Soulcito wrote:
shivamohan, have you tried using your linuxbox as the router?

nope
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Mon Jul 26, 2004 8:14 pm    Post subject: Reply with quote

shivamohan wrote:
I found the LED's on my network card...they start flashing on when the hotpluggin starts at boot time...after that they become dormant...not a peep.


That indicates that at least at some point you had a link, and then it went away. Hrmm.

shivamohan wrote:
I tried manually settting the duplex setting etc. for the xirc2ps_cs module, but it made no change.


When you changed the settings, what was the output of mii-tool/ethtool?

Logs logs logs. And more logs. We need to see dmesg from the current boot, the part that relates to the network. We need to see the output from dhcpd -d so we can see what is happening when dhcpcd tries to run. Also, add the output of mii-tool/ethtool so we can see what the link looks like. Heck, even the output of net.eth0 when you try to run it would be helpful.

You'll be ecstatic to know that hotplug runs net.eth0 at boot when it finds a card during the boot process. I am still leaing towards this being a problem between your machine and the router, since you were having trouble establishing an NWAY negotiation for network speed on the previous log.
Back to top
View user's profile Send private message
shivamohan
n00b
n00b


Joined: 19 Jul 2004
Posts: 39
Location: Ontario, Canada

PostPosted: Tue Jul 27, 2004 6:58 pm    Post subject: Reply with quote

Actually, the problem is solved (sort of)...I saw a great sale at a local computer hardware shop, and decided to upgrade to wireless. Got it for a dead cheap price!

The wireless card is working fine...no probs (which is strange, since I have heard horror stories of wireless and Linux?).

Thanks to all of you for your time and useful inputs! I'll probably take my card one of these days to one of my friends notebook to see if it wokrs there.

Best,
SM
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