From owner-freebsd-questions Tue Oct 14 18:36:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA03587 for questions-outgoing; Tue, 14 Oct 1997 18:36:14 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from scruz.net (nic.scruz.net [165.227.1.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA03579 for ; Tue, 14 Oct 1997 18:36:08 -0700 (PDT) (envelope-from dkulp@diz.pt.scruznet.com) Received: from diz.pt.scruznet.com (diz.pt.scruznet.com [205.179.107.66]) by scruz.net (8.8.5/1.34) with ESMTP id SAA09757; Tue, 14 Oct 1997 18:36:01 -0700 (PDT) Received: (from dkulp@localhost) by diz.pt.scruznet.com (8.8.5/8.7.3) id SAA00288; Tue, 14 Oct 1997 18:34:55 -0700 (PDT) Date: Tue, 14 Oct 1997 18:34:55 -0700 (PDT) Message-Id: <199710150134.SAA00288@diz.pt.scruznet.com> From: David Kulp MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Doug White Cc: David Kulp , freebsd-questions@FreeBSD.ORG Subject: Re: lp0 laplink gateway? In-Reply-To: References: <34434E5E.41C67EA6@neomorphic.com> X-Mailer: VM 6.22 under 19.15 XEmacs Lucid Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Thanks, Doug. You were right, I was missing the gateway=YES line in my /etc/sysconfig, but it didn't solve the problem just the same. I turned off routed per your comment, and so far no success. All the ip's are in my subnet. To be concrete, here is the netstat, ifconfig, route, and ping results. If someone has the patience to look at this, I'd appreciate any feedback. m1 (205.179.170.68) is trying to connect to m3 (205.179.170.65) via m2 (205.179.170.66): m1 > ifconfig -a lp0: flags=8851 mtu 1500 inet 205.179.170.68 --> 205.179.170.66 netmask 0xffffff00 tun0: flags=8010 mtu 1500 ppp0: flags=8010 mtu 1500 ppp1: flags=8010 mtu 1500 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 ds0: flags=8008 mtu 65532 m1 > netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 205.179.170.66 UGSc 1 16 lp0 127.0.0.1 127.0.0.1 UH 0 80 lo0 205.179.170.66 205.179.170.68 UH 1 3 lp0 205.179.170.68 127.0.0.1 UH 0 0 lo0 AppleTalk: Destination Gateway Flags Refs Use Netif Expire m1 > route -n get 205.179.170.65 route to: 205.179.170.65 destination: default mask: default gateway: 205.179.170.66 interface: lp0 flags: recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 16384 16384 0 0 0 0 1500 0 m1 > ping 205.179.170.66 PING 205.179.170.66 (205.179.170.66): 56 data bytes 64 bytes from 205.179.170.66: icmp_seq=0 ttl=255 time=2.146 ms ...etc... m1 > ping 205.179.170.65 PING 205.179.170.65 (205.179.170.65): 56 data bytes --- 205.179.170.65 ping statistics --- 8 packets transmitted, 0 packets received, 100% packet loss [fails] m2 > ifconfig -a de0: flags=8843 mtu 1500 inet 205.179.170.66 netmask 0xfffffff8 broadcast 205.179.170.71 ether 00:00:c0:48:9f:f2 lp0: flags=8851 mtu 1500 inet 205.179.170.66 --> 205.179.170.68 netmask 0xffffff00 tun0: flags=8010 mtu 1500 sl0: flags=c010 mtu 552 ppp0: flags=8010 mtu 1500 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 m2 > netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 205.179.170.65 UGSc 2 0 de0 127.0.0.1 127.0.0.1 UH 0 0 lo0 205.179.170.64/29 link#1 UC 0 0 205.179.170.65 0:c0:7b:4e:a2:6d UHLW 4 22 de0 916 205.179.170.68 205.179.170.66 UH 1 69 lp0 m2 > ping 205.179.170.68 PING 205.179.170.68 (205.179.170.68): 56 data bytes 64 bytes from 205.179.170.68: icmp_seq=0 ttl=255 time=1.937 ms ...etc... m2 > ping 205.179.170.65 PING 205.179.170.65 (205.179.170.65): 56 data bytes 64 bytes from 205.179.170.65: icmp_seq=0 ttl=64 time=6.126 ms ...etc... anyone have any ideas? thanks very much! -david kulp. Doug White writes: > On Tue, 14 Oct 1997, David Kulp wrote: > > > I'm having troubles trying to get a machine on one side of > > a laplink to go route through the other side. Here's what I've > > got: > > > > machine1 (ip1) is a laptop with a laplink parallel cable. > > machine2 (ip2) is a desktop with a laplink connected to machine1 > > and an ethernet card connecting to a hub and ultimately to a > > router (ip3) that connects to the outside world. > > OK. I assume that all IPs are valid for your network (ie, you're not > using a 10.x.x.x or 192.168.x.x IP for the laptop). > correct. > > on machine1 I have: > > ifconfig_lp0="inet ip1 ip2 netmask 0xffffff00" > > defaultrouter="ip2" > > > > on machine2 I have: > > ifconfig_lp0="inet ip2 ip1 netmask 0xffffff00" > > ifconfig_de0="inet ip2 netmask 0xffffff00" > > defaultrouter="ip3" > > OK. > > > I'm running "routed -s" on machine2. > > Probably not necessary. > ok, i've removed that. actually, after enabling the middle machine as a gateway, I tried it without, then started routed, and tried again, to no avail. > > on machine1, I can ping ip2 successfully, but i can't ping ip3. > > on machine2, I can ping ip1 and ip2. > > > > shouldn't ip1 be able to reach ip3 and the rest of the LAN and/or > > internet? > > You won't get anywhere to start if you haven't enabled gatewaying in > /etc/rc.conf or /etc/sysconfig. I think that should be it, if machine2 > and machine1 can reach one another. >