Homepage 5 How-to Articles 5 How to How to Add or Remove Static Route on Windows Systems

How to How to Add or Remove Static Route on Windows Systems

Manage remote endpoints, deploy software and patches with Action1 cloud RMM solution.

Sign up and use free on up to 50 endpoints with no functionality limits or expiration.

September 27, 2019
In this article, we will look at what a ‘static route’ is and why it should be added at all. We will use the so-called ‘Root’ — meaning we will prescribe routes using the ‘route add’ command in the Windows command line. Let’s recap the theory and in what cases using the ‘route add’ in this way may be useful for you.

‘Static routing’ is a type of routing in which routes are explicitly specified when configuring a router. All routing occurs without the participation of any routing protocols.

A ‘static route’ is an administrator-defined route causing packets that move between the source and destination to go along the specified path. It is an explicitly indicated path that a packet must travel from point A to point B.

Why do we need to be able to add static routes? It is very common for security to use Virtual Private Networks (VPN). VPNs are used both by organizations — for the organization of their secure networks — and by providers — to provide access to the global Internet to simple users. This sometimes causes minor inconveniences, however, to organizations and among ordinary users.

For example, if you have two computers at home, the first of which has access to the Internet via VPN, it is also connected to the second computer’s local network. Every time it connects to the Internet, the connection between the two computers is lost because the first computer (the one connected to the VPN) is already on another network and therefore unavailable to the second computer. This can be corrected just by configuring a static route.

Routes are network settings that are used by the operating system for organizing network traffic, as well as accessing the local network and the Internet. With help of the information on this page, you will learn how to view, delete, and add routes on a computer running a version of Windows — from XP to 10.

1. View Active Routes in Command Prompt Tool

To simply see the routing table on your computer, type the following at the command prompt Start-> Run-> cmd:

route print

View routes

2. How to Remove All Static Routes

This is done in the following way: run the command line and type the following command:

route -f

Remove all static routes

3. Add Static Route in Command Line Shell

To add a static IP route, in the command line running as administrator, enter the command:

route -p add mask


  • route – the program itself that works with the routing table;
  • -p is a key that says that the route will be permanent, because (Important note!) without this key, all routes that you add will be deleted after rebooting, so if you want to use the route always, write this key if only once, then you can not write;
  • add – the command itself that adds an entry to the routing table;
  • – the network with which you want to have a connection;
  • mask – subnet mask;
  • – the gateway address, usually the modem address.
Add static route

4. How to Remove Specific Static Route

To remove static route open command line and type this command:

route delete mask

Remove Static Route on Windows Systems

How to Manage Static Route with Action1

The first thing you need to do is login to the Action1 dashboard.

Next, in the left side menu, select the Managed Endpoints item and mark the endpoint for which you want to block the port.

managed endpoints kb

Then click on the More Actions button and select the Run Command option.

run command kb

In the window that opens, enter the command route -p add mask to add a static route you need.

enter the command route add

In case you need to delete a route use this command route delete mask

use command route delete

After clicking the Next Step button, you need to select the endpoints for which you are going to add or remove static route. To do this, click Add Endpoints and select the desired endpoint.

select managed endpoints kb

Click Next Step and in the next step you can schedule the execution time of your command.Then click Finish.

schedule and finish kb

Consider Using Action1 Cloud RMM Solution

Action1 allows IT professionals to efficiently manage configurations for computers within and outside of the local network. In addition, the platform offers total control of patch management, software distribution, remote desktop, as well as many other features to run your IT security and administration as seamlessly as possible.

Related Articles

How To Delete User Profiles Remotely with PowerShell

When a user logs onto the computer for the first time (not via the network to access shared folders or printers), Windows creates a user profile. Among its contents are the NTUSER.DAT file (user profile settings), user-specific folders (My Documents, Desktop, etc.),...

About Action1 RMM

Action1 RMM is a cloud-based IT solution for remote monitoring and management, patching, and remote support.

Start your free two-week trial of Action1, or use RMM tools for free forever on 50 endpoints with no functionality limitations!


Submit a Comment

Your email address will not be published.

cloud patch management solutions action1

MSP Solution

Centralize endpoint management and boost efficiency of IT service delivery.

automated server patch management action compliance

Patch Management

Identify and deploy missing OS and third-party software updates.

cloud software deployment tools windows

Software Deployment

Distribute software and updates across managed endpoints.

software distribution tools software inventory action1

IT Asset Inventory

Keep a detailed inventory and manage hardware and software assets.

web client remote desktop

Remote Desktop

Support users via seamless remote desktop connection.

web based rdp client

Unattended Access

Provide administrative support and manage remote devices.

automated patch management action1

Endpoint Management

Run PowerShell, custom scripts, reboot computers and restart services.

API integrations action1


Integrate Action1 RMM to your IT ecosystem.

computer inventory tool for compliance

Reports and Alerts

Conduct endpoint security audits with comprehensive reporting.