Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 1998 13:52:12 -0800
From:      Niall Burke <Niall.E.Burke@aib.ie>
To:        freebsd-questions@FreeBSD.ORG
Subject:   PPP help
Message-ID:  <351C1F8B.EEB1F745@aib.ie>

next in thread | raw e-mail | index | archive | help
Before I start telling you about my PPP problems, I would just like to
compliment you on your FAQ pages, very insightful, well laid out and
very fast to download.

The problem that I'm experiencing at the moment is an IPCP Timeout
error. The LCP packet negotiation seems to go fine, when the remote host
issues me a dynamic IP address, IPCP proceeds to send another Configure
Request, and then ultimately times out, the last note in the message log
before terminating the link is 'IPCP: Timeout event in state 2!'  I've
pasted the latter section of the messages log below, also my dial-up
script, /etc/ppp/options file and the results of a netstat -rn. Any
assistance you can provide would be greatly appreciated. Regards,

Niall Burke

/var/log/messages ....

Mar 27 11:47:59 niallyb pppd[143]: local IP address 194.125.148.164
Mar 27 11:47:59 niallyb pppd[143]: fsm_sdata(IPCP): Sent code 1, id 2.
Mar 27 11:47:59 niallyb pppd[143]: IPCP: sending Configure-Request, id 2

Mar 27 11:47:59 niallyb pppd[143]: fsm_rconfack(IPCP): Rcvd id 2.
Mar 27 11:47:59 niallyb pppd[143]: ipcp: up
Mar 27 11:47:59 niallyb pppd[143]: ipcp: down
Mar 27 11:47:59 niallyb pppd[143]: fsm_sdata(IPCP): Sent code 5, id 3.
Mar 27 11:47:59 niallyb pppd[143]: fsm_rtermack(IPCP).
Mar 27 11:48:02 niallyb pppd[143]: IPCP: Timeout event in state 2!
Mar 27 11:50:42 niallyb pppd[143]: Terminating link.

ppp-on script ...

#!/bin/sh
#
# ppp-on
#
# Set up a PPP link
#
LOCKDIR=/var/spool/uucp
DEVICE=/dev/cua1
PHONE=0604-7000
USER=*****
PASSWORD=*****


if [ -f $LOCKDIR/LCK..$DEVICE ]
then
echo "PPP device is locked"
exit 1
fi


(
echo "(START)" 1>&2
sleep 1
stty 57600 -tostop
sleep 1

echo -n "Initializing Modem," 1>&2
/usr/sbin/chat -v -t 4 ATH0 OK ATZ OK
echo -n "Dialing...." $PHONE 1>&2


if /usr/sbin/chat -v ABORT BUSY ABORT 'NO CARRIER' "" ATH0 OK ATZ OK
ATDT$PHONE name: $USER ord: $PASSWORD ts ppp
then
echo 1>&2
echo 1>&2
echo "You are now connected please minimize the window, haha !!!" 1>&2
/usr/sbin/pppd $DEVICE -ac -pc -vj debug defaultroute & echo 'ps
-ax|grep pppd|grep -v grep'
else
echo " ******* Something Screwed Up ! ******* " 1>&2
rm -f $LOCKDIR/LCK..$DEVICE
fi

) < $DEVICE > $DEVICE


/etc/ppp/options ....

# /etc/ppp/options (NO PAP/CHAP)

modem
crtscts
defaultroute
asyncmap 0
mtu 1500
mru 1500
lcp-restart 10
lcp-max-terminate 10
ipcp-accept-local
ipcp-accept-remote
netmask 255.255.255.0

netstat -rn results are as follows ...

Kernel routing table
Destination     Gateway         Genmask         Flags Metric Ref Use
Iface
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0
12         lo

--
_______________________________________

Niall Burke
AIB Internet Developer
Block H1, Internet Department,
Bankcentre, Ballsbridge, Dublin 4.
Phone: +353 (0)1-6600311/11051
Web Site: http://www.aib.ie
_______________________________________



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?351C1F8B.EEB1F745>