*BSD News Article 44564


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!gatech!news.sprintlink.net!mv!mv.mv.com!shaman
From: shaman@mv.mv.com (Coranth Gryphon)
Subject: Re: [Q]:  PPP on FreeBSD
Message-ID: <D920p7.H5p@mv.mv.com>
Nntp-Posting-Host: mv.mv.com
Sender: Coranth Gryphon <gryphon@healer.com>
Organization: MV Communications, Inc.
Date: Tue, 23 May 1995 23:17:30 GMT
References: <1995May23.132154.7835@il.us.swissbank.com>
Lines: 73

In article <mastroj@swissbank.com> wrote:
>I've recently brought up FreeBSD on my system and would like to get PPP  
>working as well.  Following the posts, it appears that PPP [ as  
>distributed on the CD-ROM ] is broke.  Could some kind soul point me in  
>the correct direction?  Which SNAP or patch is required to get PPP working  
>as it should?  If not PPP, how about SLIP?
>

I have both PPP and slip running fight off the 2.0R release cdrom.
Of the two, I recommend PPP as wonderfulyl easy to configre and use.

Here are the /etc/ppp/* files.
You need to know ythe ip-addr that your service provider assigned to
you (REMOTE.ISP.HOST.ADDR) and their gateway (REMOTE.ISP.GW.ADDR).

The "pkill" command is a scipt what was posted that does a "ps" and
greps for the program name supplied and sends it a kill signal.  If yo
don't want the pppd to restart atuoamtically, ignore all of "ip-down".

Enjoy.

--- /etc/ppp/options ---

crtscts
REMOTE.ISP.HOST.ADDR
domain YOUR.DOMAIN
connect "chat -f /etc/ppp/chat"

--- /etc/ppp/chat ---

'' +++ATZ0 OK ATDT5773800 gin:--gin: LOGIN word: PASSWORD

--- /etc/ppp/ip-up ---

#!/bin/sh

# Args: interface tty speed localhost remotehost

/sbin/route delete default
/sbin/route add default REMOTE.ISP.GW.ADDR

echo Link is up $1 $4 - `date` >> /var/log/ppp.log


--- /etc/ppp/ip-down ---

#!/bin/sh

# Args: interface tty speed localhost remotehost

echo Link is down "(" $1 ")" - `date` >> /var/log/ppp.log

pkill pppd
/etc/rc.ppp

--- /etc/rc.ppp ---


#!/bin/sh

echo -n 'initializing ppp interface...'
/usr/sbin/pppd /dev/cua00 115200
echo 'done'


--------------------------------------------------------+----------------------
Coranth Gryphon                                         | Reality exists on a
                                                        |   need-to-know basis.
E-Mail: gryphon@healer.com, shaman@mv.mv.com            |
Pager: (603) 599-0357       Phone: (603) 598-3440       | You do not currently
US-Mail: 11 Carver Street, Nashua, NH  03060-2518       |   need to know
Disclaimer: All these words are yours, except Europa... +----------------------