You need to log in manually to know what to write for the PPP script.


A Manual Login (using minicom) - Responses are in red:


AT &F
OK

atdt*70,4162332999

CONNECT 14400/V42BIS
Welcome to Internet Direct!

If you already have a User-ID on this
system, type it in and press RETURN.
Otherwise type "new" at the login: prompt.

login: my_username
Password: XXXXXXXXX

Please wait...

Type SLIP, CSLIP, PPP
or press [ENTER] to continue:  PPP
Your IP address is 207.136.100.16.
Server address is 207.136.82.56.
PPP Ready.
          ~y}#.!}!6}
}8}!}$}%U}"}&} } } } }%}&}$=pc}'}"}(}".Q~~y}#.!}!7} }8}!}$

The funny, unintelligible characters at the end shows that PPP is up. You can still exit minicom without hanging up and issue the route add default gw command using the remote IP you saw when you were in minicom. But just leave minicom and hang up for now (using CTRL+A, X).

Let's look at the strings.


Writing the Chat script:

So, now we have a list of 6 expect strings:

  1. OK
  2. CONNECT
  3. Otherwise type "new" at the login: prompt.
  4. login:
  5. Password:
  6. or press [ENTER] to continue:
Notice that we have made note of both occurences of the word "login:". Also, some expect strings are single words; others are longer.
Additional Notes:
This entire chat script /etc/ppp/scripts/ppp-on-dialer is all part of one, single command. It is usually put in a script file and chopped into several lines for human readability. There is a manpage for chat, if you want more information. Because this is a shell script, we must put as the first line:

And that is the end of the script!

Go Back

since Apr 1 2007