SUMMARY:How to make ppp connection to ISP?

From: Richard Wu <sywu_at_huadi.com.cn>
Date: Thu, 19 Feb 1998 11:39:35 +0800

Many thanks to:

Steve Gwynn
Charles M. Richmond
Avraham (Avi) Y. Shapiro
Santosh Krishnan

I really love this amazing mailing list!
Here's the digest of their respective reply:

Steve Gwynn wrote:

> I have included the files necessary to attach my LINUX host via
PPP.
> The
> DECDocs and the man page indicate that it should also work on DU. If
not,
> maybe
> they'll provide a hint for you.
>
> ppp-on is the script that starts the whole thing, and is run as
"ppp-on
> teal"
> because teal is the name of the server I'm targeting, hence the name
> "options.teal".
>
> Hope this helps. The IP's and passwords have been changed so put your
own
> in there.
>
> #option.teal
> #ppp connection to teal
> lock
> modem
> crtscts
> /dev/ttyS2
> 38400
> 199.199.199.199:
> noipdefault
> netmask 255.255.255.0
> defaultroute
>
>
>
>
> #!/bin/sh
> # ppp-on Usage: ppp-on remotesystem
> # Script to initiate a ppp connection. This is the first part of the
> # pair of scripts. This is not a secure pair of scripts as the codes
> # are visible with the 'ps' command. However, it is simple.
> #
> # These are the parameters. Change as needed.
> #
> #
> # This is the location of the script which dials the phone and logs
> # in. Please use the absolute file name as the $PATH variable is not
> # used on the connect option. (To do so on a 'root' account would be
> # a security hole so don't ask.)
> #
> DIALER_SCRIPT=/etc/ppp/ppp-on-$1
> #
> # Initiate the connection
> #
> while [ `/sbin/ifconfig ppp0 | grep UP | wc -l` = 0 ]
> do
> exec /usr/sbin/pppd connect $DIALER_SCRIPT
> sleep 30
> done
>
>
>
> #!/bin/sh
> # ppp-on-teal
> # This is part 2 of the ppp-on script. It will perform the connection
> # protocol for the desired connection.
> #
> chat -v \
> TIMEOUT 3 \
> ABORT '\nBUSY\r' \
> ABORT '\nNO ANSWER\r' \
> ABORT '\nRINGING\r\n\r\nRINGING\r' \
> '' \rAT \
> 'OK-+++\c-OK' ATH0 \
> TIMEOUT 30 \
> OK ATDT5750200 \
> CONNECT '' \
> name:--name: PPPUsername \
#Connect to Annex Term Server
> assword: PPPUserPassword \
#Annex's Password Prompt
> nnex: 'ppp 199.199.199.199' #just
ppp if DHCP assigned ports.
>

Charles M. Richmond wrote:

> The man page that you want is:
>
> ppp_manual_setup (7) - Describes how to manually set up
Point-to-Point
> Protocol (PPP) connections
>
I couldn't find it and then Charles took time to send me the source file
of this man page.

Avraham (Avi) Y. Shapiro wrote:

> It's pretty easy -- I just use a chat script that dials and sends
> username/password. The script is invoked indirectly by the ppp daemon

> i.e.. /usr/sbin/pppd. The daemon takes its configuration values
> from /etc/ppp/options.
>
>
> Here's the command I use to get things going (I have an alias for it
of
> course)
>
> pppd /dev/ttyd0 19200 connect "chat -t 90 -v -f /etc/ppp/chat-script"
>
> The daemon will of course fork and run detached so no & is needed.
>
> The command says to run the ppp daemon, and then connect with chat and

> the namaed chat script file
> with w a timeout of 90 seconds at 19200 buad on device ttyd0. Your
> options willl differ but the idea
> is the same. There's good man help under man pppd. The
> /etc/ppp/options file is explained there too.
> It's pretty important because it's used to set the daemon's operating
> parameters (there's a lot of options,
> but the defaults often work fine).
>
> Also, you might want to run your DTE to DCE link faster than 19200
> especially if you
> have a fast UART. Since my ISP doesn't talk to me any faster than
> 28.800 peak 19.2k bits
> is fine for an average rate, so I rarely get overflowed.
>
> You can also arrange for pretty extensive logging to /dev/console or
> wherever you want, which is good
> for debugging. It's explained how in the man pages.
>
> The file chat-script is just a bunch of expect/reply pairs to log in
to
> the ISP. It's
> determined by your mdoem brand, and login sequence at the ISP and not
> much else.
>
> HEre's mine:
>
> "" at OK at&D0 OK atdt703xxx-xxxx,, CONNECT "\c" Login: myuserid
> sword: mypassword
>
> It's sanitized of course with respect to password and access number
but
> your's shoold look similar
> I have a USR courier. YOur AT strings may differ. There's pretty
good
> help on the chat script
> under man chat.
>
>

Santosh Krishnan wrote:

> The Linux PPP howto might be of some help. It's at
>
> ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/
>
> It's called PPP-HOWTO.
>
Received on Thu Feb 19 1998 - 04:37:01 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT