Terms of Use For FixedByVonnie

By proceeding to access fixedByVonnie.com, you expressly acknowledge, and agree to, all of the following:

fixedByVonnie.com is a personal website and blog owned by Security Plus Pro LLC, which is being presented for informational purposes only. The views on this website are solely those of the website owner (and not those of any employer or of any professional associations affiliated with the website owner).  Any views expressed in this website and any information presented on this website, or in any of its blog entries, should not be relied on for any purpose whatsoever other than as the personal opinions of the website owner.  The website owner expressly disclaims any and all liability for any information presented on this site.  The owner of this website and its blog posts shall not be held liable, and shall be held harmless, for any errors or omissions in any information or representations contained in this website, or in any of its blog entries.  The website owner also expressly disclaims any liability for the current or future availability of any such information. The website owner makes no representations as to the accuracy or completeness of any information on this website or which may be found by following any link on this website. The website owner shall not be held liable for any losses, injuries, damages, claims, or causes of action, from the display or use of any information on this website or in any of its blog entries. If you use the information on this website, or on any of its blog entries, you do so solely at your own risk.

How to add a static route to the Windows Routing Table - fixedByVonnie

How to add a static route to the Windows Routing Table

Did you know that your router isn’t the only device with a routing table?

Yup, any device that relies on TCP/IP for network communications has a routing table – including Windows.

Go ahead and open a command prompt (Windows Key + x + c) and type:

route print

Using route print in Windows

The output is divided into three sections:

  • Interfaces List
  • IPv4 Route Table
  • IPv6 Route Table

The Interfaces List enumerates all your interfaces by MAC address and the next two sections list your dynamic and persistent routes for IPv4 and IPv6.

Each line under Active Routes is a TCP/IP route to a network or a specific device on the network.

To add a route we use the route ADD command to tell Windows which Network to add and then we enter the Subnet mask and Gateway.

But why would you ever add a static route in the first place?  People often add static routes when troubleshooting routing related problems.  For example, maybe you can’t ping a workstation from a server or perhaps can successfully ping that workstation but the ICMP echo reply chronically times out.  Sometimes we can isolate networking problems like this by manually entering a known route.  That’s where static routes come in.

So let’s say we’re on the network and the default gateway is and we want to add static route to our management VLAN located on the network.

Assuming our subnet mask is we could add the route like this:

route ADD MASK

The format is as follows:

route ADD this network with this mask via this gateway IP.

The only drawback to this method is that after you reboot your static route will go poof!

In order to make it stay we need to make it persistent with the -p modifier.  So just add a -p to the end of the route and it’ll be permenent.

route ADD MASK -p

If later you decide to remove the static route, you can use route DELETE followed by the destination network IP.

route DELETE

That’s it for now!


Connect with Vonnie on Twitter

Posted in Windows, Windows 7, Windows 8, Windows 8.1, Windows Vista Tagged with: ,
  • Joltin Joe

    We are using OpenVpn, when the user connects he can not see any of the servers. IP range for VPN = 192.168.102.XXX the servers are 192.168.2.XXX is this a case where I need a static route? Sorry networking is not my strong suit. OpenVPN is running on our corporate FW.

    • Raboebie

      A very late response and I assume you probable solved this issue by now (I hope). In any case, no you won’t a static route. You must create an allow rule on your firewall to route the traffic from the OpenVPN server to the correct IP/Subnets

  • Muawia Yasin


    i want to route between my interfaces, I’m connecting to two networks through my wireless and my Ethernet,
    for example i want to route any request for through my Wireless interface, and any other to my Ethernet, is it possible to do?? and could you please explain how to do it ?


  • musa mu

    I need to join the and can not, so how to add route to this ip