connect: Network is unreachable

This was a mighty screw up, I don’t exactly remember how I did this, but I messed with the routing table and deleted the default gateway entry. So whenever I tried to ping a IP I’d get the following:

[root@localhost etc]# ping
connect: Network is unreachable

The fix for this turned out to be pretty simple, issue the following at shell.

route add default gw <DFEFAULT GATEWAY>


Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.