• route command in Linux is used to modify or work with IP/kernel routing table. Its primary use is to set up static routes to specific hosts or networks.
  • Displays and modifies the entries in the local IP routing table. If used without parameters, route displays help at the command prompt.
  • The command-syntax is: route [-nNvee] [-FC] [<AF>] List kernel routing tables route [-v] [-FC] {add|del|flush} ...
  • Route is an external command that is available for the following Microsoft operating systems as route.exe.
  • The following article will illustrate different use cases of the route command with examples. Use case 1: Add a route to a destination through a gateway.
  • Use the -p option with the print command to view the list of registered persistent routes. The command option specifies one of the six commands in this table
  • This guide will walk you through the basics to advanced usage of the route command in Linux, helping you navigate the complex highways of data routing.
  • Yes, the `route` command allows you to filter the output. For example, you can use `route -n` to display numerical IP addresses instead of hostnames.
  • To use the route command, you need to open a command prompt or terminal window and run the command with appropriate options and parameters.
  • The route command resolves all symbolic names into addresses, using either the /etc/hosts file or the network name server.