• Using the Windows ROUTE command, you can easily control the flow of traffic leaving your computers.
  • This article covers how to use the route command in a Linux system with examples. Linux provides the ip route command in order to manage the routing table.
  • The command is also used to manipulate the routing table, enabling the administrator to configure desired routes. Examples include the following.
  • The route command allows you to view, add, delete, and modify routes in this table. This provides complete control over how traffic flows in Linux.
  • Route print command is another useful command to view the entries on the routing table and which routes are active at the moment.
  • Example 6: How to Reject a Route in Linux. If you want to add a route to rejection list then you need to use below route command.
  • In Unix/Linux, you can just use route without any command line switches. The output displayed by the Windows and Unix/Linux commands are similar.
  • Route command is used to show/manipulate the IP routing table. It is primarily used to setup static routes to specific host or networks via an interface.
  • ROUTE [-f] [-p] [-4|-6] command [destination]. [MASK netmask] [gateway] [METRIC metric] [IF interface] -. f Clears the routing tables of all gateway entries.