Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2001 11:12:59 -0500 (EST)
From:      "Christopher W. Aiken" <cwaiken@telerama.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   [cwa] kernel ppp question
Message-ID:  <Pine.BSF.4.33.0102181056390.529-100000@bigdaddy.localdomain>

next in thread | raw e-mail | index | archive | help

I seem to missing something basic with kernel ppp.

I set up my /etc/ppp/options file:
# options file for PPPD
defaultroute
crtscts
modem
deflate 12,12
user cwaiken
lock

I set up my /etc/ppp/chat script:
# Abort the chat script is modem replies
# BUSY or NO CARRIER
ABORT BUSY
ABORT 'NO CARRIER'
# Wait up to 5 seconds for a reply to each of these
TIMEOUT 5
'' ATZ
OK ATM0
OK ATDTxxxxxxxxxx
# Wait 40 seconds for connection
TIMEOUT 40
CONNECT
TIMEOUT 5

I set up /etc/ppp/pap-secrets.

I then run:
pppd /dev/cuaa1 115200 connect chat -f /etc/ppp/chat user cwaiken

I do indeed get connected.  When I'm finished I do a:
kill -9 `cat /var/run/ppp0.pid`
to finish my connection.

The problem is the second, and subsequent times, that I run:
pppd /dev/cuaa1 115200 connect chat -f /etc/ppp/chat user cwaiken

I get this error:
pppd[520]: Couldn't add default route: File exists

I also get that same error if I try using user ppp.
and I can't do anything.  I can't ping any sites, fetchmail doesn't
run, etc.  The only way I could figure out how to get this going again
was to re-boot my system.

What am I doing wrong?  What am I missing?

--
Christopher W. Aiken, Scenery Hill, Pa, USA
chris at cwaiken dot com,   www.cwaiken.com
Debian GNU/Linux 2.2_r2 & FreeBSD 4.2 RELEASE





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?Pine.BSF.4.33.0102181056390.529-100000>