This is a brief version of the file ./ppp-linux.html--How to Hook up PPP in Linux .
This file includes no explanations and is terse. If anythig confuses
you read the original longer file. It is the longer file which is more
Note that all of the steps are necessary. There are quite few of them, but skipping steps will probably lead you to grief.
killall -1 syslogd
chmod a+r /etc/host.conf /etc/resolv.conf
If default route (0.0.0.0 as first item), then run
route del default
and Remove reason for this default route being there.
or put that command into /etc/rc.local or /etc/rc.d/rc.local
ps aux|grep kerneld|grep -v grep
If no output (kerneld not running) run
and make sure that kerneld is started up at boot time.
If long line of garbage which repeats itself about 10 times
Go to next paragraph!
if permission denied
You are not running as root!
if error- ppp may not be in kernel
Probably kerneld is not running-- fix
Edit /etc/ppp/options and insert the lines
Run (all one line)
/usr/sbin/pppd /dev/ttyS1 57600 connect " /usr/sbin/chat -v '' AT OK ATD5555555 CONNECT '\d\c'"
5555555=your ISP's phone number.
/dev/ttyS1=your modem serial port (ttyS0=COM1,...ttyS3=COM4)
Also note difference between a single double quote ", and two successive apostrophes ''.
Look at /var/log/ppp (in tail -f window or by
If pppd starts to run and gives Problem: all had bit 7 set to 0
Go to Login Authorisation?
If one of lines had <auth pap> or <auth chap #>
Go to PAP/CHAP
If Login:, Password: accepted
If pppd started negotiation
if Connection made and addresses returned
Success--Go to Test
if <auth pap> or <auth chap #> occur
Go To PAP/CHAP
Trouble. Ask in Linux or PPP newsgroups
Go to Start PPP
Else Login: or password not accepted
If Login: and Password: occur and your name and password are sent
Check your login name or password with your ISP
Else If Login: or Password: not asked for
Check what is asked for and insert into above command instead of ogin and assword
/usr/sbin/pppd /dev/ttyS1 57600 connect "/usr/sbin/chat -v '' ATD5555555 CONNECT '' ogin <yourusername> assword <yourpassword> ppp y"
If Successful LCP exchange
Go up to previous lines.
If other text ( eg run pppd or PPP? type y) received from remote machine
Alter ppp y to reflect what is actually wanted and try again.
Else Ask in newsgroups or your ISP.
If <auth chap #> where # is a number
If #= 05 or md5--you're OK
Else if #=80 or 81
Microsoft Chap. If 80 and pppd rejected it (ConfRej), recompile pppd with MSCHAP
if 81, complain to ISP about non-standard chap
<username> * <password> *
Try again whichever chat script got you here.
Go to Test
if peer authorisation failure
Check username and password with ISP
else other error
Ask in Newsgroup
If succession of responses-- Success connection working
Else May still be OK, but worry.
if succession of responses -- Success Connection working
Else if Network not found-- problems-- check number with ISP
If succession of responses -- Sucess Name resolver working
Else Name Resolver problems-- check with ISP
Or, www.theory.physics.ubc.ca has problems-- try other internet names.
chmod a+rx /usr/sbin/pppd
chmod +s /usr/sbin/pppd
if [ "$1" = "" ]; then
echo Useage: pppon username
pppd /dev/ttyS# 57600 user $1 connect "chat -f $HOME/chatscript"
chmod a+rx /usr/sbin/pppon
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "NO ANSWER"
# and whatever other modem initialisation is needed (some need AT&F0 instead.
#At this point (after CONNECT) the various chat scipts diverge.
#You must enter the expect send pairs which were successful for you
#This example is an example of login authorisation.
To stop the connection