I'm in a network with IP 10.0.1.X (pc A).

There's another sub-network:

I can ping pc B connected to this network:

ping 10.0.3.X ---> OK

Now, B is connected also in wifi to a network (C)

I want to connect to this one directly from my pc:

sudo route add gw 10.0.3.X

but I have this response: SIOCADDRT: No such process

How can I realize this forwarding?

  • Quite apart from the question of 'does 10.0.3.x actually allow itself to be a router', can you including ifconfig output and route output in your query. Apr 3, 2014 at 8:45

2 Answers 2


I don't think you can add a route, because your network has no idea about reaching the 192.168.1.* network. You need to setup a router on PC B, which takes routes the packet from 10.0.. network to 192.168.1.* network. And then you have to keep PC B as your default gateway, which should solve your problem.


You would have to update the routing table on 10.0.1. network's router, so that it will route packets to via 10.0.3.x router.

You also need to make reverse routes from to 10.0.1. network, unless the default router for that network already knows the proper route.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .