From owner-freebsd-questions Wed Apr 15 03:39:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA21546 for freebsd-questions-outgoing; Wed, 15 Apr 1998 03:39:43 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA21480 for ; Wed, 15 Apr 1998 10:39:36 GMT (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id UAA01586; Wed, 15 Apr 1998 20:08:27 +0930 (CST) (envelope-from grog) Message-ID: <19980415200826.J1090@freebie.lemis.com> Date: Wed, 15 Apr 1998 20:08:26 +0930 From: Greg Lehey To: Gary Kline Cc: freebsd-questions@FreeBSD.ORG, imdave@mcs.net Subject: Re: Parallel link References: <19980415112547.P1870@freebie.lemis.com> <199804150448.VAA11801@tao.thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199804150448.VAA11801@tao.thought.org>; from Gary Kline on Tue, Apr 14, 1998 at 09:48:50PM -0700 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 14 April 1998 at 21:48:50 -0700, Gary Kline wrote: > According to Greg Lehey: >> When testing things, don't use /etc/rc.conf. Otherwise you need to >> reboot every time you change anything. > > All right; I thought there might be a reinitialization > cmd. .... Sure, but none that accesses /etc/rc.conf. >> Your tools are ifconfig and netstat--see "The Complete FreeBSD", >> second edition (http://www.cdrom.com/titles/os/bsdbook2.htm) for >> techniques. At this stage, it would be good to see the output from >> 'ifconfig -a' and 'netstat -rn' on both machines. > > Appended, find the output files from my 6x86 and this (P90) > platform. Still not working, and assuming that my laplink > cable is good, something must be wrong with my /etc/sysconfig > and /etc/rc.conf configurations. You and Doug and probably > many others may see it at once. Repeat after me "I will not use /etc/rc.conf until the %^&%^&* thing is running". It's just noise until then. > I've got your first book ``INSTALLING AND RUNNING FREEBSD''; > since 2.1.5, and I'll order the 2nd ed of your ``COMPLETE > FREEBSD'' There's a lot more in the 2nd edition. > In the meantime, let me know if the following makes any > sense! > # > # P90 (tao) > # Some of this looks OK. > lp0: flags=8851 mtu 1500 > inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 Your local address is 10.1, the remote address is 10.2. Good. > lp1: flags=8810 mtu 1500 > tun0: flags=8051 mtu 296 > inet 207.108.223.55 --> 207.108.223.19 netmask 0xffffff00 > sl0: flags=c010 mtu 552 > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 207.108.223.19 UGc 3 31 tun0 > 10.0.0.1 127.0.0.1 UH 0 0 lo0 => > 10.0.0.1/32 10.0.0.2 UGSc 0 0 lp0 You have a route to 10.1 via the lp0 interface. This is the wrong way round. You want to enter: # route delete 10.1 # route delete 10.1 (same again) # netstat -rn The two routes above should then be gone. Then enter: # route add 10.1 127.1 # route add 10.2 10.1 # netstat -rn You should then have the routes > 10.0.0.1 127.0.0.1 UH 0 0 lo0 => > 10.0.0.2/32 10.0.0.1 UGSc 0 0 lp0 > # > # 6x86 (sage) > # > lp0: flags=8851 mtu 1500 > inet 10.0.0.2 --> 10.0.0.1 netmask 0xff000000 Your local address is 10.2, the remote address is 10.1. That's correct, too. > tun0: flags=8051 mtu 296 > sl0: flags=c010 mtu 552 > lo0: flags=8049 mtu 16384 > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > 10.0.0.1 10.0.0.2 UH 0 0 lo0 => > 10.0.0.1/32 10.0.0.2 UGSc 0 0 lp0 Again, you have the IP addresses the wrong way round. Do as above. You *should* then see: Internet: Destination Gateway Flags Refs Use Netif Expire 10.0.0.2 127.0.0.1 UH 0 0 lo0 => 10.0.0.1/32 10.0.0.2 UGSc 0 0 lp0 127.0.0.1 127.0.0.1 UH 0 749 lo0 You can really write the IP addresses as just two digits with a . in between, as shown. After that, you should be able to ping. Let me see the output again, whether or not it works, and we'll move on. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message