Solved

Static routes IP batch file for remote PC's

Posted on 2010-08-17
6
1,441 Views
Last Modified: 2012-05-10
Hi guys

We have PC's on remote locations, that are connected to the WAN via our VPN. The issue I have is that many times in the week, some PC's lose connection to us which means that I have to keep running a batch file consisting of the static routes.

For example, one of the routes in the batch file (of many) will be:

route add 10.0.1.0 MASK 255.255.255.0 10.0.0.254

The strange thing is that in the DHCP manager, under the Classless Static Routes they have all been added, yet I still find myself having to run this batch file.

Is there anyway that I can do something to prevent this from constantly happening?

Thanks
Y
0
Comment
Question by:Yashy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:SGrossmann
ID: 33456583
1) You can change the VPN setup to route all traffic trough you VPN gateway as long as the gateway knows of all routes.2) If none of the routes is needed localy on the clients you can add the routes persistent route -p add ...
0
 
LVL 1

Author Comment

by:Yashy
ID: 33456960
Thanks SGrossmann, but I've got very basic knowledge when it comes to adding routes/vpn's.

The routes batch file is run on our Terminal Services box. People connect onto the TS server to work remotely. I may have to design a diagram to show what I mean?
0
 
LVL 8

Expert Comment

by:SGrossmann
ID: 33456993
To make it a bit clear, the whole thing is on a terminal server?Is the connection that does not work an outgoing connection or an incomming connect?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 1

Author Comment

by:Yashy
ID: 33457177
This is the scenario:

PC1 is in a remote location. It has the following credentials:

IP: 10.0.14.10/24
Gateway: 10.0.14.1

Primary DNS: 10.0.0.2 (server at head office)
Secondary DNS: 10.0.0.15 (server at head office consisting of the route script batch file)

Their router has VPN details which connects to our HO router and hence they can log onto the WAN.

The user will then try to log onto the Domain and the system will say 'Domain unavailable' etc. We then run the static routes on our Head Office server and then miraculously, it creates a connection and then they are able to log on.



0
 
LVL 8

Accepted Solution

by:
SGrossmann earned 500 total points
ID: 33457206
ok let's take the easiest way.as all you routes are always the same you can add them as static routes to the systems.change the following lineroute add 10.0.1.0 MASK 255.255.255.0 10.0.0.254toroute -p add 10.0.1.0 MASK 255.255.255.0 10.0.0.254this makes the route static and it will not disapear not even if you reboot a system.
0
 
LVL 1

Author Comment

by:Yashy
ID: 33458602
Thanks a lot for that. I'll go ahead and do that. Cheers!
0

Featured Post

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question