From owner-freebsd-questions Sun Dec 8 06:04:52 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA10372 for questions-outgoing; Sun, 8 Dec 1996 06:04:52 -0800 (PST) Received: from wakko.gil.net (wakko.gil.net [207.100.79.10]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id GAA10367 for ; Sun, 8 Dec 1996 06:04:49 -0800 (PST) Received: from localhost (keithl@localhost) by wakko.gil.net (8.8.3/8.8.2) with SMTP id JAA06458; Sun, 8 Dec 1996 09:05:11 -0500 Date: Sun, 8 Dec 1996 09:05:10 -0500 (EST) From: Keith Leonard To: unix@usww.com cc: questions@freebsd.org Subject: Re: ppp setup In-Reply-To: <32AA65F6.EA8@usww.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Howdy, Not sure this will help but here goes. First, Are you trying to use 'user ppp' or 'kernel ppp'? If you are trying to use 'user ppp' then I'm afraid I can't help - never could get it running (guess I'm not smart enough). If you are trying 'kernel ppp' the I may be able to help. To use 'kernel ppp' first you must recompile the kernel (don't panic - it is really simple if you follow the instruction in the handbook [and think just a little bit]). Then I use this script to get pppd up and running and make the connection with my ISP: ________________________________________________________________ #!/bin/sh ps ax | grep pppd | grep -v grep PID=`ps ax | grep pppd | grep -v grep | awk '{print $1}'` if [ "$PID" = "" ] then pppd connect 'chat -v "" ATDTXXXXXXX CONNECT ""\ Name: XXXXXXXX Password: XXXXXXXXX' \ /dev/cuaa0 38400 : fi ________________________________________________________________ Watch the spacing and the direction of the single quote (forgive me if I have named them incorrectly) You may also need to log in normally and find the login names your ISP uses (Name, Login, etc and make sure the capitalization is correct) Replace the first set of XXXXXXXXX following the ATDT with the phone number you use to connect to your ISP Replace the set of XXXXXXXX after Name: with your user name (Name is what my ISP login prompt looks like - yours may be different - check it out with your ISP) Replace the set of XXXXXXXX with your password (same applies here - this is my ISPs request for password - yours may be different) Save the file in /bin (don't flame me for this it's the easiest for a newbie like me) Next the shutdown script looks like this: ___________________________________________________________________________ #!/bin/sh pid=`ps ax | grep pppd | grep -v grep | awk '{print$1;}'` if [ X${pid} != "X" ] ; then echo 'killing pppd, PID=' ${pid} kill -INT ${pid} fi ___________________________________________________________________________ Again watch the spacing and direction of the single quotes (hint the single quote at the end of the pid line is under the ~ key. (by the way - thanks again to all who helped with the kill line - you're the greatest). Save this in /bin (ok I'll put on the asbestos BVDs) Check to make sure that 'pppd' is in your path in your startup file (mine is in /root/.profile - I use bash for a shell) My 'pppd' is in /usr/sbin. Also make sure that after you type in the scripts that you change thier mode with: chmod +x ipu and chmod +x ipd the 'x' if for execute (won't work unless they are executable). If you had to change your path don't forget to logout and then back in (sorry for this newbie approach - I'm still learning) so that the new path is visible to your shell. In theory this should get you up and running (unless I've missed something - anyone?) Hope this helps - any questions, don't hesitate to email me and maybe we can workout this fumbling attempt to help. Keith keithl@gil.net ------------------------------------------------------------------------ Character is what you are in the dark. - John Warfin ------------------------------------------------------------------------ On Sat, 7 Dec 1996 unix@usww.com wrote: > Is there a place that has information on ppp setup running through an > ISP? The examples and information in the tutorials and handbook > don't seem to work. I am missing something I just dont know what. > > Ben >