Networking

How to add a static route in Windows 7

ow to add a static route in Windows 7

There are times when you need to add a static route in Windows 7.ย  One example in particular is that you have two network cards that are connecting you to different networks.ย  You may have an internal card that is connecting you to the LAN and then have another network card that is connecting you to the Internet.ย  If for instance you have another network that is routed from the internet LAN that you are connected to that you don’t by default have a route to, then you may need to add a static route in Windows to tell it which gateway it needs to look to to find the address in particular.

The process is very simple in Windows 7, however, as all commands the syntax has to be accurate before the command works.ย  You can also choose in Windows to either add the route temporarily or make the route permanent or persistent meaning that it will persist between Windows reboots.

Take a look at the command below to see how to add the route to Windows:

  • route add 192.168.5.0 mask 255.255.255.0 172.16.18.5
  • For a persistent route, simply add a /pย at the end of the command

static1

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.