*BSD News Article 61304


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.hawaii.edu!ames!agate!howland.reston.ans.net!ix.netcom.com!netcom.com!andrewg
From: andrewg@netcom.com (Andrew Ghali)
Subject: PPPD: Connecting FBSD 2.0.5R to 2.1R
Message-ID: <andrewgDMAo5x.3Js@netcom.com>
Followup-To: comp.unix.bsd.freebsd.misc
Summary: Cant get two machiens connected
Keywords: PPPD, pppd
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
Date: Mon, 5 Feb 1996 08:41:57 GMT
Lines: 96
Sender: andrewg@netcom2.netcom.com

I hate to add to the pppd problems but I got 'em.

Here's the problem: Commercial ISP, FBSD 2.0.5R machine at work, and a
FBSD 2.1R machine at home.  The 2.0.5 pppd kernel code has been patched
and it works like a champ connecting to the ISP (for the curious, it is
a part time link tied to cron for weekday work hours, and has been fine
for 4-5 months).  The 2.1R machine can connect to the ISP also, I just
tested it.  So I assume both kernels' pppd support works fine.  The goal
is to get the 2.0.5 machine to work as a dialup ppp server (even though
it is a ppp client to the ISP) for our crack sales and marketting team
while they are on the road with their lap tops so they can read their
email.  To that end, I am trying to do a proof of concept with the 2.1
machine before anything else.

Information:
The dial in serial port on the 2.0.5 machine has a modem and is configured
with getty for login.  A normal shell session is no problem; added a user
called "ppp" for which the login shell is csh and thr .cshrc is
-------
#	$Id: dot.cshrc,v 1.9 1994/02/21 20:35:58 rgrimes Exp $
#  PPP login shell

limit coredumpsize 0

exec /usr/sbin/pppd 38400 proxyarp -detach -pap -chap AAA.BBB.CCC.YYY:
-------

The /etc/ppp/options file on the 2.0.5 machine is:
-------
# ------/etc/ppp/options------
# Working as a PPP server a client
crtscts				# Hardware flow control
netmask 255.255.255.0		# netmask ( not required )
domain spud.com			# your domain
modem				# modem line
lcp-echo-interval 30		# send echo request every 30 seconds
-------

On the 2.1 machine, I start ppp connections with a script which is
almost identical to the script used by the 2.0.5 machine to connect to
the ISP:
-------
#!/bin/sh
pppd /dev/cuaa0 38400 -pap -chap AAA.BBB.CCC.XXX: defaultroute connect 'chat -f /etc/ppp/spud.script'
ifconfig ppp0 inet AAA.BBB.CCC.XXX AAA.BBB.CCC.YYY
-------

The chap script is;
-------
ABORT BUSY ABORT 'NO CARRIER' '' ATZ OK ATDT1-408-NNN-XXXX CONNECT '' ogin:--ogin: ppp assword: SPUD
-------

And the options file for the 2.1 machine is the same as above:
-------
# ------/etc/ppp/options------
# Working as a PPP  client
crtscts				# Hardware flow control
netmask 255.255.255.0		# netmask ( not required )
domain spud.com			# your domain
modem				# modem line
lcp-echo-interval 30		# send echo request every 30 seconds
-------

Now, the important part, what is wrong; when I try to connect, the
following is the result in /var/log/messages on both machines:
2.0.5 machine:
-------
...
Feb  2 23:41:48 po login: DIALUP ttyd4, ppp
Feb  2 23:41:48 po login: login on ttyd4 as ppp
Feb  2 23:41:49 po pppd[8288]: pppd 2.1.2 started by ppp, uid 1033
Feb  2 23:41:49 po pppd[8288]: Connect: ppp1 <--> /dev/ttyd4
Feb  2 23:42:19 po pppd[8288]: LCP: timeout sending Config-Requests
Feb  2 23:42:19 po pppd[8288]: Connection terminated.
...
-------

2.1 machine:
-------
...
Feb  2 23:41:04 andrew pppd[432]: pppd 2.1.2 started by andrewg, uid 0
Feb  2 23:41:42 andrew pppd[433]: Connect: ppp0 <--> /dev/cuaa0
Feb  2 23:42:12 andrew pppd[433]: LCP: timeout sending Config-Requests
Feb  2 23:42:12 andrew pppd[433]: Connection terminated.
...
-------

(The time is not well synchronized between the machines!)

Am I missing something obvious?  And yes, later I will upgrade the 2.0.5
machine to 2.1.

Thanks for any help, because I can't figure this out.

Andrew