Eu tenho 3 máquinas (A, B e C) atrás do Roteador WLAN. De B eu posso fazer ssh para A e de A para B também. Ssh entre C e A também está funcionando (destino, C- > A e A- > C). Mas quando eu tento conectar B a C ou C a B eu sempre obtenho
ssh: connect to host <HOST> port 22: No route to host
Qual pode ser o motivo desse erro?
editar:
Eu cometi um pequeno erro - a máquina A tem conexão com fio ao roteador!
@ Marnix A. van Ammers:
Aqui estão as três saídas do ifconfig:
Máquina A:
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:74:b8
inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::211:95ff:fe1c:74b8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4602075 errors:0 dropped:0 overruns:0 frame:0
TX packets:8746230 errors:0 dropped:0 overruns:13 carrier:0
collisions:0 txqueuelen:1000
RX bytes:816857533 (816.8 MB) TX bytes:2974068829 (2.9 GB)
Interrupt:11 Base address:0x1800
Máquina B:
$ ifconfig wlan0
wlan0 Link encap:Ethernet Hardware Adresse XX:XX:XX:XX:f8:7a
inet Adresse:192.168.0.5 Bcast:192.168.0.255 Maske:255.255.255.0
inet6-Adresse: fe80::21b:77ff:feb6:f87a/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:39449 errors:0 dropped:0 overruns:0 frame:0
TX packets:36805 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:28118658 (28.1 MB) TX bytes:5681482 (5.6 MB)
Máquina C:
$ ifconfig wlan0
wlan0 Link encap:Ethernet Hardware Adresse XX:XX:XX:XX:a7:b5
inet Adresse:192.168.0.8 Bcast:192.168.0.255 Maske:255.255.255.0
inet6-Adresse: fe80::226:b6ff:fe4e:a7b5/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:1611 (1.6 KB) TX bytes:5613 (5.6 KB)
As saídas do netstat:
Máquina A:
$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Máquina B:
$ netstat -nr
Kernel-IP-Routentabelle
Ziel Router Genmask Flags MSS Fenster irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
Máquina C:
$ netstat -nr
Kernel-IP-Routentabelle
Ziel Router Genmask Flags MSS Fenster irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0