LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 05-04-2012, 04:35 PM   #1
sofly
LQ Newbie
 
Registered: Jun 2011
Distribution: RHEL, Debian
Posts: 21

Rep: Reputation: Disabled
Internet dead all of a sudden, nothing changed.


I run a small server w/ CentOS 5.8. It's main function is as a samba fileserver.

It has a static IP, and was working until last night. I got a call that the network was down, and when I got to the office it was the only machine without a connection. It's on a wired connection that's plugged directly into the switch rack. I also moved it directly into the router, which didn't work. I've also tried the usual boring stuff (rebooting the network service in init.d, etc.). Nothing seems to be working :/

I'm no expert with logs in linux, is there a network log that I can find? What's the best troubleshooting step to see what's going wrong with the machine?

Thanks
 
Old 05-04-2012, 08:06 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,907

Rep: Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284
You can run lspci to see whether the network card is still being seen and boot to a live CD of something to see whether the networking works with it. If it doesn't, it's likely hardware.

I got a dollar to a doughnut that the single most productive thing you can do is swap out the ethernet card with a known-good card.
 
Old 05-04-2012, 08:13 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 10,275

Rep: Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258
I hate to start off with this but is the ethernet cable plugged in?

Lights on back of nic?

Do you have a loopback ethernet connector or cable?

Any lights on router?

Results of commands like ifconfig netstat or arp maybe.
 
Old 05-04-2012, 10:44 PM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 115Reputation: 115
Does "ifconfig eth0" show "RUNNING" in the status?
 
Old 05-07-2012, 09:23 AM   #5
sofly
LQ Newbie
 
Registered: Jun 2011
Distribution: RHEL, Debian
Posts: 21

Original Poster
Rep: Reputation: Disabled
After investigating a bit further, I'm pretty sure this is a NIC hardware issue. I haven't had time to test much. The NIC still shows on lspci, and I am seeing just the green light on the back on the CPU where the ethernet is plugged in. eth0 is running as well, which really makes me think this is hardware related. How known are NICs for just dying, but still appearing to function?

I'm going to boot to a LiveCD tonight to test it. I'll post any results, and as usual, any advice is much appreciated

Last edited by sofly; 05-07-2012 at 10:11 AM.
 
Old 05-07-2012, 08:27 PM   #6
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,907

Rep: Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284
Don't overlook the simplest cause--try swapping out the ethernet cable too. I had one of those go bad on me about a year ago.
 
Old 05-08-2012, 02:22 AM   #7
es0teric
Member
 
Registered: Apr 2007
Distribution: Ubuntu
Posts: 93

Rep: Reputation: 19
Check /var/log/messages or /var/log/syslog around those timeframes, as well as dmesg. Those may provide insight.

You can also setup a ping test to another LAN box to run 1000 times or something, and see if any packet loss occurs.
 
Old 05-09-2012, 05:00 PM   #8
sofly
LQ Newbie
 
Registered: Jun 2011
Distribution: RHEL, Debian
Posts: 21

Original Poster
Rep: Reputation: Disabled
A really weird thing happened yesterday. I was sitting in my chair wondering why the NIC would crap out on me out of nowhere. I built this machine myself, so I was about to crack it open as I noticed that the power cable was a tad loose. I had already begun setting up a new server and was going to clone all of our data over to it. When I plugged the power cable back in all the way (it had ~1/4 inch to go), the computer booted up and was running at normal speed with an internet connection.

I'm a EECS major in college, and I'm REALLY curious as to why this happened - did lack of power or signal flow somehow temporarily sieze the mobo and [for some reason] the peripherals and components weren't getting the right voltage or current? Probably going to start another thread about this...

Lesson learned - before you troubleshoot a "dead" NIC, unplug everything, open it up, make sure it's all good, plug everything back in, and give it 1 more go before you throw the flag.

Last edited by sofly; 05-09-2012 at 05:02 PM.
 
Old 05-09-2012, 08:48 PM   #9
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,907

Rep: Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284
Wow. I'm not qualified enough as an electrician to have an idea. My guess would be that there wasn't enough contact between the surfaces to allow an adequate flow of current, but that is a guess based on complete and total ignorance. Or perhaps a bit of corrosion built up on the contacts and reseating the cable cleaned it off.

Your troubleshooting principle is excellent though. Even when it's likely not a hardware problem, five minutes of reseating cables and other simple hardware tests are quick and easy and can save hours of agonizing over software.

Glad you are running again.
 
  


Reply

Tags
broken, centos, internet, linux, networking


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changed Resoulation Key board went dead cthomas Linux - Software 3 02-02-2007 08:55 PM
sudden internet slowdown when using suse, but not xp ungua Suse/Novell 10 01-30-2007 10:39 AM
Laptop battery dead? Worked for months but sudden apparent failure! the_variant Linux - Laptop and Netbook 1 06-02-2005 04:07 PM
Squid:2nd Browser access Internet SPEED dead becomes dead slow mwj Linux - Software 1 10-04-2003 01:40 PM
changed location eth1 dead guanyu Linux - Networking 4 04-17-2002 12:02 AM


All times are GMT -5. The time now is 05:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration