I have 2 computers on the same network:
10.0.0.4
10.0.0.5
If I leave things idle for about 10 minutes or so, when I attempt to connect between them, I get:
$ ssh [email protected]
$ ssh: connect to host 10.0.0.4 port 22: No route to host
But if I retry immediately, it works. Leave it for 10 mins again, and I get the error.
This also happens with ping
, so I don't think it's related to ssh.
Any ideas?
Additional info: Both machines are Ubuntu
**10.0.0.4:**
$ ifconfig
ath0 Link encap:Ethernet HWaddr 00:1f:e2:86:65:60
inet addr:10.0.0.4 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::21f:e2ff:fe86:6560/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3778 errors:0 dropped:0 overruns:0 frame:0
TX packets:1531 errors:1 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:516476 (516.4 KB) TX bytes:209053 (209.0 KB)
$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ath0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 ath0
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 ath0
$ arp -n
Address HWtype HWaddress Flags Mask Iface
10.0.0.1 ether 00:11:50:1e:61:02 C ath0
10.0.0.5 ether 00:26:5e:11:97:13 C ath0
**10.0.0.5:**
$ ifconfig
eth1 Link encap:Ethernet HWaddr 00:26:5e:11:97:13
inet addr:10.0.0.5 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::226:5eff:fe11:9713/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9388 errors:0 dropped:0 overruns:0 frame:24978
TX packets:10300 errors:6 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4785464 (4.7 MB) TX bytes:1978774 (1.9 MB)
Interrupt:17
$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth1
$ arp -n
Address HWtype HWaddress Flags Mask Iface
10.0.0.1 ether 00:11:50:1e:61:02 C eth1
ifconfig
,netstat -rn
, andarp -n
from both computers. Thanks