Question

Trouble routing to a different network segment over VPN

Asked by: cahall85

Hello,

I wonder if anyone can help me.

Setup:

[1] Main network segment 172.20.0.0/16
[2] Secondary network segment 172.21.0.0/16

When on [1] and want to access to [2] I add the static route in a CMD:

route -p add 172.21.0.0 mask 255.255.0.0 172.20.3.10 metric 1

And that works fine. However, if I'm accessing [1] over VPN from home and try to access [2] by adding the same persistent static route I get the following error:

The route addition failed: Either the interface index is wrong or the gateway does not lie on the same network as the interface. Check the IP Address Table for the machine.

The problem obviously stems from the VPN but I'm lost as to how to troubleshoot. I'm using Cisco's proprietary VPN software which adds a virtual network interface and statically assigns itself an IP on install so the IP is 192.168.250.49/24. Is there any conceivable way to add a route that takes this into consideration so I can access servers on [2] over VPN?

Thanks in advance for any help.

Best Regards,
Chris

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

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. Cisco VPN
    I am using the PDM client and I have set up a Pix 501 to accept a VPN tunnel from the Cisco 3.0 software. It works great! I can go home and get on and have access to the entire network. Now When I try and login using PPTP it logs in okay but I can not see anything on the net...
  2. VPN Routing Issues
    I have just segmented part of my network and I only have one issue. Here goes. First I will explain my network infrastructure. My edge device is a Cisco pix 515E and it is handling my vpn connections and my local internet access, It's inside interface is connected to my ol...
  3. cisco vpn
    Hello I have a cisco conection to my company for some time, now when I start teh vpn cisco it gioves me this error what do I do? the necessary vpn sub-system is not available. you can not connect to the remote VPN server
  4. Cisco VPN
    We are currently using the Cisco VPN client to establish a VPN connection. Does anyone know how to setup the Cisco VPN client to be available pre-logon to Windows? At my previous employer we were a Microsoft Shop and we created a VPN connection using Microsoft connection wi...
  5. Cisco VPN and MacBook
    I can connect to our network using the Cisco VPN Client on my MacBook and can connect to servers/shares from the coffee house down the road from us. I can connect to the network from home, (at least the client says I am connected), but I cannot access servers/shares, (I get ...

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: stuknhawaiiPosted on 2008-01-26 at 10:10:20ID: 20750526

Try:
route -p add 172.21.0.0 mask 255.255.0.0 192.168.250.49 metric 1

 

by: cahall85Posted on 2008-01-26 at 10:32:12ID: 20750614

I added that:

Persistent Routes:
Network Address  Netmask        Gateway Address  Metric
172.21.0.0              255.255.0.0  192.168.250.49       1

But still can't ping 172.21.0.0/16 network:

Pinging 172.21.10.125 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 172.21.10.125:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

Thanks for trying but there must be a working solution for this.

Best Regards,
Chris

 

by: stuknhawaiiPosted on 2008-01-26 at 10:34:06ID: 20750624

OK. can you provide the output of a "route print" ? (from the command line)

 

by: cahall85Posted on 2008-01-26 at 10:44:37ID: 20750667

Here's a route print output as requested:-

===========================================================================
Active Routes:
Network Destination                Netmask                Gateway                Interface                Metric
127.0.0.0                                 255.0.0.0               127.0.0.1                127.0.0.1                1
172.21.0.0                               255.255.0.0           192.168.250.49      192.168.250.49      1
192.168.1.0                             255.255.255.0       192.168.1.100        192.168.1.100        25
192.168.1.100                         255.255.255.255   127.0.0.1                127.0.0.1                25
192.168.1.255                         255.255.255.255   192.168.1.100        192.168.1.100        25
192.168.250.0                         255.255.255.0       192.168.250.49      192.168.250.49      25
192.168.250.49                       255.255.255.255   127.0.0.1                127.0.0.1                25
192.168.250.255                     255.255.255.255   192.168.250.49      192.168.250.49      25
224.0.0.0                                 240.0.0.0               192.168.1.100        192.168.1.100        25
224.0.0.0                                 240.0.0.0               192.168.250.49      192.168.250.49      25
255.255.255.255                     255.255.255.255   192.168.1.100        192.168.1.100        1
255.255.255.255                     255.255.255.255   192.168.250.49      192.168.250.49      1
===========================================================================
Persistent Routes:
Network Address                   Netmask                 Gateway Address                               Metric
172.21.0.0                               255.255.0.0           192.168.250.49                                     1

 

by: stuknhawaiiPosted on 2008-01-26 at 10:48:17ID: 20750681

Was your VPN connected when you got the above routing table information? If not, could you please provide the same info, but when you are connected? I ask because I dont see a route in there to 172.20.0.0 which should show up when you connect to the VPN.

 

by: stuknhawaiiPosted on 2008-01-26 at 10:49:15ID: 20750687

Also, just for verification, when the VPN is connected, can you connect to a 172.20.x.x device? (the main network)

 

by: cahall85Posted on 2008-01-26 at 10:54:55ID: 20750725

Hi,

Yea sorry, school boy error. I previously did a 'route -f' after being connected so no wonder 172.20.0.0/16 wasn't showing! My apologies.

I'm now connected via VPN and, yes, I can access servers on 172.20.0.0/16 network. Please find attached a text file with my latest route print.

Thanks for your patience.

Chris

 

by: stuknhawaiiPosted on 2008-01-26 at 10:59:43ID: 20750740

Ok, your routing table is correct! That's good. Can you do a tracert to a device on the 172.21.0.0 subnet and provide the output? Thanks.

 

by: cahall85Posted on 2008-01-26 at 11:20:40ID: 20750866

Please find attached a tracert to a server on 172.21.0.0/16 network.

 

by: stuknhawaiiPosted on 2008-01-26 at 11:23:43ID: 20750895

are you able to successfully tracert to a 172.16.0.0 device? From the 172.21.0.0. tracert it shows that either ICMP is disabled or there's the data's just not getting across the VPN.

 

by: cahall85Posted on 2008-01-26 at 11:28:06ID: 20750903

Please find attached a tracert to a 172.20.0.0/16 device- all seems fine for this subnet.

Thanks again.

 

by: stuknhawaiiPosted on 2008-01-26 at 11:37:41ID: 20750949

According to the windows routing table it should be working. I'm it's the way that the VPN is configured on the PIX/ASA/Concentrator that's only allowing traffic to 172.20.0.0 through the tunnel. Can you access the PIX/ASA/Concentrator? Or is this config'd by someone else?

 

by: cahall85Posted on 2008-01-26 at 11:39:54ID: 20750962

I have access to the PIX via Cisco ASDM. However, I'm no PIX engineer! Is there anything you can suggest?

 

by: stuknhawaiiPosted on 2008-01-26 at 11:44:46ID: 20750977

Do you have access to it via SSH? I'm not so keen with the ASDM, I'm a CLI kinda guy! (LOL) But actually I'll be out of the EE relm for the rest of the day today. What you'll be lookin for is a line as follows:
vpngroup [groupname] split-tunnel [#]
the above # correlates to an access-list that should look similar to
access-list [#] permit ip 172.20.0.0 255.255.0.0 192.168.250.0 255.255.255.0
You'll want to add to that
access-list [#] permit ip 172.21.0.0 255.255.0.0 192.168.250.0 255.255.255.0
This will put the route for 172.21.0.0 into the VPN itself.
I'll check back tomorrow to how it went.

 

by: stuknhawaiiPosted on 2008-01-27 at 07:17:02ID: 20753942

Any luck?

 

by: cahall85Posted on 2008-01-27 at 07:50:09ID: 20754016

Hello,

When you posted that I thought it all made sense. I then spent the next couple of hours trying to figure out why it wasn't working! I was using the ASDM at first but then tried the CLI route. I got as far as 'enable' and authenticating but couldn't figure out what commands to execute: if it was Solaris I might've had an clue!

So I have full root access via GUI and CLI but no idea from there. If you could guide me, obviously I'll increase the points for this question.

Thanks in advance,
Chris

 

by: cahall85Posted on 2008-01-27 at 07:51:13ID: 20754020

And here's where I am using CLI.

 

by: stuknhawaiiPosted on 2008-01-27 at 07:55:15ID: 20754030

can you provide a "show run" from the CLI of the PIX? Then I can see exactly how the split-tunnel is setup and define what commands need to be typed in. Thanks.
(pix#show run)

 

by: cahall85Posted on 2008-01-27 at 08:10:31ID: 20754106

Please find attached the output of 'show run'.

Chris

 

by: stuknhawaiiPosted on 2008-01-27 at 09:47:59ID: 20754424

Sorry for the delay, we went to lunch! But here's what you need:
1. login via SSH
2. use the following commands:
config t
access-list VPN-STAFF_splitTunnelAcl extended permit ip 172.21.0.0 255.255.0.0 any
exit
copy run start
then just hit enter for the default saved config name
3. Go ahead and reconnect your VPN.
4. bring up the VPN client console
5. click on Status
6. Click on the Route Details tab and you should see all the routes in it, including 172.21.0.0

 

by: cahall85Posted on 2008-01-27 at 10:05:44ID: 20754475

Hello,

Thanks for your diligence! I did exactly as you said and I have the expected results but I still cannot ping the devices on that subnet. Sorry to be a nuisance! I've increased the points to 500 so I hope I can get this sorted soon- let me know if there's anything else I can do.

Best Regards,
Chris

 

by: cahall85Posted on 2008-01-27 at 10:06:31ID: 20754479

Increased points.

 

by: stuknhawaiiPosted on 2008-01-27 at 10:27:31ID: 20754537

Can you connect to a device on the 172.21.0.0 subnet? How does the data get from the PIX to the 172.21.0.0 network? Is there another router or firewall it goes through?

 

by: cahall85Posted on 2008-01-27 at 10:31:22ID: 20754550

Hi,

I can't connect to a device on 172.21.0.0 subnet. We have an ISA server acting as a firewall but I looked yesterday for existing rules and it looked pretty empty. Do you think I may need to add a parameter to this? It's Microsoft's ISA Server.

Chris

 

by: stuknhawaiiPosted on 2008-01-27 at 10:40:15ID: 20754577

How does the data get from the PIX to the 172.21.0.0 network? Is there another router or firewall it goes through? Also, can you try a tracert to the 172.21.0.0 network again, now that the route for it is coming from the PIX I'm hoping it gets to the PIX atleast and then maybe it dies off.

Also, I see a route in the PIX to the 172.21.0.0 network and it's going to 172.20.3.10 (what's this)?

 

by: cahall85Posted on 2008-01-27 at 10:49:53ID: 20754616

Okay if I do a tracert it hits 172.20.3.10 which is a proxy server and also handles the extranet. You're right: it dies after that but at least it's getting somewhere! Funny thing is I can do a separate tracert and sometimes it reads extranet.upco.co.uk and other times upco-proxy.upco.co.uk; I'm assuming this is because they're essentially the same box with the same IP and the DNS will have duplicate entries for the host names.

Thanks again,
Chris

 

by: stuknhawaiiPosted on 2008-01-27 at 10:54:29ID: 20754638

Alright, now we're getting somewhere. This proxy server, is that the ISA? We need to add a rule to it allowing traffic from 192.168.250.0/24 subnet to the 172.21.0.0/16 subnet. Then you should be able to access the 172.21.0.0 subnet !

 

by: cahall85Posted on 2008-01-27 at 11:05:59ID: 20754689

No they're different servers. Basically the ISA server 10.250.250.10 and the proxy is 172.20.3.10. The proxy is just a virtual machine sat on a XEN server and I port stuff out on the extranet in a config file with vi-  I'm not aware of any rules on there but I've seen the ISA management console and there are a few rules setup there but I'm lost after that!

 

by: stuknhawaiiPosted on 2008-01-27 at 11:08:05ID: 20754702

Can you login to a machine on the 172.20.0.0 subnet and do a tracert to a device on the 172.21.0.0 so we can see how it gets there?Thanks.

 

by: cahall85Posted on 2008-01-27 at 11:17:23ID: 20754732

Interesting, it looks like it hits the proxy twice.

 

by: stuknhawaiiPosted on 2008-01-27 at 11:22:03ID: 20754747

Well the routing is correct, so there's something in that proxy that's not allowing traffic from 192.168.150.0 to 172.21.0.0. What kind of proxy server is it? What OS/app used to do the poxying? Are there two network cards in the proxy? Maybe one for 172.20.0.0 and one for 172.21.0.0? Is the 172.21.0.0 the extranet subnet?

 

by: cahall85Posted on 2008-01-27 at 11:29:54ID: 20754784

Please find attached some info about the proxy [172.20.3.10].

The 172.21.0.0 is our remote site in another office. We never got firewall rules setup to access servers from 172.20.0.0 but instead setting up the persistent routes you saw earlier:-

route -p add 172.21.0.0 mask 255.255.0.0 172.20.3.10 metric 1

Do think the proxy perhaps could have a rule somewhere to allow the traffic we've allowed on the PIX?

Many thanks,
Chris

 

by: stuknhawaiiPosted on 2008-01-27 at 11:50:29ID: 20754876

Can you edit the "proxy_read_maps" on the Proxy? It appears that the proxy_read_maps tell the proxy who the authorized user subnets are. Does this sound familiar?

 

by: cahall85Posted on 2008-01-27 at 11:58:55ID: 20754913

From the list I sent you of find / -name *proxy* I've opened them with vi and can't see anything familiar. This is a bit new to me as I haven't had anything to do with building the network infrastructure. Feel free to give up at any time!

Chris

 

by: stuknhawaiiPosted on 2008-01-27 at 12:03:38ID: 20754925

LOL...were there's a will, there's a way! From the tracerts we can see that somehow the Proxy is also routing to the 172.21.0.0 network, do you know how the 172.20.0.0 is physically connected to the 172.21.0.0 network? There must be a layer 3 device,  there has to be something that connects the two devices and it will need to have a 172.21.x.x address...do you have any idea what this is?

 

by: stuknhawaiiPosted on 2008-01-27 at 12:07:08ID: 20754937

HOLD ON...before going too deep into the proxy...we can get to the proxy just fine, I'm thinking that whatever connects the 172.20.0.0 and 172.21.0.0 network has some type of filtering or maybe the routing isn't in place.
1. can you prove a "route" from the proxy? Maybe the proxy doesn't know how to get back to 192.168.150.0, and we can see what the proxy's default route is.

 

by: cahall85Posted on 2008-01-27 at 12:14:47ID: 20754966

Okay I've got some more info for you. That what you meant?

 

by: stuknhawaiiPosted on 2008-01-27 at 12:22:49ID: 20755019

Here you go:
route add -net 192.168.149.0 netmask 255.255.255.0 gw 172.20.1.1
This will tell the Proxy how to route traffic back to the VPN users. The other thing is, (if this doesnt fix it) that the devices on 172.21.0.0 have to know how to get back to 192.168.149.0.

 

by: cahall85Posted on 2008-01-27 at 12:28:39ID: 20755039

UPCO-PROXY# route add -net 192.168.149.0 netmask 255.255.255.0 gw 172.20.1.1
route: bad value: netmask

Should that be 255.255.0.0?

 

by: stuknhawaiiPosted on 2008-01-27 at 12:41:28ID: 20755081

Oh, it's a different command for NetBSD than for Debian. Here you go:
route add -net 192.168.149.0 -netmask 255.255.255.0 172.20.1.1
This should work.

 

by: cahall85Posted on 2008-01-27 at 13:09:06ID: 20755204

Hello, sorry I nipped out. I'll be making dinner soon so that will be me for the day but feel free to drop me some more advice.

I added that successfully but it something is choking it still. Can't ping and only tracerts to  the proxy! This is going to be a well-earned 500 points. I'd give you more if I could.

Many thanks, speak to tomorrow.
Chris

 

by: stuknhawaiiPosted on 2008-01-27 at 13:16:07ID: 20755236

OK. After you put in the route can you provide a "route" again to make sure it's in the routing table and see if you can ping from the proxy to your VPN address. If that ping works then we're making progress and the next step would be to remote to a 172.21.0.0 device and provide a "route print" so we can see if a route for the 192.168.149.0 network is needed. So what's for dinner? I love to cook ...MMMMMM.. talk to you tomorrow!

 

by: stuknhawaiiPosted on 2008-01-28 at 17:28:06ID: 20764677

Any luck?

 

by: cahall85Posted on 2008-01-29 at 03:43:39ID: 20766916

Hello, I'm actually at work at the moment so have no way of checking anything through the VPN connection but I did manage to do as you said and could in fact ping from the proxy to my VPN address 192.168.250.49. However, I've not yet been able to provide route table information from a device on 172.21.0.0/16 subnet: this is because this network is managed by an on-site administrator so I'm awaiting a request to provide the route table info- I'll let you know when I have it. Thanks again for your patience.

Best Regards,
Chris

 

by: stuknhawaiiPosted on 2008-01-29 at 04:34:21ID: 20767135

Great. The 172.21.0.0 subnet may just need a route to the 192.168.250.0 subnet pu in it's default gateway, pointing back to the Proxy.

 

by: cahall85Posted on 2008-01-30 at 09:00:54ID: 20778709

I'm having to arm wrestle to get access to a machine on that subnet- I don't manage the infrastructure there so you can well imagine my predicament!

I'll get access, the guy just wants answers as he wasn't aware of this issue. I asked for netstat -r sent in an email but haven't got it as of yet. I'll let you know when I do.

Thanks for your patience, speak to you shortly.

 

by: cahall85Posted on 2008-02-07 at 08:33:09ID: 20842235

Office politics prevail! I'm giving you the points regardless. Thanks for your time and patience.

Chris

 

by: cahall85Posted on 2008-02-07 at 08:34:28ID: 31425294

A very diligent, intelligent and most of all, patient expert. Well done and thank you for the consultation.

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...