You are on page 1of 4

11/6/2016 How to add a static route to the Windows Routing Table - fixedByVonnie

Home About Advertising and Licensing Almost There! Be the first to hear about my new Windows 10 online course! Contact

Download my free 40 page eBook now! IT Services Thank you for your order! Thank you!

The Intelligent Guide to Using Google Chrome windows-10-fast

Home > How to add a static route to the Windows Routing Table

How to add a static route to the


Windows Routing Table
Posted on December 4, 2014 by vonnie — 2 Comments

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

http://www.fixedbyvonnie.com/2014/12/add-static-route-windows-routing-table/#.WB46_S197IU Recent Posts 1/4


11/6/2016 How to add a static route to the Windows Routing Table - fixedByVonnie

Recent Posts
Quick Update October 28, 2016
How to undo a Firefox
Restore/Refresh/Reset July 25,
2016
Say what’s up to PowerShell 5 (Part
27/27) April 21, 2016
Say what’s up to PowerShell 5 (Part
26/27) April 19, 2016
Say what’s up to PowerShell 5 (Part
25/27) April 14, 2016
Say what’s up to PowerShell 5 (Part
24/27) April 12, 2016
Say what’s up to PowerShell 5 (Part
23/27) April 7, 2016

The output is divided into three sections:

Interfaces List Categories


IPv4 Route Table
IPv6 Route Table Apple
Code
The Interfaces List enumerates all your interfaces by MAC address and the next two Desktops
sections list your dynamic and persistent routes for IPv4 and IPv6. Google Chrome
Hardware
How To
Each line under Active Routes is a TCP/IP route to a network or a specific device on the
network. Internet Explorer 10
Internet Explorer 11
Internet Explorer 9
To add a route we use the route ADD command to tell Windows which Network to add
Laptops
and then we enter the Subnet mask and Gateway.
Linux
Mac OS X 10.10 Yosemite
But why would you ever add a static route in the first place? People often add static
Mac OS X 10.8 Mountain Lion
routes when troubleshooting routing related problems. For example, maybe you can’t
Mac OS X 10.9 Mavericks
ping a workstation from a server or perhaps can successfully ping that workstation but
Mobile
the ICMP echo reply chronically times out. Sometimes we can isolate networking
Mozilla Firefox
problems like this by manually entering a known route. That’s where static routes come
News
in.
Opera
Outlook
So let’s say we’re on the 10.255.70.0 network and the default gateway is 10.255.70.1
Reviews
and we want to add static route to our management VLAN located on the 172.10.3.0
Safari
network.
Samsung Galaxy S4
Security
Assuming our subnet mask is 255.255.248.0 we could add the route like this:
Smartphones
Smartphones
route ADD 172.10.3.0 MASK 255.255.248.0 10.255.70.1 Tablets
Uncategorized
Web Browsers
The format is as follows:
What Is
Windows
route ADD this network with this mask via this gateway IP.
Windows 10
Windows 7
The only drawback to this method is that after you reboot your static route will go poof!
Windows 8
Windows 8.1
In order to make it stay we need to make it persistent with the -p modifier. So just add a
Windows Vista
-p to the end of the route and it’ll be permenent.
Windows XP

route ADD 172.10.3.0 MASK 255.255.248.0 10.255.70.1 -p

http://www.fixedbyvonnie.com/2014/12/add-static-route-windows-routing-table/#.WB46_S197IU 2/4
11/6/2016 How to add a static route to the Windows Routing Table - fixedByVonnie
If later you decide to remove the static route, you can use route DELETE followed
by the destination network IP.

route DELETE 172.10.3.0

That’s it for now!

About vonnie
Connect with Vonnie on Twitter

‹ 3 ways to fix the “this webpage has a redirect loop” error

How to stop the lock screen from appearing so fast ›


Posted in Windows, Windows 7, Windows 8, Windows 8.1, Windows Vista Tagged with: Power User,
Tricks

Local Millionaire Exposes How She Earns


$472/Hr From Home
Mom Makes $6,200/Month From Home

Learn More

Sponsored by Daily News

2 Comments fixedByVonnie 1 Login

Recommend 3 Share Sort by Best

Join the discussionR

Muawia Yasin • 8 months ago


Hi,

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 172.16.4.0/24 through my
Wireless interface, and any other 0.0.0.0 to my Ethernet, is it possible to do??
and could you please explain how to do it ?

thanks
• Reply • Share ›

Joltin Joe • 9 months ago


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.
• Reply • Share ›

http://www.fixedbyvonnie.com/2014/12/add-static-route-windows-routing-table/#.WB46_S197IU 3/4
11/6/2016 How to add a static route to the Windows Routing Table - fixedByVonnie

© 2016 Default copyright text ↑

http://www.fixedbyvonnie.com/2014/12/add-static-route-windows-routing-table/#.WB46_S197IU 4/4

You might also like