The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 PPP Dial problem
Author: Fallen 
Date:   19-11-02 11:51

Hi,

I am using an external modem, and I'm not able to connect to internet using PPP. My modem dials, but fails to establish the connection.

Here is my /etc/ppp/ppp.conf:
default:
set log Phase Chat LCP IPCP CCP tun command
set device /dev/cuaa0
set speed 57600
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
UOL:
set phone "31130056"
set login
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
enable dns
set authname fallenbr
set authkey MyPASS


And here is the generated log at /var/log/ppp.log:

Nov 16 17:30:13 ppp[131]: Phase: Using interface: tun0
Nov 16 17:30:13 ppp[131]: Phase: deflink: Created in closed state
Nov 16 17:30:13 ppp[131]: tun0: Command: default: set device /dev/cuaa0
Nov 16 17:30:13 ppp[131]: tun0: Command: default: set speed 57600
Nov 16 17:30:13 ppp[131]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" ATE1Q0 OK-AT-OK \dATDT\T TIMEOUT 40 CONNECT
Nov 16 17:30:13 ppp[131]: tun0: Command: UOL: set phone 31130056
Nov 16 17:30:13 ppp[131]: tun0: Command: UOL: set login
Nov 16 17:30:13 ppp[131]: tun0: Command: UOL: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Nov 16 17:30:13 ppp[131]: tun0: Command: UOL: add default HISADDR
Nov 16 17:30:13 ppp[131]: tun0: Command: UOL: enable dns
Nov 16 17:30:13 ppp[131]: tun0: Command: UOL: set authname fallenbr
Nov 16 17:30:13 ppp[131]: tun0: Command: UOL: set authkey ********
Nov 16 17:30:13 ppp[132]: tun0: Phase: PPP Started (background mode).
Nov 16 17:30:13 ppp[132]: tun0: Phase: bundle: Establish
Nov 16 17:30:13 ppp[132]: tun0: Phase: deflink: closed -> opening
Nov 16 17:30:13 ppp[132]: tun0: Phase: deflink: Connected!
Nov 16 17:30:13 ppp[132]: tun0: Phase: deflink: opening -> dial
Nov 16 17:30:13 ppp[132]: tun0: Chat: Phone: 31130056
Nov 16 17:30:13 ppp[132]: tun0: Chat: deflink: Dial attempt 1 of 1
Nov 16 17:30:13 ppp[132]: tun0: Chat: Send: ATE1Q0^M
Nov 16 17:30:13 ppp[132]: tun0: Chat: Expect(5): OK
Nov 16 17:30:13 ppp[132]: tun0: Chat: Received: ATE1Q0^M^M
Nov 16 17:30:13 ppp[132]: tun0: Chat: Received: OK^M
Nov 16 17:30:13 ppp[132]: tun0: Chat: Send: ATDT31130056^M
Nov 16 17:30:15 ppp[132]: tun0: Chat: Expect(40): CONNECT
Nov 16 17:30:55 ppp[132]: tun0: Chat: Expect timeout
Nov 16 17:30:55 ppp[132]: tun0: Warning: Chat script failed
Nov 16 17:30:55 ppp[132]: tun0: Phase: deflink: dial -> hangup
Nov 16 17:30:55 ppp[132]: tun0: Phase: deflink: Disconnected!
Nov 16 17:30:55 ppp[132]: tun0: Phase: deflink: Connect time: 42 secs: 0 octets in, 0 octets out
Nov 16 17:30:55 ppp[132]: tun0: Phase: deflink: : 0 packets in, 0 packets out
Nov 16 17:30:55 ppp[132]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Sat Nov 16 17:30:13 2002
Nov 16 17:30:55 ppp[132]: tun0: Phase: deflink: hangup -> closed
Nov 16 17:30:55 ppp[132]: tun0: Phase: bundle: Dead
Nov 16 17:30:55 ppp[132]: tun0: Phase: PPP Terminated (normal).
Nov 16 17:30:55 ppp[131]: tun0: Phase: Parent: Child failed (errdead)
Nov 16 17:30:55 ppp[132]: tun0: Chat: Parent notified of failure



What could be wrong?

Thanks

Reply To This Message
 
 Re: PPP Dial problem
Author: .daniel.schrock 
Date:   19-11-02 16:58

<i>Nov 16 17:30:13 ppp[132]: tun0: Chat: Send: ATE1Q0^M
Nov 16 17:30:13 ppp[132]: tun0: Chat: Expect(5): OK
Nov 16 17:30:13 ppp[132]: tun0: Chat: Received: ATE1Q0^M^M
Nov 16 17:30:13 ppp[132]: tun0: Chat: Received: OK^M
Nov 16 17:30:13 ppp[132]: tun0: Chat: Send: ATDT31130056^M
Nov 16 17:30:15 ppp[132]: tun0: Chat: Expect(40): CONNECT
Nov 16 17:30:55 ppp[132]: tun0: Chat: Expect timeout
<b>Nov 16 17:30:55 ppp[132]: tun0: Warning: Chat script failed</b>
Nov 16 17:30:55 ppp[132]: tun0: Phase: deflink: dial -> hangup</i>

