I have two ethernets, if I unplug an ethernet cable off of one the default route is gone

It's what happens, if I were to unplug it, somehow the default route is forgotten. But weird thing is though it still has an ip address though. Because I can ping to 192.168.1.1, yeah but if I can ping 192.168.1.1 why it's default route is forgotten? That's such a bad idea. Then I add it back with sudo route add default 192.168.1.1
 
My guess is that the default route could be attached to the ethernet cable that you pull out and that's why it gone missing.

Can you post # netstat -rn
 
Back
Top