Solved

Static routes IP batch file for remote PC's

Posted on 2010-08-17
6
1,417 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
  • 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

820 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