routing question

Laszlo Nagy gandalf at shopzeus.com
Sun Jan 20 09:12:45 PST 2008


Laszlo Nagy írta:
>
>>> - ping from pc on 0.0 network to 192.168.2.138
>>>   
>> Well, I cannot do this from here. Those computers are X terminals, 
>> they do not run inetd nor sshd. I cannot login from here and I cannot 
>> leave now, but I can do it later if necessary.
>>
>>> - sysctl -a net.inet.ip.forwarding (on the GatewayComp)
>>>   
>> cassiopeia# sysctl -a net.inet.ip.forwarding
>> net.inet.ip.forwarding: 1
>> cassiopeia#
>>
>>
>> I can answer the missed question in about an hour.
>
> I'm sorry, not today. I'll try tomorrow.
I did it. It was not working: could not ping 192.168.2.138 from 
192.168.0.114.  Then I added a static route

-net 192.168.2.0 192.168.0.1 255.255.255.0

and it started to work. But here is something I still do not understand. 
The given gateway 192.168.0.1 was already the default gateway. Why do I 
need to add another gateway to the routing table to make it work? I have 
similar installations and specifing one default gateway did the work so far.

Thanks,

   Laszlo



More information about the freebsd-questions mailing list