Can't Map a drive after VPN'd in

B

Beaon

Hello Guru's I am having a problem using the CMAK tool and mapping
network drives.

I want a one click fits all for my VPN users. A file I can send them
without having to walk them through an install and setting up tedious
stuff like map network drives. I want the CMAK to do it for them.

I am having a problem setting this up.

I have hit some problems having the mapped network drive function and
some general network connectivity.

Ideally what I ultimately want to have happen is the CMAk tool auto
map a network drive right after the connection is established. With
some users I may also want a routing table update.

So what I currently have is the CMAK tool logging in successfully then
I have a script set to run on "Post-Connection". Here is the script, a
simple batch file.

net use m: "\\172.16.0.100\Company Files"

Now when the script runs it says the network path is invalid. Even
though you can browse to it with the same path.

Also I originally wanted people to connect to the shares via the
Ethernet interface 172.16.0.2. It won't let me do that and says that
the path is not found, even though you can ping it after the VPN has
been established. It only lets you open a network share via the PPP
interface, 172.16.0.100. Seems dumb to me.

Any how back to the point, when the script runs Post Connection it
says network path not found. If you wait however like 15 seconds and
manually run the command it works.

My question is, why won't it work right after the VPN is established
like CMAK is suppose to do?

Also Why cant I map a network drive to 172.16.0.2, why only the PPP
interface?

Something so simple seems to becoming unnecessarily complicated.
 
R

Robert L. \(MS-MVP\)

We have two issues here.

1. Assuming 172.16.0.2 is LAN IP address and 172.16.0.100 is PPTP IP
address, it could be the routing table issue. Post the routing table and
ipconfig /all of the RRAS here may help.

2. After run the CMAK, it may take for a while to be able to map. You may
try to add ping 172.16.0.100 before the mapping.

Please post back with the result.

--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com
 
B

Beaon

Thanks Robert.

172.16.0.2 is the LAN interface IP of the server. At first I also
thought it may be routing related but you can ping this IP after the
VPN is established. But for the sake of it here are the routing tables
I can provide with you.

I like your Ping idea I will try that and repost.

Server Info:
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : myserver
Primary Dns Suffix . . . . . . . : myserver.local
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : Yes
DNS Suffix Search List. . . . . . : myserver.local

PPP adapter RAS Server (Dial In) Interface:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 172.16.0.100
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . :

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit
Ethernet #2
Physical Address. . . . . . . . . : 00-1D-09-F1-4F-45
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 172.16.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.0.1
DNS Servers . . . . . . . . . . . : 127.0.0.1
216.176.188.10
NetBIOS over Tcpip. . . . . . . . : Disabled

Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit
Ethernet
Physical Address. . . . . . . . . : 00-1D-09-F1-4F-46
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.219.90
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :

C:\Documents and Settings\Administrator>route print

IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x10002 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
0x10003 ...00 1d 09 f1 4f 45 ...... Broadcom NetXtreme Gigabit
Ethernet #2 - Vir
tual Machine Network Services Driver
0x10004 ...00 1d 09 f1 4f 46 ...... Broadcom NetXtreme Gigabit
Ethernet
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 172.16.0.1
172.16.0.2 20
CLIENT PUBLIC IP 255.255.255.255 172.16.0.1
172.16.0.2 20
CLIENT PUBLIC IP 255.255.255.255 172.16.0.1
172.16.0.2 20
127.0.0.0 255.0.0.0 127.0.0.1
127.0.0.1 1
169.254.0.0 255.255.0.0 169.254.219.90
169.254.219.90 10
169.254.219.90 255.255.255.255 127.0.0.1
127.0.0.1 10
169.254.255.255 255.255.255.255 169.254.219.90
169.254.219.90 10
172.16.0.0 255.255.255.0 172.16.0.2
172.16.0.2 20
172.16.0.2 255.255.255.255 127.0.0.1
127.0.0.1 20
172.16.0.100 255.255.255.255 127.0.0.1
127.0.0.1 50
172.16.0.102 255.255.255.255 172.16.0.100
172.16.0.100 1
172.16.0.107 255.255.255.255 172.16.0.100
172.16.0.100 1
172.16.255.255 255.255.255.255 172.16.0.2
172.16.0.2 20
224.0.0.0 240.0.0.0 169.254.219.90
169.254.219.90 10
224.0.0.0 240.0.0.0 172.16.0.2
172.16.0.2 20
255.255.255.255 255.255.255.255 169.254.219.90
169.254.219.90 1
255.255.255.255 255.255.255.255 172.16.0.2
172.16.0.2 1
Default Gateway: 172.16.0.1
===========================================================================
Persistent Routes:
None

C:\Documents and Settings\Administrator>

Id copy it out of the RRAS but it's easier out of dos prompt. I'd have
to manually write the table out of RRAS since you cant select all and
copy. Rest assured I have checked and the tables do match.


CLIENT INFO:

C:\Users\x>ipconfig

Windows IP Configuration


PPP adapter MyServer Gateway:

Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 172.16.0.102
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . :

Wireless LAN adapter Wireless Network Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::10a7:7043:bb48:f8b3%8
IPv4 Address. . . . . . . . . . . : 192.168.1.102
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

Tunnel adapter Local Area Connection* 6:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 7:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 11:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 12:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::5efe:192.168.1.102%29
Default Gateway . . . . . . . . . :

Tunnel adapter Local Area Connection* 13:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 14:

Connection-specific DNS Suffix . :
Default Gateway . . . . . . . . . :

Tunnel adapter Local Area Connection* 15:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::5efe:172.16.0.102%36
Default Gateway . . . . . . . . . :

C:\Users\x>

And finally here is the routing table for the client

Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\x>route print
===========================================================================
Interface List
Deleted all of this, not really relevant and shows some public DNS
records id rather not share
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 192.168.1.1
192.168.1.102 10
127.0.0.0 255.0.0.0 On-link
127.0.0.1 306
127.0.0.1 255.255.255.255 On-link
127.0.0.1 306
127.255.255.255 255.255.255.255 On-link
127.0.0.1 306
169.254.0.0 255.255.0.0 On-link
192.168.1.102 30
169.254.255.255 255.255.255.255 On-link
192.168.1.102 266
172.16.0.0 255.255.0.0 172.16.0.100
172.16.0.106 21
172.16.0.106 255.255.255.255 On-link
172.16.0.106 276
192.168.1.0 255.255.255.0 On-link
192.168.1.102 266
192.168.1.102 255.255.255.255 On-link
192.168.1.102 266
192.168.1.255 255.255.255.255 On-link
192.168.1.102 266
RRAS_Public_IP 255.255.255.255 192.168.1.1 192.168.1.102
11
224.0.0.0 240.0.0.0 On-link
127.0.0.1 306
224.0.0.0 240.0.0.0 On-link
192.168.1.102 266
255.255.255.255 255.255.255.255 On-link
127.0.0.1 306
255.255.255.255 255.255.255.255 On-link
192.168.1.102 266
255.255.255.255 255.255.255.255 On-link
172.16.0.106 276
===========================================================================
Persistent Routes:
None

C:\Users\x>

Thanks big time Robert!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top