LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-23-2011, 01:41 PM   #1
dtlfwolf
LQ Newbie
 
Registered: Jan 2011
Location: Landshut, Bavaria, Germany
Distribution: openSuSE, SLES
Posts: 2

Rep: Reputation: 0
Question Adding a route to a dedicated network behind network gateway.


My workstation is on a network, let's say 10.100.0.0/24.

I'm opening up an openVPN Tunnel to a test environment in my company, receiving a lot of routes to this network (address range 172.xx.yy.0). Everything is working fine so far.

In this test environment I placed a number of virtual systems having their own private network (10.99.0.0/24). I have one machine in this virtual cluster which is able to forward incoming IP traffic to the others.

When I login to this gateway system, using the 172.xx.yy.zz address, I can logon to the others using the 10.99.aa.bb addresses. Fine so far.

But I have to be able to call these machines with the 10.99.0.0/24 addresses from my laptop. So I tried to add a route like:

route add -net 10.99.0.0 netmask 255.255.255.0 gw 172.xx.yy.zz

Unfortunately I received an error messages:
SIOCADDRT: No such process

According to the entries in other forum articles (Google helps in most cases), I have to add a host route first:
route add -host 172.xx.yy.zz gw 172.well.defined.dest

But this doesn't help.
Any ideas, what to do next?


Cheers
dtlfwolf
 
Old 03-23-2011, 05:44 PM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
The route add will only work if the VPN tunnel gives you an tun/tap interface with ip range of
172.xx.yy.zz which you are saying can be reached directly. In other words, routes to other networks can only be added to local system when they are pointing to a gateway in the same network as the system you are trying to add the route.

Is your tun/tap interface (i assume openvpn here but correct me if I am wrong) giving ip in the same range as the ip of the lab network ? Otherwise the only option is to ssh to the lab PC and play from there ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding route entry to linux routing table with external gateway netg Linux - Newbie 1 03-11-2011 08:39 AM
Xen network-route AND network-bridge setup kwiksand Linux - Networking 1 08-22-2010 03:18 PM
allow machine to route to existing network without occupy the network IP cheehongjb Linux - Networking 4 12-16-2008 11:30 PM
Adding new Linux firewall/router on network with pre-existing gateway/router grittyminder Linux - Networking 4 08-13-2008 02:17 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration