Question

VPN to remote network on same subnet as local network

Asked by: ITLighthouse

Hi,

My local subnet is 10.0.1.x and I'm trying to establish a dial-up vpn connection to a network that is also a 10.0.1.x subnet.  I connect fine but can't access any resources on the remote subnet - which is expected.  All the research I've done says it's best to change one of the subnets - and I agree, but does anyone know if there are any work-arounds without changing one of the subnets?  Some have said it is possible to add a static route to get it to work, but they don't give details, or the instructions they give don't apply to my specific situation.  If my local subnet is 10.0.1.x and I'm assigned 10.0.1.210 from the vpn connection, and I want to communicate with 10.0.1.6 that is on the remote subnet, how can I tell XP to route traffic destined to 10.0.1.6 through the vpn gateway?  Right now it assumes that 10.0.1.6 is on the local subnet so it doesn't forward packets to the gateway.

I've tried> "route add 10.0.1.6 mask 255.255.255.255 10.0.1.210" but it gives an error.

Is there any way around this for those rare instances when both are on the same subnet and you can't change the ip scheme?

Thanks.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-12-26 at 14:58:59ID22103656
Tags

vpn

,

same

,

subnet

,

network

,

remote

Topics

Virtual Private Networking (VPN)

,

Tivoli Storage Manager

Participating Experts
8
Points
250
Comments
28

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Routing, Gateways & Subnets
    An existing network with two class C subnets, one local, one remote, is linked via dial on demand ISDN routers with each router's IP address as the default gateway for the respective subnet. The local subnet now has access to DSL internet via an ethernet router/firewall, so t...
  2. Subnets on VPN Clients -eh?
    The subnet mask for my network is 255.255.255.0 but when i dial in on the VPN my connection gets an IP address that looks right but the subnet for the VPN connection becomes 255.255.255.255. I can't see network neighbourhood computers until I put \\computername\ into windows ...
  3. Using windows VPN (multiple subnets)
    I have a customer with servers in Conn. and SC (both of which are on different subnets. They are connected together by a vpn. We are trying to setup a simple windows vpn so that they can access files from home across the net. The VPN points to the server in Conn. they connect...
  4. VPN IP and Subnet scheme question... what are my opti…
    I have a windows server 2003 PPTP VPN setup. My OFFICE (VPN host network) network IP and subnet is: 192.168.0.X & 255.255.255.0 My HOME network IP and subnet is: 192.168.1.X & 255.255.255.128 I changed my HOME network configuration so the networks are on differen...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: saw830Posted on 2006-12-26 at 15:23:20ID: 18200258

Hi ITLighthouse,

Short answer is "No.  You must have seperate address space for each network."  Imaging a telephone system where sometimes different people had the same number.  What a mess.

Hope this helps,
Alan

 

by: RobWillPosted on 2006-12-26 at 15:26:21ID: 18200264

Afraid a very basic rule with VPN's is both subnets must be different. The problem is the routing devices do not know to which subnet to send the packets, local or remote , if they are the same.
You have not specified how your VPN has been created, but sounds like you may be using a Windows VPN server and client. If so sometimes the Windows VPN client will allow you to connect to the remote VPN server by forcing all traffic through the VPN default gateway. A route is not needed but you do need to make sure the "use default gateway" option is enabled (this actually creates the route). It is enabled by default, but make sure it is checked. This may not work for you, but does in some situations;
control panel | network connections | right click on the VPN/Virtual adapter and choose properties | Networking | TCP/IP -properties | Advanced | General | un-check  "Use default gateway on remote network"

 

by: lrmoorePosted on 2006-12-26 at 15:35:28ID: 18200300

What kind of VPN are you using?
"yes" if you are using a Cisco site-to-site VPN

 

by: ITLighthousePosted on 2006-12-26 at 17:12:49ID: 18200578

Thanks for the responses.  

Typically, our clients have a firewall\router that passes vpn requests to a Windows server configured for Routing and Remote Access.  The type of vpn is pptp and we use the native windows dial-up from XP to establish the connection.  We use this method for remote support and travel around a lot.  Sometimes the LAN we're on happens to be the same subnet as the network of a client we need to connect to.  Some forums I've seen talk about using the route command to create a peer-to-peer static route - saying that it is the only way around the problem.  Supposedly, in XP you can create a static route to tell it to route to a specific IP using a different gateway.

I've tried the "use default gateway on remote network" both ways and get the same result.

 

by: RobWillPosted on 2006-12-26 at 17:43:04ID: 18200667

When using the windows VPN, the gateway to the corporate network is the same as the assigned VPN/Virtual adapter's IP. This may be static or dynamic. The "use default gateway" option creates a route forcing all traffic to the remote network using that gateway. You can verify this by running    route print   at a command line. Therefore there is nothing gained by adding a route, and actually you should receive an error to the effect that the route is alresdy in place. If you wish to try, the route statement would look like the following, assuming the VPN client were assigned the IP of 10.0.1.210 (which is also the VPN gateway address)
route add 10.0.1.0 mask 255.255.255.0 10.0.1.210
this will route all 10.0.1.x traffic to the VPN server, however it will not as a rule allow you to connect to other devices on the remote network other than the VPN server.

 

by: rsivanandanPosted on 2006-12-26 at 22:46:25ID: 18201307

Policy Based Nat should allow you to do that if your devices are capable of doing that.

Cheers,
Rajesh

 

by: ITLighthousePosted on 2006-12-27 at 12:14:24ID: 18204386

Ok, so I accept the answer that what I want to do is not possible.  But I'm still curious about what is said on a few forums I found such as the following:  
http://marc.theaimsgroup.com/?l=vpn&m=110267670712032&w=2

The impression I get is that while you can use XP's route command to create a route to a specific network, you can also use it to create a route to a specific host - some have called it peer to peer routing.  Basically you specify the ip of the host, a 32 bit mask (which is default if you don't specify a mask) and the gateway to reach that host.  

