LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-26-2005, 01:59 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
very strange network problem.


just think two system 10.255.240.230 and 10.255.240.102 are in network.
i can connect system 10.255.240.230 to system 10.255.240.102.
but i can not connect system B to system A but i can ping a system.


[root@localhost root]# ssh 10.255.240.230
ssh: connect to host 10.255.240.230 port 22: no route to host.
[root@localhost root]# ping 10.255.240.230
PING 10.255.240.230 (10.255.240.230) 56(84) bytes of data.
64 bytes from 10.255.240.230: icmp_seq=1 ttl=64 time=0.504 ms
64 bytes from 10.255.240.230: icmp_seq=2 ttl=64 time=0.500 ms
64 bytes from 10.255.240.230: icmp_seq=3 ttl=64 time=0.497 ms
64 bytes from 10.255.240.230: icmp_seq=4 ttl=64 time=0.494 ms
64 bytes from 10.255.240.230: icmp_seq=5 ttl=64 time=0.498 ms

--- 10.255.240.230 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3996ms
rtt min/avg/max/mdev = 0.494/0.498/0.504/0.024 ms
[root@localhost root]#

but system 10.255.240.230 can ssh to 10.255.240.102.
and ftp telnet samba nothing is working other than the ping.

how to tackle this issue.?
 
Old 09-26-2005, 02:05 AM   #2
m0rg
Member
 
Registered: Jun 2003
Location: France
Distribution: slackware 11.0
Posts: 80

Rep: Reputation: 16
have you checked that sshd is running on the computer you can't connect to?
 
Old 09-26-2005, 02:16 AM   #3
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
see i can connect an other system too. so it means sshd running on both the machines.and this is not only the case. ftp telnet samba NFS are not working.
so obviously there is a problem in internaly.

now my question is how to handle this issue.?

Last edited by bruse; 09-26-2005 at 02:19 AM.
 
Old 09-26-2005, 06:23 AM   #4
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
Did you review the firewall configuration on both systems?
 
Old 09-27-2005, 07:05 AM   #5
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
i have stopped all the firewall's.but still not working.
it seems that there is a route config problem.
 
Old 09-27-2005, 07:11 AM   #6
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
i have stopped all the firewall's.but still not working.
it seems that there is a route config problem.
 
Old 09-27-2005, 10:57 AM   #7
linuxmanju
Member
 
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50

Rep: Reputation: 15
what is the subnet mask assigned to both ?
 
Old 09-28-2005, 04:29 AM   #8
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
the ip address is 10.255.240.xxx so that ...

Mask:255.255.240.0
 
Old 09-28-2005, 04:54 AM   #9
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
That netmask covers 10.255.240.0 - 10.255.255.255 - a large subnet but if you've configured ALL your equipment to use that netmask, it shouldn't be a problem.

What is the output of /sbin/route on machine 10.255.240.102? It is very strange that this machine can ping 10.255.240.230 but ssh reports no route to that host.
 
Old 09-28-2005, 05:33 AM   #10
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
[student@localhost student]$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
10.255.240.0 * 255.255.240.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.255.240.1 0.0.0.0 UG 0 0 0 eth0
[student@localhost student]$
 
Old 09-28-2005, 06:59 AM   #11
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
I think the second entry may be causing problems. Why is it there?
What is the output of /sbin/ifconfig eth0 on this machine?

Last edited by Snowbat; 09-28-2005 at 07:01 AM.
 
Old 09-28-2005, 07:10 AM   #12
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
debian:~# /sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:11:09:17:3D:87
inet addr:10.255.240.102 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18153 errors:0 dropped:0 overruns:0 frame:0
TX packets:460 errors:0 dropped:0 overruns:0 carrier:0
collisions:18 txqueuelen:1000
RX bytes:1320793 (1.2 MiB) TX bytes:112756 (110.1 KiB)
Interrupt:23 Base address:0xc000

debian:~#

should my route match with that system ?
 
Old 09-28-2005, 07:45 AM   #13
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
Well, the interface uses netmask 255.0.0.0.

Try this and then check if ssh works:
route del -net 192.168.1.0 netmask 255.255.255.0 eth0
route del -net 10.255.240.0 netmask 255.255.240.0 eth0

If you have some reason for the 192.168.1.0 routing entry, you can probably put it back in (I *think* it won't cause problems) but the 10.255.240.0 entry is certainly redundant given your default route.
route add -net 192.168.1.0 netmask 255.255.255.0 eth0
 
  


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
Strange Network Problem IronWolf Linux - Networking 1 06-09-2005 03:26 AM
strange network problem kmoallem *BSD 3 02-04-2003 12:54 PM
Strange Network Problem! NeoAnderson Linux - General 10 08-23-2002 10:03 AM
Strange network problem shchuka Linux - Networking 5 06-13-2002 04:26 AM
Strange Network Problem syxxpac023 Linux - Networking 2 03-29-2002 05:15 PM

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

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