Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Oct 1997 13:33:02 +0800
From:      Doug Lo <jwlo@ms11.hinet.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   FYI. My rules of thumb for configuring PPP by using PAP.
Message-ID:  <3431E08D.95EC08E1@ms11.hinet.net>

next in thread | raw e-mail | index | archive | help
Hi, ALL,

I have spent the time to study how to configurate PPP by using PAP
without no problem.
The following files ppp.conf, ppp.linkup should work fine for who want
to use PAP.
I'm using FreeBSD 2.2.2-Release and my ISP uses 'dynamic IP address".

=========== /etc/ppp/ppp.conf =============================
default:
    set device /dev/cuaa1
    set speed 115200
    set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\"
    ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"

provider:
    set openmode active        ==> must add this line
    set phone xxxxxxx
    deny chap
    disable chap
    accept pap
    set authname jwlo
    set authkey    2ruiodgi
    dial
=====================================================
Caution:    DON'T ADD  THIS LINE "set login" in ppp.conf.
                  If your ISP uses "static IP address", add "ifaddr
xxxx xxxx xxxx" before 'dial'.

======== /etc/ppp/ppp.linkup ======================
provider:
    delete ALL
    add 0 0 HISADDR
=============================================

When you finish editing these files, type ppp provide, the result is:
%ppp provider
User Process PPP. Written by Toshiharu OHNO.
Log Level is 281
Using interface: tun0
Interactive mode
Dial attempt 1 of 1
Phone: xxxxxxx
dial OK!
login OK!
ppp ON Ariel> Packet mode.
ppp on   Ariel>
ppp on   Ariel>


Hope this helps for you,
Doug.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3431E08D.95EC08E1>