Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 1996 09:05:10 -0500 (EST)
From:      Keith Leonard <keithl@wakko.gil.net>
To:        unix@usww.com
Cc:        questions@freebsd.org
Subject:   Re: ppp setup
Message-ID:  <Pine.LNX.3.95.961208084138.6251A-100000@wakko.gil.net>
In-Reply-To: <32AA65F6.EA8@usww.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.95.961208084138.6251A-100000>