Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-26-2005, 01:59 AM
|
#1
|
Member
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821
Rep:
|
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.?
|
|
|
09-26-2005, 02:05 AM
|
#2
|
Member
Registered: Jun 2003
Location: France
Distribution: slackware 11.0
Posts: 80
Rep:
|
have you checked that sshd is running on the computer you can't connect to?
|
|
|
09-26-2005, 02:16 AM
|
#3
|
Member
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821
Original Poster
Rep:
|
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.
|
|
|
09-26-2005, 06:23 AM
|
#4
|
Member
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338
Rep:
|
Did you review the firewall configuration on both systems?
|
|
|
09-27-2005, 07:05 AM
|
#5
|
Member
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821
Original Poster
Rep:
|
i have stopped all the firewall's.but still not working.
it seems that there is a route config problem.
|
|
|
09-27-2005, 07:11 AM
|
#6
|
Member
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821
Original Poster
Rep:
|
i have stopped all the firewall's.but still not working.
it seems that there is a route config problem.
|
|
|
09-27-2005, 10:57 AM
|
#7
|
Member
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50
Rep:
|
what is the subnet mask assigned to both ?
|
|
|
09-28-2005, 04:29 AM
|
#8
|
Member
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821
Original Poster
Rep:
|
the ip address is 10.255.240.xxx so that ...
Mask:255.255.240.0
|
|
|
09-28-2005, 04:54 AM
|
#9
|
Member
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338
Rep:
|
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.
|
|
|
09-28-2005, 05:33 AM
|
#10
|
Member
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821
Original Poster
Rep:
|
[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]$
|
|
|
09-28-2005, 06:59 AM
|
#11
|
Member
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338
Rep:
|
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.
|
|
|
09-28-2005, 07:10 AM
|
#12
|
Member
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821
Original Poster
Rep:
|
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 ?
|
|
|
09-28-2005, 07:45 AM
|
#13
|
Member
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|