ppp/chat

ppp/chat

Post by Stef Hoesl » Fri, 27 Jun 1997 04:00:00



Trying to get an ppp dialback call from my University I start (as root)
the following shell-script:

#!/bin/sh
/usr/lib/ppp/pppd connect '/usr/lib/ppp/chat -t 60 \
        -f /etc/ppp/ethdlbk' passive defaultroute crtscts \
        noipdefault netmask 255.255.255.0 /dev/ttyS2 38400

The ethdlbk chat script looks as follows:

"" "at" "" "ats0=2" "OK" "atd<Tel. number>" "CONNECT" "" "here:"
"testplatz" "CONNECT" "" "ogin:" "testpppdyn" "assword:" "SLIMEoff"

But of course with the right parameters instead of <Tel. number>,
testplatz, testpppdyn and SLIMEoff.

Ich can hear that the modem establishes a connection with the server,
but after some minutes an 'script error' messages is printed in the
ppp logfile. I know that the servics works, because I tried to connect
with HyperTerminal in Win 95 where I got a proper dialback call.
Any suggestion would be appreciated!

Stef

 
 
 

ppp/chat

Post by David Griffi » Fri, 27 Jun 1997 04:00:00


: Trying to get an ppp dialback call from my University I start (as root)
: the following shell-script:

: #!/bin/sh
: /usr/lib/ppp/pppd connect '/usr/lib/ppp/chat -t 60 \
:         -f /etc/ppp/ethdlbk' passive defaultroute crtscts \
:         noipdefault netmask 255.255.255.0 /dev/ttyS2 38400

: The ethdlbk chat script looks as follows:

: "" "at" "" "ats0=2" "OK" "atd<Tel. number>" "CONNECT" "" "here:"
: "testplatz" "CONNECT" "" "ogin:" "testpppdyn" "assword:" "SLIMEoff"

Try replacing the "" right after the first "at" with "OK" in your chat
script.  Call the ppp dialup with minicom and carfully note EVERYTHING.

--
David Griffith  


 
 
 

ppp/chat

Post by Brian McCaule » Tue, 01 Jul 1997 04:00:00



> Trying to get an ppp dialback call from my University I start (as root)
> the following shell-script:

> #!/bin/sh
> /usr/lib/ppp/pppd connect '/usr/lib/ppp/chat -t 60 \
>         -f /etc/ppp/ethdlbk' passive defaultroute crtscts \
>         noipdefault netmask 255.255.255.0 /dev/ttyS2 38400

> The ethdlbk chat script looks as follows:

> "" "at" "" "ats0=2" "OK" "atd<Tel. number>" "CONNECT" "" "here:"
> "testplatz" "CONNECT" "" "ogin:" "testpppdyn" "assword:" "SLIMEoff"

> But of course with the right parameters instead of <Tel. number>,
> testplatz, testpppdyn and SLIMEoff.

> Ich can hear that the modem establishes a connection with the server,
> but after some minutes an 'script error' messages is printed in the
> ppp logfile.

Put the "-v" switch on the chat command so that you can see what is happening.

BTW: Why do you have both "defaultroute" and "netmask" in PPP options?
I don't understand how this combination makes sense.

--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/

 
 
 

1. PPP/CHAT: chat won't chat with modem, why?

I've been trying to get a dynamic IP connection to work via ppp, and I
think I've narrowed the problem down to the chat program.  chat
doesn't seem to be getting any responses from the modem.  I've been
trying to figure out what's going on by running chat from the command
line (can this work?), but no luck.  For example,


gives the following error messages:

Mar  9 11:43:49 rezkbox chat[1285]: timeout set to 3 seconds
Mar  9 11:43:49 rezkbox chat[1285]: send (^MAT^M^M)
Mar  9 11:43:49 rezkbox chat[1285]: expect (OK)
Mar  9 11:43:52 rezkbox chat[1285]: alarm
Mar  9 11:43:52 rezkbox chat[1285]: send (+++)
Mar  9 11:43:52 rezkbox chat[1285]: expect (OK)
Mar  9 11:43:55 rezkbox chat[1285]: alarm
Mar  9 11:43:55 rezkbox chat[1285]: Failed

I really don't know what's going on.  I'm also a bit confused about
the chat program; it's supposed to communicate with the modem, but how
does it even know which serial port the modem is on?

Any ideas?

-- Charles Rezk

2. How do I set up xdm under Solaris 2.5?

3. PPP/Chat: Working chat script Linux==>SCO?

4. two graphics cards at once

5. Netra ppp chat modem-chat

6. Rekordy MX

7. PPP chat script

8. ipsec connectivity problems :(

9. PPP/Chat won't read my file...

10. Minor PPP/chat problem

11. PPP/CHAT problems

12. ppp chat script error

13. ppp, chat: Can't get terminal parameters: Input/output error