From owner-freebsd-current Tue Dec 19 18:57:46 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA24529 for current-outgoing; Tue, 19 Dec 1995 18:57:46 -0800 (PST) Received: from oasis.txdirect.net (oasis.txdirect.net [204.57.120.34]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA24523 Tue, 19 Dec 1995 18:57:40 -0800 (PST) Received: (from rsnow@localhost) by oasis.txdirect.net (8.6.12/8.6.9) id UAA00376; Tue, 19 Dec 1995 20:56:46 -0600 Date: Tue, 19 Dec 1995 20:56:46 -0600 (CST) From: Rob Snow To: "Jonathan M. Bresler" cc: "Jordan K. Hubbard" , "Frank E. Terhaar-Yonkers" , p.richards@elsevier.co.uk, FreeBSD-current@FreeBSD.org Subject: Re: ppp In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@FreeBSD.org Precedence: bulk On Tue, 19 Dec 1995, Jonathan M. Bresler wrote: > On Tue, 19 Dec 1995, Jordan K. Hubbard wrote: > > > Maybe what has to happen first is you need to figure out a way of > > causing ppp to kill your system *without* running X, e.g. so that > > we can get into ddb and see what's panicing! > > > > it aint ppp. it may well be the configuration that the user has > spec'ed to ppp, but it aint ppp. > > excuse me for being so bloody insistent. it took a while to get > ppp set up correctly. being the kook that i am, i keep hammering on it > till i got the setup right (for me at least). now everyone at my > previous employer uses my config files for ppp, works like a charm. > > BUT you gotta beware of "delete ALL" and setup up your routes > first, during boot, as in: > > ifconfig tun0 inet 198.138.38.205 198.138.38.21 netmask 255.255.255.0 > route add default 198.138.38.205 > > then in /etc/rc.local get ppp going and active > /usr/sbin/ppp -auto atinc > /sbin/ping -c 10 198.138.38.21 > > ONLY THEN do you start X. i use xdm ;) > > Jonathan M. Bresler FreeBSD Postmaster jmb@FreeBSD.ORG > play go. ride bike. hack FreeBSD.--ah the good life > i am moving to a new job. PLEASE USE: jmb@FreeBSD.ORG > Hmm, I don't touch tun0 during boot as I found this caused me problems. Here's what my ppp.linkup looks like: ################ BEGIN /etc/ppp/ppp.linkup ################ MYADDR: delete ALL add 0 0 HISADDR ################ END /etc/ppp/ppp.linkup ################## and relevant excerpts from my ppp.conf: ################ BEGIN /etc/ppp/ppp.conf ################## default: set device /dev/cuaa1 set speed 57600 # set mru 1460 disable lqr deny lqr # disable pred1 # deny pred1 # disable vjcomp # deny vjcomp set debug phase set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATZE1Q0 OK-AT-OK \\dATM0DT\\T TIMEOUT 40 CONNECT" ondemand: set phone >PHONE_NUMBER< set login "TIMEOUT 5 login:-\\r-login: >LOGIN< word: >PASSWORD<" set timeout 600 set ifaddr 204.57.120.34/24 204.57.120.3/24 add 0 255.255.255.0 204.57.120.3 ################# END /etc/ppp/ppp.conf ################ This has been working for MONTHS 10-15 minutes an hour 24/7. X is always running and I often kill ppp and restart it from within X. It worked for 23 days once, unattended, while I was out of state. BTW, under both 205 & 210 with hylafax running and Seyon running a script once an evening. __________________________________________________________________ Rob Snow Powered by FreeBSD rsnow@txdirect.net http://www.freebsd.org