How to remove the default route in Linux

The default route in linux can be removed by issuing the command below:
sudo /sbun/route del -net 0.0.0.0

Once this has been done the updated routing table can be listed with the command:

sudo /sbin/route -n

You will notice that there will now be no route with the flags "UG"

Last updated: 23/11/2011