I suppose that even if I was able pass local packets along a different route, the server on the other end would need the same modification to know where to route the response. Otherwise, it would think the target was on its local network.

 

by: RobWillPosted on 2006-12-27 at 13:16:24ID: 18204771

There are a series of issues at play, but all relate to "confusion" as to where to send the packets, when the subnets are similar.
Before going any further is 10.0.1.6 the VPN server? If not one additional issue is the if the packet reaches the remote device it will reply to the default gateway, not the VPN client, and the packet is lost.

The proper solution yo your problem is to change the corporate site to something less common, as difficult a task as that might be. However, I wouldn't think 10.0.1.0 is that common, at least not like 192.168.0-2.0 or 10.0.0.0

 

by: ITLighthousePosted on 2006-12-27 at 14:39:26ID: 18205224

10.0.1.6 is not the vpn server, it's just another server on the network.  At this particular client, a PIX firewall acts as the vpn endpoint.  The reason I was asking was because I was at a particular site and would have liked to access that server to make a quick configuration change remotely, but the location I was at happened to be on the same subnet as the remote location I needed to connect to.  I was just looking for a quick and dirty way to connect to that server while at that location.  The proper solution is to change one of the subnets, but I wasn't going to do that just for a one-time convenience.

If there was a solution, I figured it would be an handy little "trick" in case I run into a similar situation in the future since I travel a lot and do a lot of remote support.

Thanks anyway.

 

by: lrmoorePosted on 2006-12-27 at 14:45:59ID: 18205250

The PIX endpoint could be configured to work with the situation, but given that you are using MS PPTP client you have some other options, namely the route add option.
You can try this after connecting to the VPN
c:\>ipconfig  <== note the IP address of your VPN connection
c:\>route add 10.0.1.6 mask 255.255.255.255 10.0.1.xx  <== where .xx is your own VPN connection IP

This assumes that your VPN client is also a 10.0.1.x IP address....

 

by: RobWillPosted on 2006-12-27 at 14:55:31ID: 18205293

