
我無法 ssh 到機器 A,它說No route to host
。
我可以 ssh 到機器 B,登入後我可以 ssh 到機器 A。
這怎麼可能?
(我的機器和機器A運行Ubuntu,機器B運行Fedora,機器A和B是桌上型電腦,我的機器是WiFi的筆記型電腦)。
輸出route
我的機器:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default buffalo.setup 0.0.0.0 UG 0 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 wlan0
192.168.11.0 * 255.255.255.0 U 2 0 0 wlan0
機器A
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.10.145.1 0.0.0.0 UG 0 0 0 eth0
10.10.145.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
機器B:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.10.145.1 0.0.0.0 UG 0 0 0 p5p1
10.10.145.0 * 255.255.255.0 U 0 0 0 p5p1