From owner-freebsd-questions Thu Jan 30 16:16:48 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA14852 for questions-outgoing; Thu, 30 Jan 1997 16:16:48 -0800 (PST) Received: from seabass.progroup.com (catfish.progroup.com [206.24.122.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA14839 for ; Thu, 30 Jan 1997 16:16:42 -0800 (PST) Received: from seabass.progroup.com (seabass.progroup.com [206.24.122.1]) by seabass.progroup.com (8.7.5/8.6.12) with SMTP id QAA21519; Thu, 30 Jan 1997 16:13:24 -0800 (PST) Message-ID: <32F13924.59E2B600@progroup.com> Date: Thu, 30 Jan 1997 16:13:24 -0800 From: Craig Shaver Organization: Productivity Group, Inc. X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 2.1.0-RELEASE i386) MIME-Version: 1.0 To: Robert Chalmers CC: bsd Subject: Re: dial OUT ppp. simple setup needed References: <199701302246.IAA03887@nanguo.chalmers.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Robert Chalmers wrote: > > Hi, > As usual, the manpages, and the user manual give 5,000 options for doing > anything, but all I want is a simple (basic) setup to dial out, > establish a pp link, and have it autoredial in the event that the line > drops. > > config should be simple. COM2, 28.8K modem, no incoming calls. > > can anyone please help with a simple setup file. if there is such a thing. > I have to find a way around this bad Annex problem. > > thanks, > Bob Bob -- are you using kernel ppp? Is this for a dedicated line? Here is what I do for my ppp dedicated line, and it works: In rc.local: ------------------ echo "Starting ppp daemon" /etc/ppp/ppp0.start & --------------------- /etc/ppp/ppp0.start is: ======================= #!/bin/sh # # PPPD Auto-Dialer script # # Note: # You *MUST* use -detach mode or else the pppd process will fork # into the background and you will get hundreds of pppd processes #trying # to connect to the remote site. The current behavior causes the line #to # re-dial when pppd fails, so it acts like a auto-dialer. # DEVICE=cuaa1 while `true`; do /usr/sbin/pppd -detach \ connect 'chat -v -f /etc/ppp/isp.chat' $DEVICE 115200 # If we fail, wait a little while for the line to settle down sleep 5 done ======================= /etc/ppp/isp.chat is: ----------------------- ABORT "NO CARRIER" ABORT BUSY "" A\pA\pA\pT OK ATZ0 OK ATM1&C1&D2S95=3&W0 OK ATDT19995551234 CONNECT "" ogin: mumble1 ssword: mumble2 ------------------------- note! this should be all on one line! Your Modem May Vary! This is for a Cardinal 28.8 V.34. ATDT19995551234 is your isp phone number. And the last part is the login and password. --------------------------- Finally /etc/ppp/options is: --------------------------------------- debug modem crtscts name catfish.progroup.com remotename gw-3.isp.net defaultroute ---------------------------------------- I hope this helps you get going. -- Craig Shaver (craig@progroup.com) (415)390-0654 Productivity Group POB 60458 Sunnyvale, CA 94088