Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 1998 20:08:26 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Gary Kline <kline@thought.org>
Cc:        freebsd-questions@FreeBSD.ORG, imdave@mcs.net
Subject:   Re: Parallel link
Message-ID:  <19980415200826.J1090@freebie.lemis.com>
In-Reply-To: <199804150448.VAA11801@tao.thought.org>; from Gary Kline on Tue, Apr 14, 1998 at 09:48:50PM -0700
References:  <19980415112547.P1870@freebie.lemis.com> <199804150448.VAA11801@tao.thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> 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<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 296
> 	inet 207.108.223.55 --> 207.108.223.19 netmask 0xffffff00
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> 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<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 296
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980415200826.J1090>