Solved

Static routes IP batch file for remote PC's

Posted on 2010-08-17
6
1,427 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Urgent domain controller problems 8 94
Change Exchange 2010 Namespace 6 71
Reconfigure Corporate IP Address Scheme 2 62
Windows Server 2003 error 0x80070002 log in 9 59
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
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…

738 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