I'm trying to connect to a VPN server and at the same time adding a temporary route. Here is the code in a bat file:
@echo off @rasdial VPN username password ROUTE ADD 172.30.255.22 MASK 255.255.255.255 172.23.241.0Unfortunately the code is not working, I'm conencting to the VPN server but can't reach 172.30.255.22
Because the VPN server gives me random IP's everytime I connect I cannot set the route rule properly.
If I know the IP I'll be given for example 172.23.241.99 and If I add the folllowing rule: ROUTE ADD 172.30.255.22 MASK 255.255.255.255 172.23.241.99 everything works as supossed to, now my question is what is the correct route rule when I don't know the IP I'll have?
Edited by boopme, 09 March 2015 - 01:04 PM.