routing question
Laszlo Nagy
gandalf at shopzeus.com
Thu Jan 17 07:24:15 PST 2008
Steve Bertrand wrote:
>> Internet -----> [Hw Router] ---- (LAN1: 192.168.2.0/24) -----> [
>> 192.168.2.138 GatewayComp 192.168.0.1 ] ------ (LAN2: 192.168.0.0/24)
>>
>> I would like to access a computer from LAN1 to LAN2.
>>
>
> Perform the following and post the results of:
>
> - ping from GatewayComp to pc on 0.0 network and a pc on 2.0 network
>
cassiopeia# ping 192.168.2.114
PING 192.168.2.114 (192.168.2.114): 56 data bytes
64 bytes from 192.168.2.114: icmp_seq=0 ttl=64 time=0.171 ms
64 bytes from 192.168.2.114: icmp_seq=1 ttl=64 time=0.184 ms
64 bytes from 192.168.2.114: icmp_seq=2 ttl=64 time=0.229 ms
^C
--- 192.168.2.114 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.171/0.195/0.229/0.025 ms
cassiopeia# ping 192.168.0.132
PING 192.168.0.132 (192.168.0.132): 56 data bytes
64 bytes from 192.168.0.132: icmp_seq=0 ttl=64 time=0.260 ms
64 bytes from 192.168.0.132: icmp_seq=1 ttl=64 time=0.235 ms
64 bytes from 192.168.0.132: icmp_seq=2 ttl=64 time=0.133 ms
^C
--- 192.168.0.132 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.133/0.209/0.260/0.055 ms
cassiopeia#
> - ping from pc on 2.0 network to 192.168.0.1
>
office1adsl# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.270 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.456 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.178 ms
^C
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.178/0.301/0.456/0.116 ms
> - 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.
Thanks,
Laszlo
More information about the freebsd-questions
mailing list