Hi everyone.
I have two equal linux machines (hw1 and hw2), running Linux 3.2.0 armv7l GNU/Linux. They are behind two different cable modems/firewalls.
If I ssh into hw1 and executes "route del default eth0", I can continue to work in the ssh session/terminal window. I can't (of course perhaps) make any new outgoing connections from the terminal window, but I don't get disconnected. (The reason for me to doing the "route del default eth0" is to afterwards be able to add ppp0 (wireless) as default gw.)
But, if I ssh into hw2 and do the same, "route del default eth0", the ssh session/terminal windows gets instantly disconnected... Why is that?
Output from netstat and netstat -r are given below.
(I have obscured the foreign address for hw2 as it points to an address in the ”real” world.)
netstat:
======
hw1:
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.1.57:ssh 192.168.1.1:56980 ESTABLISHED
tcp 0 0 192.168.1.57:ssh 192.168.1.1:56721 ESTABLISHED
hw2:
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.0.53:ssh 217.xxx.yyy.zzz:56982 ESTABLISHED
tcp 0 208 192.168.0.53:ssh 217.xxx.yyy.zzz:56928 ESTABLISHED
netstat -r:
=======
hw1:
Destination Gateway Genmask Flags MSS Window irtt Iface
default router.asus.com 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
hw2:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.0.200 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
Thanks!
(I have another thread ongoing,
"ssh session "disconnects" after "route add default ppp0", any suggestion?"
http://www.linuxquestions.org/questi...on-4175518365/
but I haven't come further with that one, so I try to narrow down the problem in this thread to come closer to a solution...)