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
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 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 |
|
| File 2: /etc/ppp/options | NOTES |
defaultroute crtscts lock modem /dev/ttyS1 38400 name YOUR_LOGIN_NAME |
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 4: /etc/ppp/pap-secrets | NOTES |
#login_name server secret adrs YOUR_LOGIN_NAME * YOUR_LOGIN_PASSWORD |
|
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