View Full Version : problem while using wvdial


jo-jo
Hi , when I try to connect to login the net using wvdial , I hear the sound of loggin ...the it disconnect suddenly once that sound ends...
here is some files' content that my help ,
/etc/wvdial.conf :-


[Dialer Defaults]

Dial Command = ATDP
Modem = /dev/ttyS0
Baud = 57600
Init = ATZ
Init2 = AT S11=50
Phone = 07777777
Username = sdsd
Password = mssd
[Dialer phone2]
Phone = 07770777

[Dialer shh]
Init3 = ATM0

[Dialer pulse]
Dial Command = ATDP


/etc/resolv.conf

nameserver 163.121.128.134

nameserver 212.103.160.18



what happened in consol while dialin n connecting :-

$ wvdial
--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT S11=50
AT S11=50
OK
--> Modem initialized.
--> Sending: ATDP07777777
--> Waiting for carrier.
ATDP07777777
CONNECT 57600
~[7f]}#@!}!w} }<}"}&} }*} } }$}(@%} } }#h}%}&/K|`}'}"}(}"JZ~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!x} }<}"}&} }*} } }$}(@%} } }#h}%}&/K|`}'}"}(}"Ao~
--> PPP negotiation detected.
--> Starting pppd at Fri Nov 7 07:06:19 2003
--> pid of pppd: 968
--> Disconnecting at Fri Nov 7 07:06:20 2003
--> The PPP daemon has died: pppd options error (exit code = 2)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 2)


I use debian .

safrout
this is my wvdial.conf file if it may help
_______________________________

[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 = 07777777
Username = <Your Login Name>
Password = <Your Password>
______________________________

habdin
Salamo 3alaikom,

I tried to follow what the error message told. I tried man pppd. I searched within the man page itself.

Exit code =2 An error was detected in processing the options given, such as two mutually exclusive options being used.



This message tells that you should trying for example removing the second initialization string for the modem and retry.

Salam.

safrout
i think u should run as root tab3an

wvdialconf /etc/wvdial.conf

and just edit this file and type in ur dial=up number

and try to connect using this default settings only

jo-jo
Nothing worked ....
The same errors :(

jo-jo
Thanks ya safrout !
I did as what you told me and it worked fyne and it aint dissconnect anymore , But :(....
no net connection at all :'(
I try to ping yahoo but it didnot respond ...no site wants to open ...
in the above post there is my resolv.conf file if it may help ...
fanks

safrout
i won't be able to help much in the /etc/resolv.conf except to paste mine since i don't have enough knowladge about it aslan :)

__________________________
#nameserver 127.0.0.1
nameserver 209.244.0.3
nameserver 209.244.0.4
nameserver 212.103.160.18 #kppp temp entry
nameserver 163.121.128.134 #kppp temp entry
______________________________

sattia
First ur error has been resulted because of an error in ur /etc/ppp/options file pls post it first

Second ur problem after using Safrout's solution is most probably because of DNS.

Please:
1 - Attach /etc/resolv.conf
2 - Ping any host by its IP say 193.127.1.1

jo-jo
sattia ,
I attached options file after
, here is my resolv.conf :-
-----------------------------------------
nameserver 163.121.128.134

nameserver 212.103.160.18
------------------------------------------

when I ping that ip ... nothing happend at all and at last it gave me ping time out .
:o

uniball
Debian users should use pon and poff
use pppconfig to configure all the stuff
apt-get install pppconfig

what's the output of "/sbin/route" when you are connected ??

You gotta love this ;-)
http://newbiedoc.sourceforge.net/

jo-jo
I have pppconfig already installed , but I donot know how to dial using those configuration I have made by pppconfig ??
here is what I have after I "/sbin/route" while iam on ,
---------------------------------------------------------------------
skunky@debian:~$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
163.121.138.102 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.2 * 255.255.255.255 UH 1 0 0 sl0
default * 0.0.0.0 U 1 0 0 sl0
skunky@debian:~$ ping 163.121.138.102
PING 163.121.138.102 (163.121.138.102): 56 data bytes
64 bytes from 163.121.138.102: icmp_seq=0 ttl=255 time=215.2 ms
64 bytes from 163.121.138.102: icmp_seq=1 ttl=255 time=179.9 ms
64 bytes from 163.121.138.102: icmp_seq=2 ttl=255 time=170.0 ms
64 bytes from 163.121.138.102: icmp_seq=3 ttl=255 time=170.0 ms
64 bytes from 163.121.138.102: icmp_seq=4 ttl=255 time=170.0 ms
64 bytes from 163.121.138.102: icmp_seq=5 ttl=255 time=170.0 ms
64 bytes from 163.121.138.102: icmp_seq=6 ttl=255 time=250.0 ms
64 bytes from 163.121.138.102: icmp_seq=7 ttl=255 time=170.0 ms
64 bytes from 163.121.138.102: icmp_seq=8 ttl=255 time=120.0 ms
64 bytes from 163.121.138.102: icmp_seq=9 ttl=255 time=180.0 ms
64 bytes from 163.121.138.102: icmp_seq=10 ttl=255 time=180.0 ms
64 bytes from 163.121.138.102: icmp_seq=11 ttl=255 time=170.0 ms
64 bytes from 163.121.138.102: icmp_seq=12 ttl=255 time=180.8 ms
64 bytes from 163.121.138.102: icmp_seq=13 ttl=255 time=170.0 ms
64 bytes from 163.121.138.102: icmp_seq=14 ttl=255 time=170.0 ms
64 bytes from 163.121.138.102: icmp_seq=15 ttl=255 time=120.0 ms

--- 163.121.138.102 ping statistics ---
16 packets transmitted, 16 packets received, 0% packet loss
round-trip min/avg/max = 120.0/174.1/250.0 ms
skunky@debian:~$

-----------------------------------------------------------------
as you see for some how I pinged the first IP i got :D
,
fanks for the link :) :eek:

jo-jo
aww , debian users should use wot?
pon n poff ?:rolleyes:

jo-jo
okaaaay , systems told me about the pon poff thing , and i used it ..and it worked fyne here :)
thanks all :):eek:

SYStems
Originally posted by uniball
Debian users should use pon and poff
...


why is that ?

i did try wvdial couldnt get to work
and pon poff with pppconfig worked alright

i mainly gave it a shot because u always talked
so good about it

but for some reason i didnt figure it out or it's man pages

now u say this .... ?
is there something particularly wrong with wvdial on debian

uniball
Originally posted by SYStems
\
is there something particularly wrong with wvdial on debian
sure no, I'm using wvdial.
But I know that pon & poff are great, I don't remember what I did as I installed Debian long time ago !
I can't remember wheather I had problems with wvdial or not, At leat some times I have to set stupid mode = on in /etc/wvdial.conf