I have a question regarding static routes and I need some assistance.
We have 2 sites (A and B)... and between the 2 sites we have 2 links, one is via a Diginet Link and the other via a Wireless link. We use the Diginet as our PRIMARY link between the to sites, and the Wireless as a SECONDARY, as a fail over incase th Diginet goes down (lately this happens often).
Site A is our HQ, and site B users connect over these links to access our ERP system.
Now we have added a script to add a static route for ALL our users at site B to access the ERP system over the PRIMARY Diginet link
This is an example:
route add 192.168.1.251 mask 255.255.255.255 192.168.2.254 -p
We also added a Batch File on the desktops to delete the route mentioned above, when the PRIMARY link goes down, to add a route so that all traffic route over the SECONDARY link.
This is the example:
route delete 192.168.1.251
route add 192.168.1.251 mask 255.255.55.255 192.168.2.253 -p
My question is the following...
How can we add both these static routes, and specify which one as the PRIMARY route, and as soon as that line goes down, that it route all traffic over the SECONDARY link... and then when the PRIMARY link is restored, traffic must then again go over the PRIMARY link.
All users are running Windows 7.
Can someone please help me?