LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2004, 03:58 AM   #1
simanyay
LQ Newbie
 
Registered: Jul 2003
Location: Imperial Library, Trantor
Distribution: SuSe Linux 9.3 Pro
Posts: 23

Rep: Reputation: 15
wvdial problem


Hello. I have a problem with wvdial. When I run it it connects only at 10 seconds and then pppd terminated with exit code 16 (Modem Hangup). What can I do to solve this problem?

Here wvdial.conf
Code:
[Dialer Defaults]
Modem = /dev/ttyS0
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = 1386000
Username = simanyay
Password = my_password
And wvdial output
Code:
--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT1386000
--> Waiting for carrier.
ATDT1386000
CONNECT 49333/ARQ/V90/LAPM/V42BIS
--> Carrier detected.  Waiting for prompt.
User Access Verification
Username:
--> Looks like a login prompt.
--> Sending: simanyay
simanyay
Password:
--> Looks like a password prompt.
--> Sending: (password)
Username:
--> Looks like a login prompt.
--> Sending: simanyay
simanyay
Password:
--> Looks like a password prompt.
--> Sending: (password)
Username:
--> Looks like a login prompt.
--> Sending: simanyay
simanyay
Password:
--> Don't know what to do!  Starting pppd and hoping for the best.
--> Starting pppd at Thu Jun 24 13:28:16 2004
--> pid of pppd: 643
--> Disconnecting at Thu Jun 24 13:28:51 2004
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
Thank you.

Last edited by simanyay; 06-24-2004 at 01:52 PM.
 
Old 06-24-2004, 08:24 AM   #2
herbc
Member
 
Registered: May 2004
Location: United States
Distribution: Slackware 10.0
Posts: 72

Rep: Reputation: 15
Your ISP is disconnecting. Probably because the login is failing. Try minicom with the same username and password to see if you can login to your ISP. man minicom if you haven't used it before.
 
Old 06-24-2004, 08:26 AM   #3
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

If you really don't find a solution... try "chat" instead of wvdial
Oliv'
 
Old 06-24-2004, 01:54 PM   #4
simanyay
LQ Newbie
 
Registered: Jul 2003
Location: Imperial Library, Trantor
Distribution: SuSe Linux 9.3 Pro
Posts: 23

Original Poster
Rep: Reputation: 15
Login is 100% correct. I can connect with it on windows.
 
Old 06-24-2004, 01:55 PM   #5
simanyay
LQ Newbie
 
Registered: Jul 2003
Location: Imperial Library, Trantor
Distribution: SuSe Linux 9.3 Pro
Posts: 23

Original Poster
Rep: Reputation: 15
Do you have some doc, instead of man about chat? Or sample script?
 
Old 06-25-2004, 04:33 AM   #6
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

Here is my config with chat for my ISP:
Code:
---------------------/etc/chatscripts/free------------------

 

ABORT        BUSY
ABORT        "NO CARRIER"
ABORT        VOICE
ABORT        "NO DIAL TONE"
""           ATZ
OK           ATM0L0DT0860922000
NNECT        ""

 
---------------------/etc/ppp/peers/paris-ppp------------------

 

#!/bin/sh
# You usually need this if there is no PAP authentication
noauth
# The chatscript (be sure to edit that file too)
connect "/usr/sbin/chat -v -f /etc/chatscripts/free"
# Routing 
defaultroute
modem
# Default Modem (you better replace this with /dev/ttySx!)
/dev/modem
# Speed 
115200
ipcp-accept-remote
ipcp-accept-local
# Keep Modem up even if connexion fails
# persist 
idle 180
# demand 
remotename proxad
debug
user <Votre_Login>

 
---------------------/etc/resolv.conf------------------

 

#/etc/resolv.conf
domain free.fr
search free.fr
nameserver 212.27.32.5
nameserver 213.228.0.168

 

#If you use CHAP authentication
---------------------/etc/ppp/chap-secrets------------------

 

# Secrets for authentication using CHAP
# client                server           secret                    IP addresses 
<Votre_Login>    proxad         <Votre_Password>

 

#If you use PAP authentication

---------------------/etc/ppp/pap-secrets------------------

 

# Secrets for authentication using PAP
# client                server           secret                    IP addresses 
<Votre_Login>    proxad          <Votre_Password>
For specific informations, see the PPP howto ... that's chapter 18 for chat specific info

Oliv'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wvdial problem rvijay Debian 8 03-06-2005 10:18 AM
Problem with wvdial Boogieman Linux - Software 9 02-27-2004 04:56 PM
wvdial problem Nik0s Linux - Newbie 5 02-04-2004 02:55 PM
WvDial Problem Nauseous Linux - Networking 5 04-08-2003 01:13 AM
Problem with wvdial telex4 Linux - Networking 3 11-04-2002 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration