LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 07-10-2013, 01:00 AM   #1
sekarlinux
Member
 
Registered: Dec 2011
Posts: 42

Rep: Reputation: Disabled
Wvdial keep dialing and not terminating


Iam using two USB dongles in my desktop. I used to dial these dongles from ifcfg-ppp0 and ifcfg-ppp1.

Both are working fine but when we reboot the machine the USB port mapping modified for both dongles so that i got Authentication failure. But it is keep trying dial and not terminating...

How terminate the dialing if it got Authentication failure.

My ifcfg-ppp0 file

TYPE=Modem
DEVICE=ppp0
BOOTPROTO=dialup
ONBOOT=no
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
AC=off
BSDCOMP=off
VJCCOMP=off
CCP=off
PC=off
VJ=off
LINESPEED=115200
MODEMPORT=/dev/ttyUSB0
IDLETIMEOUT=600
PROVIDER=ppp0
DEFROUTE=no
PERSIST=no
PAPNAME="username@revb.ttsl.in"
WVDIALSECT=ppp0
MODEMNAME=Modem0
DEMAND=no

/etc/wvdial.conf

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Init1 = ATZ
Stupid Mode = 1
Username = username@revb.ttsl.in
Password = password
Modem = /dev/ttyUSB0
Baud = 9600

So can we define the dial attempts to 3 and can we terminate if it got authentication failure

Thanks
 
Old 07-11-2013, 01:05 PM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,348

Rep: Reputation: 184Reputation: 184
Have you tried adding
Code:
Dial Attempts = 3
to /etc/wvdial.conf
 
Old 07-16-2013, 01:19 AM   #3
sekarlinux
Member
 
Registered: Dec 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
I have tried Dial Attempts = 3 in /etc/wvdial.conf and maxfail 3 in /etc/ppp/option file as well. But still keep dialing even Authentication failed. Do we have any Dial attempts option on ifcfg-ppp1 scripts?

