From owner-freebsd-questions Sun Nov 5 13:27:12 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA15041 for questions-outgoing; Sun, 5 Nov 1995 13:27:12 -0800 Received: from kryten.atinc.com (kryten.Atinc.COM [198.138.38.7]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id NAA15035 for ; Sun, 5 Nov 1995 13:27:07 -0800 Received: (jmb@localhost) by kryten.atinc.com (8.6.9/8.3) id QAA06812; Sun, 5 Nov 1995 16:11:52 -0500 Date: Sun, 5 Nov 1995 16:11:46 -0500 (EST) From: "Jonathan M. Bresler" Subject: Re: dial-on-demand PPP To: "Marc G. Fournier" cc: questions@freebsd.org In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Sun, 5 Nov 1995, Marc G. Fournier wrote: > Just started playing with the PPP implementation that is in > 2.0.5R, and got it most of the way towards being able to use 'ppp -auto' > to do dial-on-demand, but seem to have hit a snag. funny, just today i set up ppp here ;) and it works! > Now, I've sent up the appropriate entry, as per the man > page, and the example files, in /etc/ppp.conf: > > #/etc/ppp/ppp.conf > # > default: > set device /dev/ttyd1 > set speed 38400 > disable lqr > deny lqr > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT" > # > iij-demand: > set debug lcp > set phone 3634621 > set login "TIMEOUT 5 login:-\\r-login: word: " > set ifaddr 199.166.238.138 198.133.36.11/24 > add 0 0 HISADDR that looks like the suggested ppp.conf verbatim. i found that it would disconnect me after a few minutes. ;(( i added the two lines "disable lqr" and "deny lqr" to my "site definition". its now been working without problems for several hours. try this: aspen> ppp -auto atinc atinc: set debug phase chat lcp set device /dev/cua01 set speed 57600 disable lqr deny lqr set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \ \dATDT\\T TIMEOUT 40 CONNECT" set phone 7035551212 set login "TIMEOUT ..... set timeout 0 set ifaddr my.ip.address their.ip.address add 0 their.netmask their.ip.address you can remove 'chat' from the debug after you get it login'ing correctly. 'set timeout 0' will prevent ppp from hanging up. Jonathan M. Bresler jmb@kryten.atinc.com | Analysis & Technology, Inc. FreeBSD Postmaster jmb@FreeBSD.Org | 2341 Jeff Davis Hwy play go. | Arlington, VA 22202 ride bike. hack FreeBSD.--ah the good life | 703-418-2800 x346