Archived from groups: microsoft.public.windowsxp.work_remotely (More info?)
We have to add a static route to our XP Clients that connect over L2TP/IPSec
to a VPN Server.
Adding the route without specifying the interface doesn't work, we get an
error message that the route cannot be added.
But establishing the VPN connection, then determine the interface with
"route print", then adding the route with specifying the interface of the
WAN (PPP/SLIP) Interface works fine and we have the functionality we need.
The route we want is successfully added as the printscreens from the command
prompt below shows.
Unfortunately, Windows XP changes the VPN Interface name every time when the
VPN connection is disconnected and reastablished! The first time, the WAN
interface has the name 0x20004, the second time 0x40004 etc. (see
printscreen from route print below).
Does anyone have an idea how we can "tell" Windows XP that the VPN Interface
should have the same name every time when the VPN connection is established,
or another solution to permanently add the route to the VPN Interface of the
XP workstations? (I know that with CMAK, it's possible to add routes after
establishing a connection, but we don't want to use CMAK if possible).
Archived from groups: microsoft.public.windowsxp.work_remotely (More info?)
"Franz Schenk" <franz.schenkNOSPAM@fititNO-_SPAM.ch> wrote in message
news:%235ruJUgpEHA.3300@TK2MSFTNGP12.phx.gbl...
>
> But establishing the VPN connection, then determine the interface with
> "route print", then adding the route with specifying the interface of the
> WAN (PPP/SLIP) Interface works fine and we have the functionality we need.
> The route we want is successfully added as the printscreens from the
> command
> prompt below shows.
>
> Unfortunately, Windows XP changes the VPN Interface name every time when
> the
> VPN connection is disconnected and reastablished! The first time, the WAN
> interface has the name 0x20004, the second time 0x40004 etc. (see
> printscreen from route print below).
Yes, this is an absolute pain with Windows. The required syntax of the
"route" command is an abomination, and the lack of names for interfaces is
unhelpful (as you say, the numbers change each time, and the IP address of
the VPN link is unpredicatble).
I worked around this problem by writing a VBScript that analysed the routing
table, worked out which interface the VPN was, and then generated the
correct "route" commands to add routes to the VPN link.
Please post all responses to the newsgroups for the benefit
of all USENET users. Messages sent via email may or may not
be answered depending on time availability....
>"Franz Schenk" <franz.schenkNOSPAM@fititNO-_SPAM.ch> wrote in message
>news:%235ruJUgpEHA.3300@TK2MSFTNGP12.phx.gbl...
>>
>> But establishing the VPN connection, then determine the interface with
>> "route print", then adding the route with specifying the interface of the
>> WAN (PPP/SLIP) Interface works fine and we have the functionality we need.
>> The route we want is successfully added as the printscreens from the
>> command
>> prompt below shows.
>>
>> Unfortunately, Windows XP changes the VPN Interface name every time when
>> the
>> VPN connection is disconnected and reastablished! The first time, the WAN
>> interface has the name 0x20004, the second time 0x40004 etc. (see
>> printscreen from route print below).
>
>Yes, this is an absolute pain with Windows. The required syntax of the
>"route" command is an abomination, and the lack of names for interfaces is
>unhelpful (as you say, the numbers change each time, and the IP address of
>the VPN link is unpredicatble).
>
>I worked around this problem by writing a VBScript that analysed the routing
>table, worked out which interface the VPN was, and then generated the
>correct "route" commands to add routes to the VPN link.
Archived from groups: microsoft.public.windowsxp.work_remotely (More info?)
Slick--I did not know that!
"Jeffrey Randow (MVP)" <jeffreyr-support@remotenetworktechnology.com> wrote
in message news:60rml0pu7pl6si9gk3dht76m8vm4iglq6d@4ax.com...
> You can add static routes in the Active Directory Users & Computers
> for Remote connections.... This makes things a bit easier...
>
> Jeffrey Randow (Windows Networking & Smart Display MVP)
> jeffreyr-support@remotenetworktechnology.com
>
> Please post all responses to the newsgroups for the benefit
> of all USENET users. Messages sent via email may or may not
> be answered depending on time availability....
>
> Remote Networking Technology Support Site -
> http://www.remotenetworktechnology.com > Windows XP Expert Zone - http://www.microsoft.com/windowsxp/expertzone >
> On Wed, 29 Sep 2004 17:09:13 +0100, "Robin Walker" <rdhw@cam.ac.uk>
> wrote:
>
>>"Franz Schenk" <franz.schenkNOSPAM@fititNO-_SPAM.ch> wrote in message
>>news:%235ruJUgpEHA.3300@TK2MSFTNGP12.phx.gbl...
>>>
>>> But establishing the VPN connection, then determine the interface with
>>> "route print", then adding the route with specifying the interface of
>>> the
>>> WAN (PPP/SLIP) Interface works fine and we have the functionality we
>>> need.
>>> The route we want is successfully added as the printscreens from the
>>> command
>>> prompt below shows.
>>>
>>> Unfortunately, Windows XP changes the VPN Interface name every time when
>>> the
>>> VPN connection is disconnected and reastablished! The first time, the
>>> WAN
>>> interface has the name 0x20004, the second time 0x40004 etc. (see
>>> printscreen from route print below).
>>
>>Yes, this is an absolute pain with Windows. The required syntax of the
>>"route" command is an abomination, and the lack of names for interfaces is
>>unhelpful (as you say, the numbers change each time, and the IP address of
>>the VPN link is unpredicatble).
>>
>>I worked around this problem by writing a VBScript that analysed the
>>routing
>>table, worked out which interface the VPN was, and then generated the
>>correct "route" commands to add routes to the VPN link.
>
Archived from groups: microsoft.public.windowsxp.work_remotely (More info?)
Thanks, this seems a very good solution, but it doesn't work and I
misunderstand something (and haven't found help on the Micosoft Website,
Helpfiles or elsewhere): In my opinion, defining a static route requires at
least three parameters: Destination Network, Mask, Destination (or Gateway
for the route).
And in "AD Users Computers" in the Dial-In Properties of a user, when
creating a static route, it's NOT possible to specify the destination
(Gateway) of the static route.
Can you or anyone else explain this?
Thank you all in advance for the help!
Franz
"Jeffrey Randow (MVP)" <jeffreyr-support@remotenetworktechnology.com>
schrieb im Newsbeitrag news:60rml0pu7pl6si9gk3dht76m8vm4iglq6d@4ax.com...
> You can add static routes in the Active Directory Users & Computers
> for Remote connections.... This makes things a bit easier...
>
> Jeffrey Randow (Windows Networking & Smart Display MVP)
> jeffreyr-support@remotenetworktechnology.com
>
> Please post all responses to the newsgroups for the benefit
> of all USENET users. Messages sent via email may or may not
> be answered depending on time availability....
>
> Remote Networking Technology Support Site -
> http://www.remotenetworktechnology.com > Windows XP Expert Zone - http://www.microsoft.com/windowsxp/expertzone >
> On Wed, 29 Sep 2004 17:09:13 +0100, "Robin Walker" <rdhw@cam.ac.uk>
> wrote:
>
> >"Franz Schenk" <franz.schenkNOSPAM@fititNO-_SPAM.ch> wrote in message
> >news:%235ruJUgpEHA.3300@TK2MSFTNGP12.phx.gbl...
> >>
> >> But establishing the VPN connection, then determine the interface with
> >> "route print", then adding the route with specifying the interface of
the
> >> WAN (PPP/SLIP) Interface works fine and we have the functionality we
need.
> >> The route we want is successfully added as the printscreens from the
> >> command
> >> prompt below shows.
> >>
> >> Unfortunately, Windows XP changes the VPN Interface name every time
when
> >> the
> >> VPN connection is disconnected and reastablished! The first time, the
WAN
> >> interface has the name 0x20004, the second time 0x40004 etc. (see
> >> printscreen from route print below).
> >
> >Yes, this is an absolute pain with Windows. The required syntax of the
> >"route" command is an abomination, and the lack of names for interfaces
is
> >unhelpful (as you say, the numbers change each time, and the IP address
of
> >the VPN link is unpredicatble).
> >
> >I worked around this problem by writing a VBScript that analysed the
routing
> >table, worked out which interface the VPN was, and then generated the
> >correct "route" commands to add routes to the VPN link.
>
Archived from groups: microsoft.public.windowsxp.work_remotely (More info?)
Hi Robin
Do you mind to post the script to the NG? I know that it's not very complex,
but if you write a VB script two to three times a year like me, it still
takes 2 to 3 hours until it's working.
Thank you in advance, if this is possible!
Franz
"Robin Walker" <rdhw@cam.ac.uk> schrieb im Newsbeitrag
news:cjemjg$jmc$1@gemini.csx.cam.ac.uk...
> "Franz Schenk" <franz.schenkNOSPAM@fititNO-_SPAM.ch> wrote in message
> news:%235ruJUgpEHA.3300@TK2MSFTNGP12.phx.gbl...
> >
> > But establishing the VPN connection, then determine the interface with
> > "route print", then adding the route with specifying the interface of
the
> > WAN (PPP/SLIP) Interface works fine and we have the functionality we
need.
> > The route we want is successfully added as the printscreens from the
> > command
> > prompt below shows.
> >
> > Unfortunately, Windows XP changes the VPN Interface name every time when
> > the
> > VPN connection is disconnected and reastablished! The first time, the
WAN
> > interface has the name 0x20004, the second time 0x40004 etc. (see
> > printscreen from route print below).
>
> Yes, this is an absolute pain with Windows. The required syntax of the
> "route" command is an abomination, and the lack of names for interfaces is
> unhelpful (as you say, the numbers change each time, and the IP address of
> the VPN link is unpredicatble).
>
> I worked around this problem by writing a VBScript that analysed the
routing
> table, worked out which interface the VPN was, and then generated the
> correct "route" commands to add routes to the VPN link.
>
> --
> Robin Walker [MVP Networking]
> rdhw@cam.ac.uk
>
>
Please post all responses to the newsgroups for the benefit
of all USENET users. Messages sent via email may or may not
be answered depending on time availability....
>Thanks, this seems a very good solution, but it doesn't work and I
>misunderstand something (and haven't found help on the Micosoft Website,
>Helpfiles or elsewhere): In my opinion, defining a static route requires at
>least three parameters: Destination Network, Mask, Destination (or Gateway
>for the route).
>And in "AD Users Computers" in the Dial-In Properties of a user, when
>creating a static route, it's NOT possible to specify the destination
>(Gateway) of the static route.
>
>Can you or anyone else explain this?
>Thank you all in advance for the help!
>
>Franz
>
>
>"Jeffrey Randow (MVP)" <jeffreyr-support@remotenetworktechnology.com>
>schrieb im Newsbeitrag news:60rml0pu7pl6si9gk3dht76m8vm4iglq6d@4ax.com...
>> You can add static routes in the Active Directory Users & Computers
>> for Remote connections.... This makes things a bit easier...
>>
>> Jeffrey Randow (Windows Networking & Smart Display MVP)
>> jeffreyr-support@remotenetworktechnology.com
>>
>> Please post all responses to the newsgroups for the benefit
>> of all USENET users. Messages sent via email may or may not
>> be answered depending on time availability....
>>
>> Remote Networking Technology Support Site -
>> http://www.remotenetworktechnology.com >> Windows XP Expert Zone - http://www.microsoft.com/windowsxp/expertzone >>
>> On Wed, 29 Sep 2004 17:09:13 +0100, "Robin Walker" <rdhw@cam.ac.uk>
>> wrote:
>>
>> >"Franz Schenk" <franz.schenkNOSPAM@fititNO-_SPAM.ch> wrote in message
>> >news:%235ruJUgpEHA.3300@TK2MSFTNGP12.phx.gbl...
>> >>
>> >> But establishing the VPN connection, then determine the interface with
>> >> "route print", then adding the route with specifying the interface of
>the
>> >> WAN (PPP/SLIP) Interface works fine and we have the functionality we
>need.
>> >> The route we want is successfully added as the printscreens from the
>> >> command
>> >> prompt below shows.
>> >>
>> >> Unfortunately, Windows XP changes the VPN Interface name every time
>when
>> >> the
>> >> VPN connection is disconnected and reastablished! The first time, the
>WAN
>> >> interface has the name 0x20004, the second time 0x40004 etc. (see
>> >> printscreen from route print below).
>> >
>> >Yes, this is an absolute pain with Windows. The required syntax of the
>> >"route" command is an abomination, and the lack of names for interfaces
>is
>> >unhelpful (as you say, the numbers change each time, and the IP address
>of
>> >the VPN link is unpredicatble).
>> >
>> >I worked around this problem by writing a VBScript that analysed the
>routing
>> >table, worked out which interface the VPN was, and then generated the
>> >correct "route" commands to add routes to the VPN link.
>>
>
Archived from groups: microsoft.public.windowsxp.work_remotely (More info?)
You can do this manually by using WMI... But unless this machine is a
domain member, you will need to run this script manually or build it
into a CMAK script...
Please post all responses to the newsgroups for the benefit
of all USENET users. Messages sent via email may or may not
be answered depending on time availability....
>Hi Robin
>
>Do you mind to post the script to the NG? I know that it's not very complex,
>but if you write a VB script two to three times a year like me, it still
>takes 2 to 3 hours until it's working.
>
>Thank you in advance, if this is possible!
>Franz
>
>
>
>"Robin Walker" <rdhw@cam.ac.uk> schrieb im Newsbeitrag
>news:cjemjg$jmc$1@gemini.csx.cam.ac.uk...
>> "Franz Schenk" <franz.schenkNOSPAM@fititNO-_SPAM.ch> wrote in message
>> news:%235ruJUgpEHA.3300@TK2MSFTNGP12.phx.gbl...
>> >
>> > But establishing the VPN connection, then determine the interface with
>> > "route print", then adding the route with specifying the interface of
>the
>> > WAN (PPP/SLIP) Interface works fine and we have the functionality we
>need.
>> > The route we want is successfully added as the printscreens from the
>> > command
>> > prompt below shows.
>> >
>> > Unfortunately, Windows XP changes the VPN Interface name every time when
>> > the
>> > VPN connection is disconnected and reastablished! The first time, the
>WAN
>> > interface has the name 0x20004, the second time 0x40004 etc. (see
>> > printscreen from route print below).
>>
>> Yes, this is an absolute pain with Windows. The required syntax of the
>> "route" command is an abomination, and the lack of names for interfaces is
>> unhelpful (as you say, the numbers change each time, and the IP address of
>> the VPN link is unpredicatble).
>>
>> I worked around this problem by writing a VBScript that analysed the
>routing
>> table, worked out which interface the VPN was, and then generated the
>> correct "route" commands to add routes to the VPN link.
>>
>> --
>> Robin Walker [MVP Networking]
>> rdhw@cam.ac.uk
>>
>>
>
Archived from groups: microsoft.public.windowsxp.work_remotely (More info?)
Thanks for the link below, but this describes how to build a routing
topology with RRAS and demand dial interfaces, and has nothing to do with
the problem of adding a route to a VPN Client System. I know that it is easy
to add a static route in Routing and remote access.
The questions that are still unanswered are the followings:
- How is it possible to automatically adds a static route after establishing
a VPN connection, without using CMAK?
- Why is it not possible to specify the default gateway in the "add static
route option" of the dial-in options of a user object in active directory
users and computers ??? In my opinion, defining a static route requires at
least three parameters: Destination Network, Mask, Destination (or Gateway
for the route).
Thanks to all who are able to answer one/both of these questions!
Franz
"Jeffrey Randow (MVP)" <jeffreyr-support@remotenetworktechnology.com>
schrieb im Newsbeitrag news:6au3m055ri9bmmbp68cvs7k8lki16ts02r@4ax.com...
> It adds a static route on your VPN/RAS link...
> (See
> http://www.microsoft.com/technet/p [...] pnddd.mspx > for more information)
>
> Jeffrey Randow (Windows Networking & Smart Display MVP)
> jeffreyr-support@remotenetworktechnology.com
>
> Please post all responses to the newsgroups for the benefit
> of all USENET users. Messages sent via email may or may not
> be answered depending on time availability....
>
> Remote Networking Technology Support Site -
> http://www.remotenetworktechnology.com > Windows XP Expert Zone - http://www.microsoft.com/windowsxp/expertzone >
> On Thu, 30 Sep 2004 09:19:08 +0200, "Franz Schenk"
> <franz.schenkNOSPAM@fititNO-_SPAM.ch> wrote:
>
>>Thanks, this seems a very good solution, but it doesn't work and I
>>misunderstand something (and haven't found help on the Micosoft Website,
>>Helpfiles or elsewhere): In my opinion, defining a static route requires
>>at
>>least three parameters: Destination Network, Mask, Destination (or Gateway
>>for the route).
>>And in "AD Users Computers" in the Dial-In Properties of a user, when
>>creating a static route, it's NOT possible to specify the destination
>>(Gateway) of the static route.
>>
>>Can you or anyone else explain this?
>>Thank you all in advance for the help!
>>
>>Franz
>>
>>
>>"Jeffrey Randow (MVP)" <jeffreyr-support@remotenetworktechnology.com>
>>schrieb im Newsbeitrag news:60rml0pu7pl6si9gk3dht76m8vm4iglq6d@4ax.com...
>>> You can add static routes in the Active Directory Users & Computers
>>> for Remote connections.... This makes things a bit easier...
>>>
>>> Jeffrey Randow (Windows Networking & Smart Display MVP)
>>> jeffreyr-support@remotenetworktechnology.com
>>>
>>> Please post all responses to the newsgroups for the benefit
>>> of all USENET users. Messages sent via email may or may not
>>> be answered depending on time availability....
>>>
>>> Remote Networking Technology Support Site -
>>> http://www.remotenetworktechnology.com >>> Windows XP Expert Zone - http://www.microsoft.com/windowsxp/expertzone >>>
>>> On Wed, 29 Sep 2004 17:09:13 +0100, "Robin Walker" <rdhw@cam.ac.uk>
>>> wrote:
>>>
>>> >"Franz Schenk" <franz.schenkNOSPAM@fititNO-_SPAM.ch> wrote in message
>>> >news:%235ruJUgpEHA.3300@TK2MSFTNGP12.phx.gbl...
>>> >>
>>> >> But establishing the VPN connection, then determine the interface
>>> >> with
>>> >> "route print", then adding the route with specifying the interface of
>>the
>>> >> WAN (PPP/SLIP) Interface works fine and we have the functionality we
>>need.
>>> >> The route we want is successfully added as the printscreens from the
>>> >> command
>>> >> prompt below shows.
>>> >>
>>> >> Unfortunately, Windows XP changes the VPN Interface name every time
>>when
>>> >> the
>>> >> VPN connection is disconnected and reastablished! The first time, the
>>WAN
>>> >> interface has the name 0x20004, the second time 0x40004 etc. (see
>>> >> printscreen from route print below).
>>> >
>>> >Yes, this is an absolute pain with Windows. The required syntax of the
>>> >"route" command is an abomination, and the lack of names for interfaces
>>is
>>> >unhelpful (as you say, the numbers change each time, and the IP address
>>of
>>> >the VPN link is unpredicatble).
>>> >
>>> >I worked around this problem by writing a VBScript that analysed the
>>routing
>>> >table, worked out which interface the VPN was, and then generated the
>>> >correct "route" commands to add routes to the VPN link.
>>>
>>
>
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.