Would have been good to know sooner this was a Pix/Cisco VPN, as none of my above comments are related to your configuration, other than the concept.
Perhaps some of the others more familiar with Cisco configurations have a work around. As a rule it is not recommended or possible, but some of the above imply under certain circumstances it may be possible.

I have no problem with you asking the moderators to re-open the question and remove "accepted" from the comment above.
http://www.experts-exchange.com/help.jsp#hi17

 

by: ITLighthousePosted on 2006-12-27 at 14:56:24ID: 18205297

Yes, the route add command is exactly what I was curious about.  I've tried exactly what you said already, and it gives an error.   BTW... you don't need to specify a mask if you want a 32 bit mask - it is default.

Thanks anyway.

 

by: RobWillPosted on 2006-12-27 at 14:56:44ID: 18205300

Sorry lrmoore, didn't refresh. Hoping you or Rajesh would jump in.
--Rob

 

by: ITLighthousePosted on 2006-12-27 at 15:04:49ID: 18205327

RobWill, this is our only client that has a PIX firewall.  I was looking for a general solution that would work for a variety of situations.  Your comments confirmed what I already suspected.  Any thoughts on what Irmoore said?  That is what I tried in the first place and it didn't work.

 

by: RobWillPosted on 2006-12-27 at 15:13:55ID: 18205359

>>"Any thoughts on what Irmoore said? "
lrmoore is the master !  I voice opinions, he speaks from the VPN gospels <G>, especially when Cisco is being discussed. Rajesh, is right up there too, in the Cisco world.
In my experience what you want to do is not possible, at least on the configurations I have worked on. Only contacting the VPN serer itself with the Windows VPN configuration has ever worked for me. Having said that, my knowledge of Cisco is limited to some very basic configurations, so it may be configurable.

 

by: ITLighthousePosted on 2006-12-27 at 15:32:26ID: 18205462

Ok, let's forget I said anything about Cisco.  What about the route add command?  After connected to the vpn I tried "route add 10.0.1.6 mask 255.255.255.255 10.0.1.210" and it wouldn't take.  It said parameter is invalid.

 

by: RobWillPosted on 2006-12-27 at 16:02:56ID: 18205613

Personally I don't see where the route on the client machine is necessary. Your VPN can be configured with or without split-tunneling. Split-tunneling allows access to the local and remote networks simultaneously. Most clients, and most sys admins do not enable split tunneling as there are huge security risks in doing so. Checking the box on the "default gateway option", on the windows client disables split tunneling.
If Split-tunneling is enabled, you cannot contact the remote network as the subnets are the same and with the local network accessible, all traffic will not leave the local network.
If split-tunneling is not enabled, ALL traffic will be forced to the remote network through the VPN default gateway (10.0.1.210) regardless. Connect the VPN and do a tracert, you should see this.
Once the packet is sent over the tunnel the reply however, will likely not be sent to the client machine but rather the corporate network's default gateway. Therefore, in my opinion you would need the route on that machine pointing to the remote client:
route add 10.0.1.210 mask 255.255.255.255 <corporate VPN gateway>
However, that is just an opinion, and if it were to work, I don't see as terribly useful unless all clients have a static IP, and there is a route for each client.

 

by: lrmoorePosted on 2006-12-27 at 18:30:04ID: 18206071

Connect to VPN, then post result of
c:\>ipconfig
c:\>route print

 

by: ITLighthousePosted on 2006-12-29 at 16:04:44ID: 18217233

As requested...

[IPCONFIG]
Windows IP Configuration
Ethernet adapter Local Area Connection 3:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 10.0.1.150
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.0.1.1

PPP adapter MTC VPN:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 10.0.1.210
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . : 10.0.1.210

[ROUTE PRINT]
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 0d 9d 46 08 44 ...... National Semiconductor Corp. DP83815/816 10/100
MacPhyter PCI Adapter - Packet Scheduler Miniport
0x80004 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0         10.0.1.1      10.0.1.150       21
          0.0.0.0          0.0.0.0       10.0.1.210      10.0.1.210       1
         10.0.1.0    255.255.255.0       10.0.1.150      10.0.1.150       20
       10.0.1.150  255.255.255.255        127.0.0.1       127.0.0.1       20
       10.0.1.210  255.255.255.255        127.0.0.1       127.0.0.1       50
   10.255.255.255  255.255.255.255       10.0.1.150      10.0.1.150       20
   10.255.255.255  255.255.255.255       10.0.1.210      10.0.1.210       50
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
(public ip of remote host)  255.255.255.255         10.0.1.1      10.0.1.150       20
        224.0.0.0        240.0.0.0       10.0.1.150      10.0.1.150       20
        224.0.0.0        240.0.0.0       10.0.1.210      10.0.1.210       1
  255.255.255.255  255.255.255.255       10.0.1.150      10.0.1.150       1
  255.255.255.255  255.255.255.255       10.0.1.210      10.0.1.210       1
Default Gateway:        10.0.1.210
===========================================================================
Persistent Routes:
  None

 

by: lrmoorePosted on 2006-12-30 at 05:51:29ID: 18218822

You should be able to add:
C:\>route add 10.0.1.0 mask 255.255.255.0 10.0.1.210 metric 1
OR:
C:\>route add 10.0.1.6 mask 255.255.255.255 10.0.1.210

 

by: ITLighthousePosted on 2006-12-30 at 20:25:42ID: 18220557

Irmoore,

Neither command works after the vpn is connected.  The error is:
"The route addition failed: The parameter is incorrect."

I can, however, add those routes before the vpn is connected, then establish the vpn, but I am still unable to communicate with the remote network.

Any other ideas?

 

by: lrmoorePosted on 2006-12-31 at 06:46:34ID: 18221414

It was a shot in the dark anyway . . .
I was following a logical path of what you thought you had read would work with a route statement. Obviously it doesn't work.
I'm out of ideas.

 

by: RobWillPosted on 2006-12-31 at 07:47:05ID: 18221550

Interesting, playing with a PPTP connection and route print here, the  "route add 10.0.1.0 mask 255.255.255.0 10.0.1.210" is automatically applied when you un-check "use remote gateway", however, of course if the subnets were the same you wouldn't be able to connect to anything remotely.

As mentioned earlier., the only real solution is to change the subnet at one site, preferably the VPN server end.

 

by: ITLighthousePosted on 2007-01-01 at 12:18:42ID: 18224775

Thanks for the suggestions everyone.

 

by: sstoyanovPosted on 2008-02-11 at 10:35:41ID: 20868852

Indeed the last proposed solutions works. Thank you, RobWill.

The solution is to uncheck "Use default gateway on remote network" in Connection properties -> Network -> TCP/IP -> Advanced.  
When that option is unchecked consequences are:
- computers in local network aren't reachable, instead computers on other side of VPN connection are reachable.
- all other network traffic to Internet is not routed via VPN connection, i.e. the old real gateway is used  http://whatismyip.com shows the IP address supplied by your ISP.

When that option is checked consequences are:
- computers in local network are reachable, but computers on the other side of VPN connection are not reachable.
- all other network traffic to Internet is routed via VPN connection. http://whatismyip.com shows the destination IP address of VPN connection.


 

by: nl4jyPosted on 2008-09-24 at 06:54:37ID: 22559690

Only solution that would work would be to add another device on the local side to change the ip address to be different from the remote network.

One way of doing so is to add a router between the connection.

 

by: casedog21Posted on 2008-10-08 at 18:56:48ID: 22675075

You can browse around the network if you use the FQDN when you look up your machine resources though. I have done this several times when I have had to work on clients with the same subnet as us.  That was from a workstation dialed into a client network.

Casey

 

by: rmyers1968Posted on 2008-11-04 at 13:19:21ID: 22880890

Some devices/software support VPN-Bridging (this is what you want) most devices/software support VPN-Routing

FOR TCPIP
Bridging = connecting two networks as if they are on the same subnet
Routing = connecting two networks that are on different subnets

Does this help?

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...