LINUX PPP
ISP Dial-Up using PAP
(work in progress)

OVERVIEW
There are 3 seperate issues that need to be  understood
in setting up a PPP connection.

1. Hardware: Modem installation and setup.
        - Modem compatibility
        - Modem setup

2. PPP dialing, user authentication and ppp activation.
        - Setting up 4 files.

3. Networking setup.
        - Configuring your network.
        - hostname, hosts, resolv.conf
        - ifconfig, route, ping



Procedures

1. Modem installation and setup.
    (to be added)

2. PPP dialing, user authentication and PPP activation.
     This requires 4 files:
        /etc/ppp/dialer                    executable modem dialer script
        /etc/ppp/options                modem options (can be imbedded in dialer script)
        /etc/ppp/chatscript            modem dialer sequence
        /etc/ppp/pap-secrets         PAP authentication

/etc/ppp/
File 1: /etc/ppp/dialer  NOTES 
#!/bin/sh
exec pppd -d connect \
'/usr/sbin/chat -v -f /usr/sbin/chatscript' 

Alternate format
1.  Create an empty "/etc/ppp/options" file.
2.  The 'dialer' file then contains:
#!/bin/sh
exec /usr/sbin/pppd -d connect              \
  '/usr/sbin/chat -v -f /etc/ppp/chatscript'\
  modem lock crtscts defaultroute           \
  /dev/ttyS1 57600                          \
  user YOUR_LOGIN_NAME
  • This file is execeuted to call the ISP. Can be renamed.
  • Change file attribute to:      chmod +x dialer
  • The options information may be included inside the 'dialer' file. If used, watch your spaces and tabs. When the options are used inside the 'dialer' file, the options file must exist and be blank.
  • Note: the'chat' script is surrounded by single quotes.
File 2: /etc/ppp/options  NOTES 
defaultroute 
crtscts 
lock 
modem 
/dev/ttyS1 38400 
name YOUR_LOGIN_NAME
  • YOUR_LOGIN_NAME is your ISP dialer login (the same as used in WIN95 dialup). Your login_name may be different from your user_name
         Example:
          user:                 fred 
          login might be:   DN/fred 
           (check with your ISP)
File 3: /etc/ppp/chatscript  NOTES 
TIMEOUT 45
"" ATZ                          
OK ATE1M1V1X4L3S0=0             
OK ATDT#######                  
ABORT "NO CARRIER"
ABORT "BUSY"
ABORT "NO DIALTONE"
ABORT "WAITING"
TIMEOUT 90
CONNECT ""                 
  • File is sensitive to misplaced characters, spaces and tabs. 
  • Do not use any comments in this file.
  • The line with the "ATE.." modem string is optional. It can be removed or can use AT&F instead.
  • ####### is your ISP dialup number.
File 4:  /etc/ppp/pap-secrets  NOTES 
#login_name  server   secret   adrs

YOUR_LOGIN_NAME * YOUR_LOGIN_PASSWORD







  • chmod 600 pap-secrets
  • Login name must match the login name exactly as in the options file above.
  • The password is the same that is used in your WIN95 dialup.

 

3. Networking setup.
    (work in progress)
    ifconfig                        Assigns IP to node
     ping
     route                            Add network route to table
     /etc/hosts
     /etc/resolv.conf            DNS entry
     netconfig
     netstat
 


Klaus

Hosted by www.Geocities.ws

1