How to maintain the SSH connection when I want to change default route
Right now, the senario as following:
Ip address 184.108.40.206
default gw 220.127.116.11
Next, I want to chang the IP address to another subnet mask like this:
ip adderss 18.104.22.168
But when I run script "ifconfig " to modify the ip address, then the default route will lose because of the sumnetmask changed.
So my question is how to maintain the ssh connection while I want to change the default route in linux? Do you think it is possible to maintain it from the technique? That is urgent and thank you for any response or suggestion