|
Linux on PowerPC FAQ-O-Matic : System Configuration : PPP :
Are there any example config files for PPP? |
Tom Vier <thomassr@erols.com>
here's how my ppp files are setup. if you need a ppp-go and ppp-off i can post that, too.
replace the stuff in brackets <>'s with what it needs
/etc/ppp/pap-secrets:
# Secrets for authentication using PAP
# client server secret IP addresses
<useid> * <password>
/etc/ppp/ppprc.cua0:
ABORT BUSY ABORT 'NO CARRIER' '' '\n\n' '' AT OK AT<modem init string>
OK ATDT<number> CONNECT thomassr@erols.com |
/etc/ppp/options:
lock
asyncmap 0
bsdcomp 15,15
lcp-echo-interval 30
/etc/ppp/options.cua0
crtscts
bsdcomp 15,15
defaultroute
name <userid>
connect '/usr/sbin/chat -f /etc/ppp/ppprc-pap.cua0' thomassr@erols.com |
Here are my config files:
$ cd /etc/ppp
$ cat options
lock
asyncmap 0
/dev/modem
38400
defaultroute
connect /etc/ppp/dial.modem
disconnect /etc/ppp/disconnect.modem
$ cat dial.modem
#!/bin/sh
#
# This script is used to dial a modem using a specific
# number.
#
/usr/sbin/chat -f /etc/ppp/chat.secrets
$ cat disconnect.modem
#!/bin/sh
#
#
# This script is used to disconnect the modem.
#
# It assumes the modem will respond back to a
# command state by the "+++" sequence.
#
/usr/sbin/chat "" "\p+\p+\p+\c" '' "\d\dATH0"
$ cat chat.secrets
"" "\n" "" "AT" "OK" "ATM0DT555-1212" "CONNECT" "" "name:" "jonh" "word:"
"password" "granted" "ppp"
jonh@cs.dartmouth.edu jonh@cs.dartmouth.edu |
Here are some more config files:
$cd /etc/ppp
$more options (This is the options file)
nodetach
asyncmap 0
defaultroute
/dev/modem
19200
connect /etc/ppp/dial.modem
(The nodetach in the file above means that pppd will hold on to the window
it was launched in. Use control-C to close the ppp connection. Also remember
to make a link: ln -s /dev/cua0 /dev/modem. You can change the 19200 number to
reflect the speed you want to connect at.)
$more dial.modem (This is the dial.modem file)
#!/bin/sh
/usr/sbin/chat -v -f /etc/ppp/number
$more number (This is the modem init and number file)
"" "\n" "" "ATZ" "OK" "ATDT111-1111" "CONNECT" "" "" "" "ogin:"
"your_login" "word:" "your_password"
(Change 111-1111 to your ISP's number and put in your login and password)
You can connect by typing pppd. kj@mars.iol.unh.edu |
[Append to This Answer] |