I lose my local connection when connect the VPN on Windows 7
Hi, My local network has the follow configuration 172.23.x.x/16 and my gateway is 172.23.x.254 (on each subnet). When I connect on VPN I receive an IP address 10.34.x.x/16. So, this is my problem: I have a VPN connection to access a client, but when I was connected all my local network access is lost. Already changed the option "Use default gateway on remote network" and did not work. After connecting, a bat (see below) is perfomed to fix the routing problem, but this did not work too. ---- Route table before run bat Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 172.23.70.254 172.23.70.12 10 10.0.0.0 255.0.0.0 10.34.32.219 10.34.32.219 1 10.34.32.219 255.255.255.255 127.0.0.1 127.0.0.1 50 10.34.33.239 255.255.255.255 172.23.70.254 172.23.70.12 10 10.255.255.255 255.255.255.255 10.34.32.219 10.34.32.219 50 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 172.23.70.0 255.255.255.0 172.23.70.12 172.23.70.12 10 172.23.70.12 255.255.255.255 127.0.0.1 127.0.0.1 10 172.23.255.255 255.255.255.255 172.23.70.12 172.23.70.12 10 224.0.0.0 240.0.0.0 10.34.32.219 10.34.32.219 50 224.0.0.0 240.0.0.0 172.23.70.12 172.23.70.12 10 255.255.255.255 255.255.255.255 10.34.32.219 10.34.32.219 1 255.255.255.255 255.255.255.255 172.23.70.12 172.23.70.12 1 255.255.255.255 255.255.255.255 172.23.70.12 2 1 Default Gateway: 172.23.70.254 ---- change_route.bat FOR /F "tokens=1,2 delims=:" %%i in ('"ipconfig | find "10.34.""') do set x=%%j set x=%x: =% if "%x%"=="" goto Err1 goto 1.1 :1.1 route delete 10.0.0.0 mask 255.0.0.0 %x% 2>nul route add 10.34.0.0 mask 255.255.0.0 %x% route add 10.33.0.0 mask 255.255.0.0 %x% route add 10.0.0.0 mask 255.255.0.0 %x% route add 10.16.0.0 mask 255.255.0.0 %x% route add 10.72.0.0 mask 255.255.0.0 %x% route add 10.191.0.0 mask 255.255.0.0 %x% route add 10.200.0.0 mask 255.255.0.0 %x% echo Ok. goto Fim I delete the primary route 10.0.0.0 and added them separately. After change_route running, my route table appears: Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 172.23.70.254 172.23.70.12 10 10.0.0.0 255.255.0.0 10.34.32.219 10.34.32.219 1 10.16.0.0 255.255.0.0 10.34.32.219 10.34.32.219 1 10.33.0.0 255.255.0.0 10.34.32.219 10.34.32.219 1 10.34.0.0 255.255.0.0 10.34.32.219 10.34.32.219 1 10.34.32.0 255.255.224.0 10.34.32.219 10.34.32.219 1 10.34.32.219 255.255.255.255 127.0.0.1 127.0.0.1 50 10.34.33.239 255.255.255.255 172.23.70.254 172.23.70.12 10 10.72.0.0 255.255.0.0 10.34.32.219 10.34.32.219 1 10.191.0.0 255.255.0.0 10.34.32.219 10.34.32.219 1 10.200.0.0 255.255.0.0 10.34.32.219 10.34.32.219 1 10.255.255.255 255.255.255.255 10.34.32.219 10.34.32.219 50 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 172.23.70.0 255.255.255.0 172.23.70.12 172.23.70.12 10 172.23.70.12 255.255.255.255 127.0.0.1 127.0.0.1 10 172.23.255.255 255.255.255.255 172.23.70.12 172.23.70.12 10 224.0.0.0 240.0.0.0 10.34.32.219 10.34.32.219 50 224.0.0.0 240.0.0.0 172.23.70.12 172.23.70.12 10 255.255.255.255 255.255.255.255 10.34.32.219 10.34.32.219 1 255.255.255.255 255.255.255.255 172.23.70.12 172.23.70.12 1 255.255.255.255 255.255.255.255 172.23.70.12 2 1 Default Gateway: 172.23.70.254 This appear to be correct, right? But did not work. Anyone can help? Thanks. Vinicius Deschamps
September 21st, 2010 11:00am

Hi, I would like to share: How to configure split tunnelling on VPN clients using CMAK Troubleshooting common VPN related errors Best Regards DalePlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
September 24th, 2010 2:53am

Hi, I am trying to connect to a client's VPN and everything works fine on Windows XP. On Windows Vista and 7 doesn't work. Example: When I was connected on the VPN and tried ping some name of my network, the VPN try to resolve through vpn gateway. And did not resolve anything. On Windows XP my DNS still on first although if I was connected by vpn, but on Vista and 7 my DNS is put on second. Is there a way to resolve that? Regards,Vinicius Deschamps
October 7th, 2010 10:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics