Date: Tue, 14 Oct 1997 18:34:55 -0700 (PDT) From: David Kulp <dkulp@neomorphic.com> To: Doug White <dwhite@resnet.uoregon.edu> Cc: David Kulp <dkulp@neomorphic.com>, freebsd-questions@FreeBSD.ORG Subject: Re: lp0 laplink gateway? Message-ID: <199710150134.SAA00288@diz.pt.scruznet.com> In-Reply-To: <Pine.BSF.3.96.971014100123.2456H-100000@gdi.uoregon.edu> References: <34434E5E.41C67EA6@neomorphic.com> <Pine.BSF.3.96.971014100123.2456H-100000@gdi.uoregon.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 205.179.170.68 --> 205.179.170.66 netmask 0xffffff00 tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 ds0: flags=8008<LOOPBACK,MULTICAST> 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: <UP,GATEWAY,DONE,STATIC,PRCLONING> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 205.179.170.66 netmask 0xfffffff8 broadcast 205.179.170.71 ether 00:00:c0:48:9f:f2 lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 205.179.170.66 --> 205.179.170.68 netmask 0xffffff00 tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710150134.SAA00288>