Penguin
Note: You are viewing an old revision of this page. View the current version.

Shamelessly ripped from NZLUG:

Brief info on common dial-up errors and how to solve them.

Error message: "LCP config-request sending timeouts" or similar, also "...not 8-bit clean"

Solution/Info

"After the chat script finishes, the local box starts up the pppd daemon. The pppd daemon immediately fires off 30 handshaking requests (LCP config requests) to the remote end. Then pppd waits for a reply from the remote end...

Quite a few remote ISP servers (well most actually) have a time lag between user authentication, and starting up their ppp daemon. So, the local machine fires off 30 requests, but no ppp is yet listening on the remote machine - the packets get 'dropped'. When ppp starts on theremote server, it waits for incoming LCP config requests, while the local machine is still waiting for a reply from its 'dropped' packets.Stalemate! In the end one (or both) machines timeout (Timeout LCP config request).

There are two solutions:

  • Make the local machine send out lots more LCP config requests in the hope of being more likely to catch the remote ppp when it comes up.
  • (Preferred) Make chat wait until ppp comes up on the remote machine, then start pppd on the local machine.
To make chat wait, add something like this to the chat script (after login is complete)
Wait for: End chat script

(pppd starts)

The (tilde) is usually the first character of the incoming garbage that occurs when ppp starts on the remote machine. By waiting for it to be received, we know ppp has started on the remote machine.

-- Andrew Simpson

Reconnecting ppp when persist and maxfail, erm, fail

Add a line like this to /etc/crontab
  • * * * * root if [ "`/bin/pidof pppd`" == ""?; then /usr/bin/pon paradise; fi

This will check every minute to see if pppd is still running. If it's not, it will restart it (replace /usr/bin/pon paradise with whatever you need to do to restablish your connection)

(Thanks to JamesSpooner for the most elegant solution)