port 22: no rote to host but in other computer it works!!!!! Please Help
hi to all know i have a very strange problem and i would like to ask is someone con halpe me please
1º the computer A a server with the Ip x.x.x.215(in the same room and network) 2º the computer B my computer with the ip x.x.x.224(in the same room and network)the COMPUTER WITH PROBLEM 3ºthe computer C of my friend (in the same room and network) ip x.x.x.225 when in my computer (computer B ) i try to connect to computer A the server by ssh it send this message ssh: x.x.x.225 port 22: No route to host fine i say the port 22 is not open in my computer B,but is open!! also i think in the server A the port 22 is not,open but is open!! i have say to my friend please connect to the server A and he say i connect ok ,fine the machine A is up also i have verfied the ssh service is ok in the 3 computers the first thing that i have think 'is a problem with iptables or rules ' if is a problem with this and my friend in computer C uses my IP(x.x.x.224) and he tray to connect via ssh he also will receive the same error and i have restart your network service with mi ip x.x.x.224 thinking that he will have the same error and is a problem of IP but NO!!! he can connect without problem and i have put again the IP x.x.x.225 to my friend fine i think perhaps the cable? i have take the cable of network of the computer of my friend C and i put it in my coputer B and also the same problem mmmm extrange i tray to connect from pc B to other computer perhaps if not connect to other computer the problem is other the network but i can connect to other servers and the computer of my friend C x.x.x.225 without problem is in particular to x.x.x.215 that i can connect from my computer B specifically from my computer ,mmmmmmmm strange!!!!! i can navigate in internet and see other pages in internet but the pages in x.x.x.215 i can not see nothing , no connection ssh and nothing i tried to ping to x.x.x.215 and it say Destination Host Unreachable and the last thing that i have tray is to connect to computer A the server from computer C , and from the server A connect to my computer the B and didint see it say the same thing Destination Host Unreachable ,is like the two computer( A B) can't see trough the network i have read a lot of information about this ,i have clean the know host archive,see the iptables,verify port 22,verify th ssh service but nothing , even know i dont know what can be because is specifically my computer even more not my ip ,my computer PLEASE HELP thank you for your advice and excuseme my bad english |
Ok. You have to concentrate on the "No Route to Host" message.
Look at the Subnet mask configured on the working hosts. Compare it with what is shown on Computer B. Code:
# ifconfig Code:
# netstat -r |
hi thanks for your response i have think that it can be a problem in the configuration also and i have compare the configuration in the computer with the problem the B and the compotur of my friend that connect the computer C
the configuration file of the computer C that work in ssh and can connect to A without problem is auto lo iface lo inet loopback auto eth0 iface eth0 inet static address xxx.zzz.cc.225 broadcast xxx.zzz.cc.255 network xxx.zzz.cc.0 netmask 255.255.255.0 gateway xxx.zzz.cc.1 the configuration file of the computer B that have problems to connect to 215 auto lo iface lo inet loopback auto eth0 iface eth0 inet static address xxx.zzz.cc.224 broadcast xxx.zzz.cc.255 network xxx.zzz.cc.0 netmask 255.255.255.0 gateway xxx.zzz.cc.1 the two computer,that work and that didn't work (B and C ) have teh same configuration except by the Ip the B have xxx.zzz.cc.224 and the computer C have address xxx.zzz.cc.225 |
I was asking for the output of the ifconfig command ... as it will display the current status of all of your network interfaces ... just in case your configuration is not being applied.
Computer B is stating that based on it's current network interfaces settings ... there is no path to get to Computer A. |
hi excusame for my late in the response here i send the information that you have ask thank you
this is the ifconfig of computer B eth0 Link encap:Ethernet HWaddr 00:1c:c0:bc:c4:2e inet addr:xxx.yyy.zz.224 Bcast:xxx.yyy.zz.255 Mask:255.255.255.0 inet6 addr: fe80::21c:c0ff:febc:c42e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4140 errors:0 dropped:0 overruns:0 frame:0 TX packets:1646 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1176389 (1.1 MB) TX bytes:277378 (270.8 KB) Interrupt:252 Base address:0x2000 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:2123 errors:0 dropped:0 overruns:0 frame:0 TX packets:2123 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:162024 (158.2 KB) TX bytes:162024 (158.2 KB) the netstat -r in computer B Destination Gateway Genmask Flags MSS Window irtt Iface xxx.yyy.zz.0 * 255.255.255.0 U 0 0 0 eth0 link-local * 255.255.0.0 U 0 0 0 eth0 default xxx.yyy.zz.1 0.0.0.0 UG 0 0 0 eth0 the ifconfig of computer C eth0 Link encap:Ethernet HWaddr 00:1c:c0:bc:c4:6a inet addr:xxx.yyy.zz.240 Bcast:xxx.yyy.zz.255 Mask:255.255.255.0 inet6 addr: fe80::21c:c0ff:febc:c46a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3629292 errors:0 dropped:0 overruns:0 frame:0 TX packets:1380219 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3429686802 (3.1 GB) TX bytes:141573060 (135.0 MB) Interrupt:252 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:114216 errors:0 dropped:0 overruns:0 frame:0 TX packets:114216 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:65912341 (62.8 MB) TX bytes:65912341 (62.8 MB) netstat-r of computer C Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface xxx.yyy.zz.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default xxx.yyy.zz.1 0.0.0.0 UG 0 0 0 eth0 the ifconfig of computer A eth0 Link encap:Ethernet HWaddr 00:1C:C4:EE:1A:F6 inet addr:XXX.yyy.zz.215 Bcast:xxx.yyy.zz.255 Mask:255.255.255.0 inet6 addr: fe80::21c:c4ff:feee:1af6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:845376 errors:0 dropped:0 overruns:0 frame:0 TX packets:266921 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:102436656 (97.6 MiB) TX bytes:241896928 (230.6 MiB) Interrupt:169 Memory:f8000000-f8012100 eth0:0 Link encap:Ethernet HWaddr 00:1C:C4:EE:1A:F6 inet addr:XXX.yyy.zz.214 Bcast:XXX.yyy.zz.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:169 Memory:f8000000-f8012100 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:89379 errors:0 dropped:0 overruns:0 frame:0 TX packets:89379 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:32278596 (30.7 MiB) TX bytes:32278596 (30.7 MiB) netstat of computer A Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface xxx.yyy.zz.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default xxx.yyy.zz.1 0.0.0.0 UG 0 0 0 eth0 again thank you |
the problem is solved thanks
i have solved changing my HWaddr 00:1c:c0:bc:c4:2e i leave this command in the bootmisc.sh ifconfig eth0 down ifconfig eth0 hw ether 00:01:02:03:04:05 ifconfig eth0 up with this i have change the addres and now i can acces to the server without problem mi hwaddr was the problem !!!! thanks for all your help |
All times are GMT -5. The time now is 07:08 PM. |