- Batch file to Capture VPN IP address
- Posted by David on October 6th, 2005
I need to write a batch file in which I need to capture and then be able to
use that IP address in the following manner:
route 10.0.0.0 mask 255.0.0.0 {IP Address Here}
The catch is that I need the VPN IP address and I would have two. The
primary IP which was used to connect to the internet, then the VPN address.
Thanks for your help in advance.
- Posted by Pegasus \(MVP\) on October 6th, 2005
"David" <David@discussions.microsoft.com> wrote in message
news:99C77509-16C5-4F3E-A159-2AB165F5721D@microsoft.com...
> I need to write a batch file in which I need to capture and then be able
to
> use that IP address in the following manner:
>
> route 10.0.0.0 mask 255.0.0.0 {IP Address Here}
>
> The catch is that I need the VPN IP address and I would have two. The
> primary IP which was used to connect to the internet, then the VPN
address.
>
> Thanks for your help in advance.
If you post the output of the command
ipconfig /all
end state exactly which address you wish to extract then
someone can probably help you.
- Posted by Yves Leclerc on October 6th, 2005
What are you trying to do? If you need to "route" the Internet traffic
while you are using the VPN access, un-check "Use default gateway on
remote.." from within the "advanced" settings of the VPN client.
"David" <David@discussions.microsoft.com> wrote in message
news:99C77509-16C5-4F3E-A159-2AB165F5721D@microsoft.com...
>I need to write a batch file in which I need to capture and then be able to
> use that IP address in the following manner:
>
> route 10.0.0.0 mask 255.0.0.0 {IP Address Here}
>
> The catch is that I need the VPN IP address and I would have two. The
> primary IP which was used to connect to the internet, then the VPN
> address.
>
> Thanks for your help in advance.