Once you are able to log in by hand, you can now move to setting up a set of scripts that will automate the establishment of the connection.
Section Chapter 18 covers setting up the necessary scripts, with considerable attention paid to chat and scripting the login process to the PPP server.
This section discusses scripts for user name/password authentication as well as scripts for PAP/CHAP authenticating servers.