LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-27-2009, 10:15 AM   #1
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Rep: Reputation: 15
routing issue


I have an Centos 5.2 server running sendmail spamassasin squid and apache.
everything was working fine until a couple of weeks a go.
Suddently I realise that I can't access by website and as well I can not send any e-mails. I tried to shh to the machine to rectify the problem. But I didn't have any access .
I get console access and I see all my interfaces up sendmail is running as well apache and all other services.
Of course I didn't find any errors in any of my logs.
So I thought it has to do with my gateway. I try to ping it, but no response. I did reset my rooter but still the same.
I restarted all services plus the networking. Again the same it seemed like my gateway was unreachable.
OK here comes the WEIRD part. As soon as I restart my server I can ping my gateway and all problems have been rectified.


So I think it's routing problem but I can't figure out what exactly or why this is happening.
Thank you in advance for any help.
 
Old 01-27-2009, 12:14 PM   #2
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi,

Quote:
I restarted all services plus the networking. Again the same it seemed like my gateway was unreachable.
OK here comes the WEIRD part. As soon as I restart my server I can ping my gateway and all problems have been rectified.
it seems that you were having some layer 2 problem,
perhaps just bad NIC, bad RJ connector/wiring or something like that?
just check your ifconfig output - observe those TX/RX error,
and check your NIC or switch led light.

HTH.
 
Old 01-27-2009, 01:12 PM   #3
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Could be anything, if it doesn't reoccur I'd probably be tempted to ignore it for the time being, it could have been a hiccup or a bad command that was passed like "ifconfig eth0 xx.xx.xx.xx netmask 255.0.0.0" when netmask should be 255.255.255.0. If it reoccurs I'd look into the network card first as well as getting the physical server checked if possible (that is see that network connection and activity lights are active).
 
Old 01-29-2009, 04:18 AM   #4
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rossonieri#1 View Post
hi,



it seems that you were having some layer 2 problem,
perhaps just bad NIC, bad RJ connector/wiring or something like that?
just check your ifconfig output - observe those TX/RX error,
and check your NIC or switch led light.

HTH.

I have checked all ready RX/TX errors but I didn't found anything everything was fine in all my nics.
As well I don't think it's wiring problem because my interfaces follow different routes. And when I lose connectivity, I lose connectivity through all interfaces.
My eth0 is a point to point line that goes to the router and then to the outside world
My eth1 is an interface that links me with another node for redundancy reasons in case I lose first node and the two nodes are connected together through a small switch.
My eth2 Interface connects me through a router with an dsl line.
So I don't think it's a wiring or hardware malfunction problem.
 
Old 01-29-2009, 04:24 AM   #5
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by r3sistance View Post
Could be anything, if it doesn't reoccur I'd probably be tempted to ignore it for the time being, it could have been a hiccup or a bad command that was passed like "ifconfig eth0 xx.xx.xx.xx netmask 255.0.0.0" when netmask should be 255.255.255.0. If it reoccurs I'd look into the network card first as well as getting the physical server checked if possible (that is see that network connection and activity lights are active).
It has occurred more than five times in a period of two weeks which is unacceptable.
I am the only administrator for this system and I haven't touched anything in the system concerning the network(ifconfig, route add route delete ....)
Third I am losing connectivity to all three interfaces so it's a bit rare to have a hardware problem in all three of them.
Worst of all, one of the cards I am losing connectivity is my ssh admin interface so I can't even restart the server. I have to go there in person to get console access(it's being twice that this thing happened over the weekend).
 
Old 01-29-2009, 10:31 PM   #6
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi,

Quote:
And when I lose connectivity, I lose connectivity through all interfaces.
try to ping somewhere at the console first, and
please check your ip_forward,

Quote:
connected together through a small switch.
no offense - this small switch could also gives you the problem if you have to many broadcast inside it, and sometimes it acts - sorry - "silly". if you are having this kind of problem one more time - dont reboot the server - try to power cycle that small switch and lets see how it goes.

HTH.
 
  


Reply

Tags
routing



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
Routing issue guanyu Linux - Networking 1 09-10-2006 06:55 AM
routing issue.. inode100 Linux - Networking 12 02-25-2004 03:52 PM
again: routing issue! mule Linux - Networking 4 08-07-2003 08:43 AM
routing issue tanmaya Linux - Networking 1 10-13-2002 10:36 AM
Routing Issue jrmann1999 Linux - Networking 1 01-15-2002 10:58 AM

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

All times are GMT -5. The time now is 05:52 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
Open Source Consulting | Domain Registration