*BSD News Article 49086


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!daffy!uwvax!uwm.edu!lll-winken.llnl.gov!ames!newsfeed.gsfc.nasa.gov!centauri.hq.nasa.gov!centauri.hq.nasa.gov!cshenton
From: cshenton@wirehead.hq.nasa.gov (Chris Shenton)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: PPP Sample Script please
Date: 18 Aug 1995 14:34:31 GMT
Organization: NASA Headquarters
Lines: 26
Message-ID: <CSHENTON.95Aug18103431@wirehead.hq.nasa.gov>
References: <40vv6i$f9q@cmcl2.NYU.EDU>
NNTP-Posting-Host: wirehead.hq.nasa.gov
In-reply-to: steinber@slinky.NYU.EDU's message of 17 Aug 1995 17:44:50 GMT

Here's what I use; I call it ppp-<machinename>:

#!/bin/sh
# 1995.08.04 Chris Shenton
# - Changed IP address to name.
# - Increased speed from 57600 to 115200.
# - Added leading `A' to `AT' to sync speed with modem.
# - Added detach, so we background; override /etc/ppp/options.
###############################################################################
/usr/sbin/pppd \
    debug \
    sisyphus:absinthe \
    /dev/cuaa0 \
    115200 \
    detach \
    connect 'chat -v "" AAT OK ATDT9,555-1212 ogin: pppuname word: PPPasswd'

Here's our /etc/ppp/options; note we're subnetting -- you may not be:

netmask 255.255.255.240         # subnet mask for our system
crtscts                         # enable hardware flow control
modem                           # use modem line control
proxyarp                        # insert an ARP entry for the host
lcp-echo-interval       30      # send an echo packet every 30 seconds
lcp-echo-failure        10      # die after n failed lcp echo requests
debug