The ROUTE command in Windows CMD enables users to manipulate the network routing tables. Its primary function is to display and modify the entries in the routing IP table which controls the path that the IP packets navigate across a network. The ROUTE command is essential for network administrators and is effective in debugging or configuring how packets travel in a network environment.


The basic syntax for the ROUTE command is as follows:

ROUTE [-f] [-p] [command [destination] [MASK netmask] [gateway] [METRIC metric] [IF interface]]
  • -f: Clears the routing tables of all gateway entries. If used with one of the commands, the tables are cleared prior to running the command.
  • -p: Makes the route persistent across boots of the system.
  • command: One of the commands listed in the options section (e.g., ADD, DELETE, PRINT).
  • destination: Specifies the host.
  • MASK: If the mask is not provided, it defaults to
  • gateway: Specifies the gateway.
  • metric: Assigns a metric, or cost, to the routing table entry.
  • IF: Specifies the interface number.


  • ADD: Adds a route to the network table.
  • DELETE: Removes a route from the table.
  • PRINT: Displays the current routes that are available.

Each of these commands can be combined with other parameters (destination, MASK, gateway, metric, and IF) to refine their operation.


  • To view all routes:

  • To add a route:


    This command adds a route to the network with a subnet mask via the gateway

  • To delete a route:


    This command removes the route for the network

  • To make a route persistent across system restarts:


    This adds a persistent route to the routing table.

Common Issues

  • Access Denied Error: Ensure you’re running the CMD with administrative privileges.
  • Incorrect Parameters: Double-check syntax and parameters as incorrect values can cause the route to not function as expected.
  • Network Congestion or Poor Performance: Misconfigured routes can lead to suboptimal paths that degrade network performance.


ROUTE can be integrated with other CMD commands like IPCONFIG for more comprehensive network management. For example:


This sequence of commands will display all the network configuration details, followed by the current routing table.

  • IPCONFIG: Displays network configurations and can be used to view the settings that are related to ROUTE.
  • NETSTAT: Useful for displaying network connections; can be used to verify that routes are set properly and in use.

For further reading and more detailed information, refer to the official documentation: Microsoft Docs on ROUTE.

This manual serves to provide a foundational understanding and practical application usage of the ROUTE command in Windows CMD, accommodating various networking tasks and troubleshooting scenarios.