We have a net like this:
local ethernet -> default router -> machine A
machine B
I'm in the local ethernet, and of course all packets to machines not in it are
directed to the default router. I want to access machine B. The problem is
that the router doesn't know about it; only machine A has B in it's hosts
table. Therefore I must build a route that says that packets to B must be sent
via A. I tried the following:
route add <ip address of B> gw <ip address of A>
but I get "SIOCADDRT: Network is unreachable". How can I do it? I'm using
1.2.9 and nettools 1.2.0.
Thanks in advance,
Carlos