pppd and chat......

pppd and chat......

Post by Brad Jone » Fri, 13 Feb 1998 04:00:00



Here goes....
I am running Red Hat Linux Kernel 2.0.27

I am using pppd and a chat script to connect to my isp, it is calling
and connecting but is doing something unexplainable when it comes time
to login. These are the commands and script I am using

pppd /dev/modem 38400 connect 'chat -vf chat-ppp0(command line)

'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login Incorrect'
"" 'ATZ'
'OK' 'ATDT##########'
'CONNECT'
'ogin:' 'name'
'word:' 'password'

This is what reads out as I run it
send(ATZ^M)
expect (OK)
OK -- got it
Send(ATDT##########)
expect (connect)
^M
ATDT##########^M
connect -- got it
(^M)
expect (ogin:)
38400^M
Connect Script Failed
alarm
failed
PPP:pppline descipline successfully unregistered

The modem then stays connected untill I unplug the phone cord, then
about 1 or 2 minutes later it disconnects..........

So what is going on? Please HELP, it is very important that I get this
up as soon as possible.........thanx

Brad

 
 
 

pppd and chat......

Post by tafer.. » Thu, 19 Feb 1998 04:00:00



> I am using pppd and a chat script to connect to my isp, it is calling
> and connecting but is doing something unexplainable when it comes time
> to login. These are the commands and script I am using
> This is what reads out as I run it
> send(ATZ^M)
> expect (OK)
> OK -- got it
> Send(ATDT##########)
> expect (connect)
> ^M
> ATDT##########^M
> connect -- got it
> (^M)
> expect (ogin:)
> 38400^M
> Connect Script Failed
> alarm

Seems that your ISP does not send "ogin:", but sends anything else,
maybe "User:" or "Account:".

User kermit or seyon or any other modem program and connect manually
to your ISP and see what string is sent after the "38400".

I use ":" instead of "ogin:" in my script -- this is pretty much
bullet proofed and works fine ;-)

Email me if you have problems with the chat/chap to get running.
The crazy thing with my provider is that the "Login:" prompt is
sent, but you are not allowed to log in!  Instead, my computer
is expected to start chap at this point X-(

Well... Windows blues (my ISP consists of Win$ admins)... and the
guys at my ISP were not competent enough to tell me even the above
thing... :->

Good luck and kind regards,
Stefan

 
 
 

1. pppd & chat - chat not talking to serial port

How do you tell chat which serial port to use ?

Main problem, using pppd as described in NAG and the Network HOWTO,
the command immediatly returns to the command line with no apparent
serial io.

Breaking down the command to just chat, yields data output to the
screen.  Does PPPD redirect stdin/stdout to the chat command or is
there a method for specifying serial device to chat ?  The man pages
don't indicate either.

Note:
        echo atdt > /dev/cua3
works.

My pppd command line :
pppd connect 'chat -v "" ATDT*70,5555555 CONNECT "" ogin: mylogin
word: mypass /dev/cua3 38400 debug crtscts modem

I've tried w/ and w/o default route (this shouldn't matter at this
stage).

Jim

2. sendmail won't send mail

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

4. Getting owner of port

5. Matrox Mystique ands X.

6. How do you shrink the /tmp filesystem on an AIX 4.3

7. pppd & chat problems

8. how to bind to port < 1024 (OT)

9. Help, pppd/chat problem

10. Help: pppd, chat

11. Problem getting chat to display output under pppd

12. pppd and chat ... Argh!!!

13. Problem to Connect my ISP with pppd and chat