the bold line tells you where your problem is.
Where did you find that chat script?
<b>Nov 16 17:30:13 ppp[131]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" ATE1Q0 OK-AT-OK \dATDT\T TIMEOUT 40 CONNECT</b>

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   19-11-02 19:25

In a book that I bought named "FreeBSD Unleashed". It said that it could work in most cases. It looks like not in mine, hehehe...

Where can I find the right chat script for my modem? It is a Modem Blaster from creative...

Reply To This Message
 
 Re: PPP Dial problem
Author: .daniel.schrock 
Date:   19-11-02 20:35

try this:
<b>set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"</b>

i found it on Google:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-8&threadm=38FD2EDF.322DA74A%40ucsd.edu&rnum=1&prev=/groups%3Fq%3DChat%2BScript%2BModem%2BBlaster%2BFreeBSD%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3Dutf-8%26sa%3DN%26tab%3Dwg

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   19-11-02 21:22

Hi,

When I tried this, the modem didn't even dialed. My Modem type is a little different from the one the Google's link is pointing at. Look here (http://www.americas.creative.com/support/welcome.asp?centric=79) for more information about it...

Any Ideas?



Thanks!

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   19-11-02 21:22

Oh, I also get a "Chat script failed" warning message

Reply To This Message
 
 Re: PPP Dial problem
Author: .daniel.schrock 
Date:   19-11-02 22:09

hrmm... it looks like it may have issues with unix systems:

<i>From: possum@tree.branch (Mike Trettel)
Subject: Re: Creative Modem Blaster external DE5625; Rockwell/Conexant chip set?
w/Linux?
Reply-To: Y'all have to fix this@nowhere
Date: Thu, 22 Mar 2001 12:45:56 GMT

>
>Dave wrote:
>>
>> Would like to know:
>>
>> 1 - Is it a fact the Creative Modem Blaster V90 56K DE5625 external
>> (serial) has a Rockwell/Conexant chio set?
>> 2 - Is it a fact serial (external) modems with Rockwell/Conexant chip
>sets
>> are incompatible with Unix/Linux?
>> 3 - Anyone ever been successful using a DE5625 to connect (ppp) to an
>I.S.P.?
>>
>> The modem in question is an external (serial) Creative Modem Blaster v90
>> 56K DE5625. I have very limited success connecting to my I.S.P. using
>this
>> beast:
>> -- One or two tries in 30-or-so result in a successful connection.
>> -- While KPPP tells me I have a 40K+ connection, surfing, on the few
>> instances where I've been able to connect successfully, seems painfully
>slow.
>> -- Attempts to download/ftp files fail fast and hard; start a transfer
>and
>> it dies almost immediately after transferring a K or two; seemingly with
>no
>> messages indicating why.
>>
>> I've been all over the creative, creaf, and modemblaster web sites
>looking
>> for technical specs. without much luck, and no response from e-mail
>inquiries.
>>
>> I found a few obscure lists from sites in Europe suggesting the DE5625
>uses
>> a Rockwell/Conexant chip set, and a few Linux related sites indicating
>such
>> chip sets are not compatible with Unix/Linux. Then I got a hit on somene
>> who put up Linux on a Dell Inspiron (laptop) and used a DE5625
>successully
>> to connect to the internet.
>>
>> So, whatz the story?
>> -- Anyone have any luck using a DE5626 (external) with Linux?
>> -- Does it have a R/C chipset?
>> -- Does a R/C chipset modem present Linux compatibility problems?
>>
>> Many thanks,
>> Dave G.</i>

this was at http://www.mail-archive.com/linux-misc@senator-bedfellow.mit.edu/msg07261.html Search for Modem within the page.

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   20-11-02 02:41

Ahh... This is bad news... Can you suggest me a good external (or even internal) modem to buy?

Reply To This Message
 
 Re: PPP Dial problem
Author: .daniel.schrock 
Date:   20-11-02 16:48

I highly recommend US Robotics external modems. I have a USR 56K v.90 x2 FaxModem for my network. I can't say I've tried it in freebsd, but it works great connected to my Cisco 2509 router. All i have to do is change the default gateways on my systems and the modem will auto dial and bring my network back online... very nice, but fortunately, i haven't been forced to use it yet.

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   22-11-02 13:58

All of them work on FreeBSD?

Reply To This Message
 
 Re: PPP Dial problem
Author: .daniel.schrock 
Date:   22-11-02 15:46

yea, all of the external ones. They may be expensive but they work and are worth it. I think mine was $80.

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   22-11-02 16:36

OK, thanks a lot!

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   23-11-02 16:32

Hi,

I bought an old modem from US Robotics... It's a 28.8K Sportster... When I try to run PPP (via ppp -ddial ISP), I get the same "Chat script failed" Message... Where can I find a working chat script for my modem?

Thanks

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   24-11-02 12:36

Does anyone have any idea? And what are those little switches in it for?

Thank you

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   26-11-02 22:45

Here is the /var/log/ppp.conf:

Nov 26 20:18:46 ppp[129]: Phase: Using interface: tun0
Nov 26 20:18:46 ppp[129]: Phase: deflink: Created in closed state
Nov 26 20:18:46 ppp[129]: tun0: Command: default: set device /dev/cuaa0
Nov 26 20:18:46 ppp[129]: tun0: Command: default: set speed 57600
Nov 26 20:18:46 ppp[129]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT
Nov 26 20:18:46 ppp[129]: tun0: Command: UOL: set phone 31130056
Nov 26 20:18:46 ppp[129]: tun0: Command: UOL: set login
Nov 26 20:18:46 ppp[129]: tun0: Command: UOL: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Nov 26 20:18:46 ppp[129]: tun0: Command: UOL: add default HISADDR
Nov 26 20:18:46 ppp[129]: tun0: Command: UOL: enable dns
Nov 26 20:18:46 ppp[129]: tun0: Command: UOL: set authname fallenbr
Nov 26 20:18:46 ppp[129]: tun0: Command: UOL: set authkey ********
Nov 26 20:18:46 ppp[130]: tun0: Phase: PPP Started (background mode).
Nov 26 20:18:46 ppp[130]: tun0: Phase: bundle: Establish
Nov 26 20:18:46 ppp[130]: tun0: Phase: deflink: closed -> opening
Nov 26 20:18:46 ppp[130]: tun0: Phase: deflink: Connected!
Nov 26 20:18:46 ppp[130]: tun0: Phase: deflink: opening -> dial
Nov 26 20:18:46 ppp[130]: tun0: Chat: Phone: 31130056
Nov 26 20:18:46 ppp[130]: tun0: Chat: deflink: Dial attempt 1 of 1
Nov 26 20:18:46 ppp[130]: tun0: Chat: Send: AT^M
Nov 26 20:18:46 ppp[130]: tun0: Chat: Expect(5): OK
Nov 26 20:18:51 ppp[130]: tun0: Chat: Expect timeout
Nov 26 20:18:51 ppp[130]: tun0: Chat: Send: AT^M
Nov 26 20:18:51 ppp[130]: tun0: Chat: Expect(5): OK
Nov 26 20:18:56 ppp[130]: tun0: Chat: Expect timeout
Nov 26 20:18:56 ppp[130]: tun0: Warning: Chat script failed
Nov 26 20:18:56 ppp[130]: tun0: Phase: deflink: dial -> hangup
Nov 26 20:18:56 ppp[130]: tun0: Phase: deflink: Disconnected!
Nov 26 20:18:56 ppp[130]: tun0: Phase: deflink: Connect time: 10 secs: 0 octets in, 0 octets out
Nov 26 20:18:56 ppp[130]: tun0: Phase: deflink: : 0 packets in, 0 packets out
Nov 26 20:18:56 ppp[130]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Tue Nov 26 20:18:46 2002
Nov 26 20:18:56 ppp[130]: tun0: Phase: deflink: hangup -> closed
Nov 26 20:18:56 ppp[130]: tun0: Phase: bundle: Dead
Nov 26 20:18:56 ppp[130]: tun0: Phase: PPP Terminated (normal).
Nov 26 20:18:56 ppp[129]: tun0: Phase: Parent: Child failed (errdead)
Nov 26 20:18:56 ppp[130]: tun0: Chat: Parent notified of failure

Reply To This Message
 
 Re: PPP Dial problem
Author: .daniel.schrock 
Date:   27-11-02 01:57

are you editing the files with a dos app? i think those ^M chars may be the problem.
there is a utility in the ports (/usr/ports/converters/unix2dos) that will convert your textfiles to unix format, removing the dos control characters (including ^M).

install that and run them through dos2unix and see if you still have the same problems.

as far as unix editors go, pico seems to hide these chars, vi does not. if you are using pico, they may have been over looked.

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   27-11-02 12:46

Which files do you mean?

I am editing /etc/ppp/ppp.conf with vi, and I've copied the /var/log/ppp.log into a textfile (using :r in vi) and saved it into a floppy, using FreeBSD. Then I opened it with notepad and pasted here, using my other computer, which is running Windows.

Do you know how to set up the modem's DIP SWITCHES? They are all turned off, so perhaps that could be the problem.

The modem doesn't even dial, so perhaps the script at "set dial" line is also wrong.

Also, what is the correct speed for a 28.8k modem? I didn't knew, so I set 57600, which is for a 56k one.


And thank you for helping me!

Reply To This Message
 
 Re: PPP Dial problem
Author: Fallen 
Date:   28-11-02 17:18

Haha!! It's working!!

I can't believe... The problem is that my modem is silent, so when I tried to use it in background mode, I heard nothing, grew impatient and killed the application...

Also, is killing an application a bad procedure? And is there a way to disconnect not by killing PPP?

I've noticed that I can't run PPP as a regular user. What can I do? just chmod /usr/sbin/ppp ?


And thanks a lot!!!

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org