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.

Syntax:

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

 Example:

#route add default gw 10.60.1.5 eth0

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

Command to verify the routing table information

#route -n