Fixing PPP Configuration Problems
Some PPP problems can be traced to problems in the PPP configuration files. This section contains information for isolating and fixing general configuration problems.
How to Diagnose Problems With the PPP Configuration
Become superuser on the local machine.
Call the remote peer with debugging turned on.
% pppd debug call peer-name
Check the resulting log for the configuration problems that are listed in the next table.
Table 35-4 Common PPP Configuration Problems
Symptom
Problem
Solution
pppd debug output contains the error message "Could not determine remote IP address."
The /etc/ppp/peers/peer-name file does not have an IP address for the peer. The peer does not provide an IP address for itself during link negotiation.
Supply an IP address for the peer on the pppd command line or in /etc/ppp/peers/peer-name by using the following format:
:10.0.0.10
pppd debug output shows that CCP data compression has failed and the link is dropped.
The peers' PPP compression configurations may be in conflict.
Disable CCP compression by adding the noccp option to /etc/ppp/options on one of the peers.
Fixing Modem-Related Problems
Modems can be major problem areas for a dial-up link. The most common indicator of problems with the modem configuration is no response from the peer. But it is often difficult to determine if a link problem is indeed the result of modem configuration problems.
For basic modem troubleshooting suggestions, refer to "Troubleshooting Terminal and Modem Problems" in System Administration Guide: Advanced Administration. Modem manufacturers' documentation and web sites also contain solutions for problems with their particular equipment. This section contains more suggestions for isolating and fixing modem problems.
How to Diagnose Modem Problems
The following steps help determine whether a faulty modem configuration causes link problems.
Call the peer with debugging turned on, as explained in "How to Turn on PPP Debugging".
Display the resulting /var/log/pppdebug log.
Either of the following symptoms in the output can indicate a faulty modem configuration:
No "recvd" messages have come from the peer.
The output contains LCP messages from the peer, but the link fails with too many LCP Configure Requests messages sent by the local machine.
These messages indicate that the local machine can hear the peer, but the peer cannot hear the local machine.
The link terminates with a SIGHUP signal.
Use ping to send packets of various sizes over the link.
For complete details about ping, refer to the ping(1M) man page.
If small packets are received, but larger packets are dropped, modem problems are indicated.
Check for errors on interface sppp0:
% netstat -ni Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue lo0 8232 127.0.0.0 127.0.0.1 826808 0 826808 0 0 0 hme0 1500 172.21.0.0 172.21.3.228 13800032 0 1648464 0 0 0 sppp0 1500 10.0.0.2 10.0.0.1 210 0 128 0 0 0
If interface errors increase over time, this can indicate problems with the modem configuration.
Fixing Chat Script-Related Problems
Chat scripts are trouble-prone areas for dial-up links. This section contains a procedure for obtaining debugging information from chat and suggestions for clearing common problems.
How to Obtain Debugging Information for Chat Scripts
Become superuser on the dial-out machine.
Edit the /etc/ppp/peers/peer-name file for the peer to be called.
Add -v as an argument to the chat command that is specified in connect option.
connect "/usr/bin/chat -v -f /etc/ppp/chat-script-name"
View chat script errors in the file /etc/ppp/connect-errors.
The following is the main error that is seen with chat.
Oct 31 08:57:13 deino chat[107294]: [ID 702911 local2.info] expect (CONNECT) Oct 31 08:57:58 deino chat[107294]: [ID 702911 local2.info] alarm Oct 31 08:57:58 deino chat[107294]: [ID 702911 local2.info] Failed
The example shows timeout while waiting for a (CONNECT)string. When chat fails, you get the following message from pppd:
Connect script failed
The next table lists common chat script errors and suggestions for fixing them.
Table 35-5 Common Chat Script Problems