The route command in Linux manipulates the kernel’s IP routing table. Its main use is to configure static routes to specified hosts or networks through an interface, after it has been configured with the ip program.
Everything that the route command does can be performed by the ip command.
If the route is used without any options, it displays the route table.
The same information can be viewed with the ip command:
The netstat -r command also lists the route table:
In some distributions, the Net-Tools package containing the route command is not even installed as standard, the iproute2 package containing the “ip” command is preferred.