SUMMARY ppp Script

From: J. Felippe Beaklini <felippe_at_tritium.fis.unb.br>
Date: Fri, 7 Jun 1996 08:08:10 -0500

Sorry for the delay in summarize. I decide to upgrade my operating
system and my machine was down for a few days.

My original questions was:
>
>We are trying to setup a ppp port in our 3000/600 running DU 3.0b.
>I followed instructions on ppp-2.2 and generated a new kernel which
>is now installed.
>
>We then need the finals. How do I prepare the 3000 to be waiting
>for a ppp connections? When and where the pppd should be run?
>
>Do I have to write a script for the purpose of starting ppp every
>time a connection is stablished?
>
Thanks for the prompt answers, in particular to:
Ernie Bisson <bisson_at_bates.mit.edu>
Sean Watson <swatson_at_tuolumne.lib.csubak.edu>

I just recently setup PPP 2.2 Patchlevel 2 on a DU V3.0 Alpha 3000 Model 500,
which will be connected to from a Windows 95 system.

I use the following script, called pppStart, to start PPP at boot time.

================================================================================
#! /bin/csh

sleep 2
/usr/local/etc/pppd /dev/tty00 disconnect /usr/local/etc/pppRestart \
                               silent netmask 255.255.0.0 proxyarp :18.77.2.216
================================================================================

The "sleep 2" at the beginning of the script is needed to give the previous
PPP connection time to finish terminating before restarting the PPP daemon.

The "silent" parameter tells pppd, don't initiate any LCP handshaking until
a valid LCP packet is received from the peer. The ppp0 interface on the Alpha
is assigned the same address as used by it's ethernet interface. The PC is
assigned the address 18.77.2.216. Naturally, your netmask may be different
than mine.

When the PPP connection terminates, the script pppRestart is executed.
It looks like this.

================================================================================
#! /bin/csh

/usr/local/etc/pppStart &
================================================================================

Does your Alpha have 9 pin or 25 pin serial ports?
Right now my connection is on a 25 pin serial port with full modem control.
In the case of using 9 pin, I think you need to add the "local" option when
starting the PPP daemon. I never tried my current configuration connected to
a 9 pin port, but when I initially tried getting PPP to work on one, it did
need that option.

Good Luck.
---------------------------------------------------------------------------
        From Windows 95, there should be a manual login checkbox (I only
have logged in with ppp once from Win95, so I can't guarentee much of
what I say here). Log in normally (ATDT phone-number username password)
and at the prompt say one of the following:

If the IP address has been set by the client and you're willing to trust
that IP address:
  "pppd proxyarp"

If you want the server to assign an IP address to the client but not insist
on it (say 1.2.3.4):
  "pppd proxyarp :1.2.3.4 ipcp-accept-remote"

If you want to insist on an IP address (1.2.3.4):
  "pppd proxyarp :1.2.3.4"

Later you will want to make /etc/ppp/chap-secrets and/or
/etc/ppp/pap-secrets files to limit the IP addresses a user can choose.
Look at the man page for pppd for lots of details.

You'll want to see if you can telnet/ftp/whatever to your ppp server first
and then try to deal with things on your lan (and finally deal with the
rest of the world).

You should set your PC's router (gateway) to the IP address of the
alpha. You can set the other numbers (DNS/name server, SMTP host, POP
host, ...) just as you would if your PC had an ethernet card.

The proxyarp option may not be needed if everything on your LAN runs
routed or gated (or you don't have a LAN).


                        Good Luck,

After installing the ppp-2.2 following the directions for osf1,
I generated the new kernel I have made the changes to the rc.config
to read router="yes"

I copied the options file include in the Examples to /etc/ppp and
wrote a WIN 95 script to logon which had the following line:

/usr/local/pppd /dev/tty00 proxyarp

The WIN 95 machine has its own address previously defined from of
my IPs specially reserved for this purpose.

That was all I need to run ppp.

Thanks again for taken care to answer this question.

Felippe
Received on Fri Jun 07 1996 - 13:54:08 NZST

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