How to add default route in Linux


In this post i am going to explain you how to add default route in linux. Once you add default route  all the packet will flow to the default gateway IP address. Adding default route is simple and most useful task.


#route add default gw <gateway IP > <Device>


#route add default gw eth0

Once the new route is added their is no need to restart network services.

Command to verify the routing table information

#route -n