For use at Stanford, the following configuration works for me.
In addition, the port that your modem is connected to should not be running a getty process. (this is set in /etc/ttys)
I am planning on fleshing this page out a bit more, but this should get you started.
# Default setup. Always executed when PPP is invoked. # default: # this is the port and password used by ppp for remote control when used in # non-interactive mode. set server 3000 [password] # this line specifies users that are allowed to run ppp. this can also be # specified on a per-entry basis. allow user [user allowed to run ppp] # script name. ppp is called as: ppp [script name] (ie: ppp sunet-ricochet) sunet-ricochet: # log level for logfile (/var/log/ppp.log) set log phase connect lqm lcp ipcp ccp tun # log level for interactive use set log local phase connect ipcp # device used for ppp set device /dev/cuaa0 # device speed set speed 115200 # enable link quality requests enable lqr # accept link quality requests accept lqr # set dial string set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT" # set phone number set phone 3251010 # set login string set login "TIMEOUT 15 \"Verification\" [your sunet id] word: [your sunet password > PPP # set idle timeout. 0 = infinite set timeout 0 # set time between redials, and number of attempts. 15 seconds, 2500 attempts set redial 15 2500 # set time before reconnect attempt, and number of attempts. set reconnect 5 2500 # don't use parity set parity none # set local and remote addresses and netmask. this setting will allow the # remote end to set any addresses for the link. (fully dynamic addressing) set ifaddr 0.0.0.0/0 0.0.0.0/0 255.255.0.0
# If we are invoked with an argument ``sunet'', then delete all # existing route entries and add the peer as the default gateway. # sunet: delete default add 0 0 HISADDR # Otherwise, simply add peer as default gateway. # MYADDR: add 0 0 HISADDR # If we are invoked with an argument ``pmdemand'', then # delete all existing (wrong) routing entries and add the peer IP # as our default gateway. # This is vital if you don't already know either sides IP number. # # We also want to execute a script on startup. This script can do # nice things such as kick off "sendmail -q", "popclient my.isp" and # "slurp -d news". # #sunet: # delete ALL # add 0 0 HISADDR # ! sh -c "/etc/ppp/ppp.etherup.sunet &"
You also need to have the stanford DNS servers in /etc/resolv.conf.
they are:
If you are leery of putting your password in the config file, you can always
run in interactive mode, and manually establish the connection using the term
function in ppp.
This means that you will not be able to automaticly establish a connection.