Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a two networks that I need to link in two directions.

  • network A - and its gateway
  • network B

network B has a VPN server ( that is doing a masquerade already, so network A can ping network B.

But the vice-versa isn't true, I can't make network B machines ping or see network A.

I tried to add this to a network B machine without a result:

route add  -net netmask gw

How can I make network B see network A?

Edit#1 : OpenVPN, TUN mode. I need to add routing on network A so it use the VPN server as its gateway to network B.

share|improve this question
What VPN server? What mode is it set to? – Journeyman Geek Jan 16 '14 at 1:08
What you really need is a router between a and b. Or turn off the masquerading and use route statements on both sides. – Ron Trunk Jan 16 '14 at 17:08
Ron : Can you please give example of route statments ?? Thanks – Ahmad Hamad Jan 16 '14 at 18:48
Hi, I made a small draw because I think I misunderstand your problem. But as I understand it correctly (expect the VPN server thing) you should add the GW to the other interface too. What does it print out after invoking route add -net netmask gw ? – csikos.balint Jan 16 '14 at 19:56
@csikos.balint Thanks for being interested, it prints nothing (no error message, and the routing becomes listed when I list the routes – Ahmad Hamad Jan 17 '14 at 11:11


I just needed to make the command like this (adding the interface at the end) :

    route add  -net netmask gw eth0
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.