LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Wvdial keep dialing and not terminating (http://www.linuxquestions.org/questions/linux-desktop-74/wvdial-keep-dialing-and-not-terminating-4175469098/)

sekarlinux 07-10-2013 02:00 AM

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

colorpurple21859 07-11-2013 02:05 PM

Have you tried adding
Code:

Dial Attempts = 3
to /etc/wvdial.conf

sekarlinux 07-16-2013 02:19 AM

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.

colorpurple21859 07-16-2013 07:50 AM

What happens if you set the number attempts and/or maxfail to zero?

sekarlinux 07-17-2013 01:25 AM

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.


All times are GMT -5. The time now is 05:19 AM.