Date: Thu, 17 Jan 2008 16:24:11 +0100 From: Laszlo Nagy <gandalf@shopzeus.com> To: Steve Bertrand <iaccounts@ibctech.ca> Cc: freebsd-questions@freebsd.org Subject: Re: routing question Message-ID: <478F731B.5050201@shopzeus.com> In-Reply-To: <478F7142.8040506@ibctech.ca> References: <478F64CF.7000603@shopzeus.com> <478F7142.8040506@ibctech.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478F731B.5050201>