Crucificator
03-14-2003, 11:22 AM
Ok. So I'm routing now...
Or at least I'm trying ...
I am behind a router. So if I want someone to access me I can't give him/her my IP.
So I try to create a route netween me and x to be able to access him.
my IP: 192.168.1.x, my gw a.a.a.a
his IP: 10.0.0.y, his gw b.b.b.b
I do:
route add -net 10.0.0.0 netmask 255.255.255.0 gw b.b.b.b
meaning (I think) that for every ip address that matches 10.0.0.y packets should be forwarded to his gateway.
Still, when I'm issuing this rule it tells me that
SIOCADDRT: Network is unreachable
I don't understand the error. Can someone help me?
Or at least I'm trying ...
I am behind a router. So if I want someone to access me I can't give him/her my IP.
So I try to create a route netween me and x to be able to access him.
my IP: 192.168.1.x, my gw a.a.a.a
his IP: 10.0.0.y, his gw b.b.b.b
I do:
route add -net 10.0.0.0 netmask 255.255.255.0 gw b.b.b.b
meaning (I think) that for every ip address that matches 10.0.0.y packets should be forwarded to his gateway.
Still, when I'm issuing this rule it tells me that
SIOCADDRT: Network is unreachable
I don't understand the error. Can someone help me?