Jul 16 11:44:40 PROXY-1 ifup-ppp: pppd started for ppp1 on /dev/ttyUSB4 at 115200
Jul 16 11:44:41 PROXY-1 pppd[5182]: pppd 2.4.5 started by root, uid 0
Jul 16 11:44:42 PROXY-1 wvdial[5189]: WvDial: Internet dialer version 1.60
Jul 16 11:44:42 PROXY-1 wvdial[5189]: Initializing modem.
Jul 16 11:44:42 PROXY-1 wvdial[5189]: Sending: ATZ
Jul 16 11:44:42 PROXY-1 wvdial[5189]: ATZ
Jul 16 11:44:42 PROXY-1 wvdial[5189]: OK
Jul 16 11:44:42 PROXY-1 wvdial[5189]: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Jul 16 11:44:42 PROXY-1 wvdial[5189]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Jul 16 11:44:42 PROXY-1 wvdial[5189]: OK
Jul 16 11:44:42 PROXY-1 wvdial[5189]: Modem initialized.
Jul 16 11:44:42 PROXY-1 wvdial[5189]: Sending: ATDT#777
Jul 16 11:44:42 PROXY-1 wvdial[5189]: Waiting for carrier.
Jul 16 11:44:42 PROXY-1 wvdial[5189]: ATDT#777
Jul 16 11:44:43 PROXY-1 wvdial[5189]: CONNECT 14700000
Jul 16 11:44:43 PROXY-1 wvdial[5189]: Carrier detected. Chatmode finished.
Jul 16 11:44:43 PROXY-1 pppd[5182]: Serial connection established.
Jul 16 11:44:43 PROXY-1 pppd[5182]: Using interface ppp1
Jul 16 11:44:43 PROXY-1 pppd[5182]: Connect: ppp1 <--> /dev/ttyUSB4
Jul 16 11:44:43 PROXY-1 pppd[5182]: CHAP authentication failed
Jul 16 11:44:43 PROXY-1 pppd[5182]: CHAP authentication failed
Jul 16 11:44:43 PROXY-1 pppd[5182]: Connection terminated.
Jul 16 11:44:43 PROXY-1 pppd[5182]: Exit.
Jul 16 11:45:13 PROXY-1 ifup-ppp: pppd started for ppp1 on /dev/ttyUSB4 at 115200
Jul 16 11:45:13 PROXY-1 pppd[5199]: pppd 2.4.5 started by root, uid 0
Jul 16 11:45:14 PROXY-1 wvdial[5206]: WvDial: Internet dialer version 1.60
Jul 16 11:45:14 PROXY-1 wvdial[5206]: Initializing modem.
Jul 16 11:45:14 PROXY-1 wvdial[5206]: Sending: ATZ
Jul 16 11:45:14 PROXY-1 wvdial[5206]: ATZ
Jul 16 11:45:14 PROXY-1 wvdial[5206]: OK
Jul 16 11:45:14 PROXY-1 wvdial[5206]: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Jul 16 11:45:15 PROXY-1 wvdial[5206]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Jul 16 11:45:15 PROXY-1 wvdial[5206]: OK
Jul 16 11:45:15 PROXY-1 wvdial[5206]: Modem initialized.
Jul 16 11:45:15 PROXY-1 wvdial[5206]: Sending: ATDT#777
Jul 16 11:45:15 PROXY-1 wvdial[5206]: Waiting for carrier.
Jul 16 11:45:15 PROXY-1 wvdial[5206]: ATDT#777
Jul 16 11:45:15 PROXY-1 wvdial[5206]: CONNECT 14700000
Jul 16 11:45:15 PROXY-1 wvdial[5206]: Carrier detected. Chatmode finished.
Jul 16 11:45:15 PROXY-1 pppd[5199]: Serial connection established.
Jul 16 11:45:15 PROXY-1 pppd[5199]: Using interface ppp1
Jul 16 11:45:15 PROXY-1 pppd[5199]: Connect: ppp1 <--> /dev/ttyUSB4
Jul 16 11:45:15 PROXY-1 pppd[5199]: CHAP authentication failed
Jul 16 11:45:15 PROXY-1 pppd[5199]: CHAP authentication failed
Jul 16 11:45:15 PROXY-1 pppd[5199]: Connection terminated.
Jul 16 11:45:16 PROXY-1 pppd[5199]: Exit.
 
Old 07-16-2013, 06:50 AM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,348

Rep: Reputation: 184Reputation: 184
What happens if you set the number attempts and/or maxfail to zero?
 
Old 07-17-2013, 12:25 AM   #5
sekarlinux
Member
 
Registered: Dec 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
Still keep dialing even after maxfail 0 and Dial Attempts = 0

/etc/ppp/options
lock
maxfail 0

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Init1 = ATZ
Stupid Mode = 1
Dial Attempts = 0
Username = xxxxxxxxxx
Password = xxxxxxxxxx
Modem = /dev/ttyUSB4
Baud = 9600


