Skip to main content

VPN with the same IP range

More
16 years 6 months ago #25990 by netbaba
This is my situation:
office network: 192.168.1.0/24
VPN network: 192.168.3.0/24
remote network: 192.168.0.0/16

If i'm in the remote network i cannot access to resource in office network because the packet are routed throw 192.168.0.0/16
How can i solve this problem?
Thanks

Admin of Wellage Community
www.wellage.net
More
16 years 6 months ago #25995 by KiLLaBeE
i'm still new in this area, but you may need to add a routing table entry that tells the router what gateway to send information out of to reach a non built-in route. Basically, you'd need to add the routing table entry on the remote network's router to the office's router
More
16 years 6 months ago #26043 by ikon
Replied by ikon on topic Re: VPN with the same IP range
192.168.0.0/16 will be a Connected route, so all traffic will be sent out of your Ethernet card at the remote office.

you only need to specify routes for traffic destined for another networks that you do not want sent to your default gateway.

i dont believe you can get round this without changing your Office Networks IP range or your remote office.

I could be wrong, await more replies.

Hang in there.

:p
More
16 years 6 months ago #26052 by Chris
netbaba,

The correct way to handle this problem would be to change the subnet mask of the remote office from /16 to /24.

However, if this is not a viable solution for now and you need to access specific resources located at the office network, a simple static route on the workstations located at the remote office, will do the trick.

For example, let's say you need to access a file server at the office network with ip address 192.168.0.10. If you enter the following dos-based command at a workstation, you should be able to see the file server:

[code:1]route add 192.168.0.10 192.168.0.1 [/code:1]

The above assumes 192.168.0.1 is your network gateway/router.

In addition, you'll most probably need to place a static route on your gateway/router as well.

Cheers,

Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
More
16 years 6 months ago #26075 by netbaba
I try to add a static route on the pc in the remote office, but i recieve an error:
[code:1]route add 192.168.1.0 mask 255.255.255.0 192.168.3.3 metric 1
The route addition failed: The parameter is incorrect[/code:1]

Admin of Wellage Community
www.wellage.net
More
16 years 6 months ago #26076 by SteveP
Here's the example from my help file:

route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2

Where:
157.0.0.0 is the destination
255.0.0.0 is the mask
157.55.80.1 is the gateway
3 is the metric
2 is the interface

You haven't specified the interface and I see that it tries to find the best interface for a given gateway. Try adding <IF 1> or <IF 2> at the end of the command.

Another thing which struck me - is the Default Gateway address correct?
Time to create page: 0.144 seconds