LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-30-2008, 02:19 PM   #1
lenafabr
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
sudden loss of ability to access network (can ssh in but not ssh out)


I have a machine running Red Hat enterprise Linux. When I came in this morning it was unable to access the network in any way. Ping and ssh both time out, I can't access websites. However, I had an open ssh session up from a couple days ago where I was logged remotely onto a different computer and that did not break off and was still working normally. Also, I can still ssh into the Red Hat machine from a different machine (running OsX in this case). So somehow it seems able to accept connections going in but not going out.

I don't think I changed any settings or anything that should have affected internet connection between yesterday and today when this problem happened.

Does anyone have any ideas what could be causing this or how to fix it?!

Thanks,
Lena
 
Old 10-30-2008, 03:05 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by lenafabr View Post
I have a machine running Red Hat enterprise Linux. When I came in this morning it was unable to access the network in any way. Ping and ssh both time out, I can't access websites. However, I had an open ssh session up from a couple days ago where I was logged remotely onto a different computer and that did not break off and was still working normally. Also, I can still ssh into the Red Hat machine from a different machine (running OsX in this case). So somehow it seems able to accept connections going in but not going out.

I don't think I changed any settings or anything that should have affected internet connection between yesterday and today when this problem happened.

Does anyone have any ideas what could be causing this or how to fix it?!

Thanks,
Lena
Hmm...did anything change elsewhere, like your networking guys upgrading routers/switches/firewalls? If you can get to it, what do the routing tables and ifconfig's say? (ifconfig -a and netstat -nr). And is this box DHCP or static IP?

If you're feeling brave (since you're having spotty network access), you can try to (as root), run "/etc/init.d/network restart", which will bounce the interfaces. I've seen similar things happen here, when the ARP tables on the networking hardware get....confused.....
 
Old 10-30-2008, 03:31 PM   #3
lenafabr
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
I tried running "/etc/init.d/network restart" it brought everything down and back up just fine (no error messages) but it didn't fix the problem.
The box is using static IP.


Here is the result of ifconfig -a:
eth0 Link encap:Ethernet HWaddr 00:19:B9:42:C4:91
inet addr:171.64.127.208 Bcast:171.64.255.255 Mask:255.255.0.0
inet6 addr: fe80::219:b9ff:fe42:c491/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:85 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8254 (8.0 KiB) TX bytes:2224 (2.1 KiB)
Interrupt:169

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2437 errors:0 dropped:0 overruns:0 frame:0
TX packets:2437 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1802377 (1.7 MiB) TX bytes:1802377 (1.7 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Here is the result of netstat -nr:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
171.64.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 171.64.1.1 0.0.0.0 UG 0 0 0 eth0

Thanks for your help!
- Lena
 
Old 10-30-2008, 04:02 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by lenafabr View Post
I tried running "/etc/init.d/network restart" it brought everything down and back up just fine (no error messages) but it didn't fix the problem.
The box is using static IP.
You've got one interface, and I have to assume that the default route is right, although on our network here, it's usually xx.xx.xx.1, instead of the xx.xx.1.1 you have. If the default route is correct, things LOOK ok.

I'd pull your network guys in, make sure the default route is correct, and have them flush the ARP tables on your network equipment. And be sure to ask them if they've done anything that could cause this.
 
Old 10-30-2008, 05:01 PM   #5
lenafabr
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
That did it! I switched the subnet mask and gateway to match one of the other computers in the lab (to xx.xx.xx.1) and did the /etc/init.d/network restart thingy and it started working. Apparently the department did something like a firewall migration this morning and didn't bother to tell us about it.

Thanks for your help!
Lena
 
Old 10-31-2008, 08:33 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by lenafabr View Post
That did it! I switched the subnet mask and gateway to match one of the other computers in the lab (to xx.xx.xx.1) and did the /etc/init.d/network restart thingy and it started working. Apparently the department did something like a firewall migration this morning and didn't bother to tell us about it.

Thanks for your help!
Lena
Glad it worked.....
 
  


Reply



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
Using DSL and ssh / ssh-server to access the Windoze desktop GUI On2ndThought Linux - Server 4 11-16-2008 02:17 PM
access ssh tunnel (on server) from network ghostwriter78 Linux - Networking 13 11-02-2007 03:33 PM
SSH access problem on different Network ryancoolest Linux - Networking 2 07-30-2006 05:08 AM
Functionality loss using SSH zer0hmz Linux - Newbie 3 06-03-2006 04:01 PM
Slack 10.1, 2.6: Sudden Network Loss?? Kenkudaki Linux - Networking 2 09-06-2005 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:02 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