Jul 17 10:48:45 PROXY-1 ifup-ppp: pppd started for ppp0 on /dev/ttyUSB4 at 115200
Jul 17 10:48:45 PROXY-1 pppd[51019]: pppd 2.4.5 started by root, uid 0
Jul 17 10:48:46 PROXY-1 wvdial[51026]: WvDial: Internet dialer version 1.60
Jul 17 10:48:46 PROXY-1 wvdial[51026]: Initializing modem.
Jul 17 10:48:46 PROXY-1 wvdial[51026]: Sending: ATZ
Jul 17 10:48:47 PROXY-1 wvdial[51026]: ATZ
Jul 17 10:48:47 PROXY-1 wvdial[51026]: OK
Jul 17 10:48:47 PROXY-1 wvdial[51026]: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Jul 17 10:48:47 PROXY-1 wvdial[51026]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Jul 17 10:48:47 PROXY-1 wvdial[51026]: OK
Jul 17 10:48:47 PROXY-1 wvdial[51026]: Modem initialized.
Jul 17 10:48:47 PROXY-1 wvdial[51026]: Sending: ATDT#777
Jul 17 10:48:47 PROXY-1 wvdial[51026]: Waiting for carrier.
Jul 17 10:48:47 PROXY-1 wvdial[51026]: ATDT#777
Jul 17 10:48:48 PROXY-1 wvdial[51026]: CONNECT 14700000
Jul 17 10:48:48 PROXY-1 wvdial[51026]: Carrier detected. Chatmode finished.
Jul 17 10:48:48 PROXY-1 pppd[51019]: Serial connection established.
Jul 17 10:48:48 PROXY-1 pppd[51019]: Using interface ppp0
Jul 17 10:48:48 PROXY-1 pppd[51019]: Connect: ppp0 <--> /dev/ttyUSB4
Jul 17 10:48:48 PROXY-1 pppd[51019]: CHAP authentication failed
Jul 17 10:48:48 PROXY-1 pppd[51019]: CHAP authentication failed
Jul 17 10:48:48 PROXY-1 pppd[51019]: Connection terminated.
Jul 17 10:48:48 PROXY-1 pppd[51019]: Exit.
Jul 17 10:49:18 PROXY-1 ifup-ppp: pppd started for ppp0 on /dev/ttyUSB4 at 115200
Jul 17 10:49:18 PROXY-1 pppd[51036]: pppd 2.4.5 started by root, uid 0
Jul 17 10:49:19 PROXY-1 wvdial[51043]: WvDial: Internet dialer version 1.60
Jul 17 10:49:19 PROXY-1 wvdial[51043]: Initializing modem.
Jul 17 10:49:19 PROXY-1 wvdial[51043]: Sending: ATZ
Jul 17 10:49:19 PROXY-1 wvdial[51043]: ATZ
Jul 17 10:49:19 PROXY-1 wvdial[51043]: OK
Jul 17 10:49:19 PROXY-1 wvdial[51043]: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Jul 17 10:49:19 PROXY-1 wvdial[51043]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Jul 17 10:49:19 PROXY-1 wvdial[51043]: OK
Jul 17 10:49:19 PROXY-1 wvdial[51043]: Modem initialized.
Jul 17 10:49:19 PROXY-1 wvdial[51043]: Sending: ATDT#777
Jul 17 10:49:19 PROXY-1 wvdial[51043]: Waiting for carrier.
Jul 17 10:49:19 PROXY-1 wvdial[51043]: ATDT#777
Jul 17 10:49:20 PROXY-1 wvdial[51043]: CONNECT 14700000
Jul 17 10:49:20 PROXY-1 wvdial[51043]: Carrier detected. Chatmode finished.
Jul 17 10:49:20 PROXY-1 pppd[51036]: Serial connection established.
Jul 17 10:49:20 PROXY-1 pppd[51036]: Using interface ppp0
Jul 17 10:49:20 PROXY-1 pppd[51036]: Connect: ppp0 <--> /dev/ttyUSB4
Jul 17 10:49:20 PROXY-1 pppd[51036]: CHAP authentication failed
Jul 17 10:49:20 PROXY-1 pppd[51036]: CHAP authentication failed
Jul 17 10:49:20 PROXY-1 pppd[51036]: Connection terminated.
Jul 17 10:49:21 PROXY-1 pppd[51036]: Exit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Adding wvdial to start menu/desktop, running wvdial without shell. Mogget Linux - Desktop 1 08-07-2009 02:08 AM
How to make wvdial check for the presence of a dial tone BEFORE dialing? chuckleberry Linux - Software 0 12-28-2005 04:33 PM
Dialing to wvdial and message 'no carrier' anindyanuri Linux - Networking 18 04-05-2005 05:53 AM
terminating wvdial Freestone Linux - Newbie 6 02-22-2003 12:45 PM
dialing out with wvdial nbc Linux - Newbie 3 08-15-2001 06:24 PM


All times are GMT -5. The time now is 04:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration