Wvdial connect but no ping or Internet

Asked by Digitallad

Hi I am a newbie.
Problem: I can connect with my GPRS modem with Wvdial but cant ping a adress or go on the net with firefox.

Here is the connect log:

To run a command as administrator (user "root"), use "sudo <command>".

See "man sudo_root" for details.

paul@paul-desktop:~$ sudo wvdialconf /etc/wvdial.conf

[sudo] password for paul:
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud

ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud

ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud

ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud

ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

Modem Port Scan<*1>: S2 S3
WvModem<*1>: Cannot get information for serial port.

ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK

ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK

ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK

ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

ttyACM0<*1>: Modem Identifier: ATI -- 144
ttyACM0<*1>: Speed 4800: AT -- OK

ttyACM0<*1>: Speed 9600: AT -- OK

ttyACM0<*1>: Speed 19200: AT -- OK

ttyACM0<*1>: Speed 38400: AT -- OK

ttyACM0<*1>: Speed 57600: AT -- OK

ttyACM0<*1>: Speed 115200: AT -- OK

ttyACM0<*1>: Speed 230400: AT -- OK

ttyACM0<*1>: Speed 460800: AT -- OK

ttyACM0<*1>: Max speed is 460800; that should be safe.

ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found an USB modem on /dev/ttyACM0.

Modem configuration written to /etc/wvdial.conf.

ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

paul@paul-desktop:~$ sudo gedit /etc/wvdial.conf

paul@paul-desktop:~$ sudo wvdial gprs

WvDial<*1>: WvDial: Internet dialer version 1.56

WvModem<*1>: Cannot get information for serial port.

WvDial<*1>: Initializing modem.

WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ATZ

WvDial Modem<*1>: OK

WvDial<*1>: Sending: atz

WvDial Modem<*1>: atz

WvDial Modem<*1>: OK

WvDial<*1>: Sending: AT+CGDCONT=1,"IP","internet"

WvDial Modem<*1>: AT+CGDCONT=1,"IP","internet"

WvDial Modem<*1>: OK

WvDial<*1>: Modem initialized.

WvDial<*1>: Sending: ATDT*99***1#

WvDial<*1>: Waiting for carrier.

WvDial Modem<*1>: ATDT*99***1#

WvDial Modem<*1>: CONNECT

WvDial<*1>: Carrier detected. Starting PPP immediately.

WvDial<Notice>: Starting pppd at Mon May 19 22:06:29 2008

WvDial<Notice>: Pid of pppd: 5994

WvDial<*1>: Using interface ppp0

WvDial<*1>: pppd: h?[06][08]?[06][08]

WvDial<*1>: pppd: h?[06][08]?[06][08]

WvDial<*1>: pppd: h?[06][08]?[06][08]

WvDial<*1>: pppd: h?[06][08]?[06][08]

WvDial<*1>: pppd: h?[06][08]?[06][08]

WvDial<*1>: local IP address 172.26.121.52

WvDial<*1>: pppd: h?[06][08]?[06][08]

WvDial<*1>: remote IP address 192.168.100.101

WvDial<*1>: pppd: h?[06][08]?[06][08]

WvDial<*1>: primary DNS address 209.212.97.1

WvDial<*1>: pppd: h?[06][08]?[06][08]

WvDial<*1>: secondary DNS address 10.204.32.245

WvDial<*1>: pppd: h?[06][08]?[06][08]

[B]Here is the WvDial Conf file[/B]

Modem Dialer settings:
[Dialer Defaults]
Init1 = AT+CGDCONT=1,"IP","internet";
Modem Type = USB Modem
Phone = *99***1#
#Phone = *99#
Username = anything
Password = anything
Stupid Mode = 1
Dial Command = ATDT

[dialer gprs]
Modem = /dev/ttyACM0
Baud = 115200
Init2= atz
Init3 = AT+CGDCONT=1,"IP","internet"
isdn = 0
MODEM Type = Analog modem

Hope you can help me!
Paul

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Henning Eggers
Solved:
Last query:
Last reply:
Revision history for this message
Henning Eggers (henninge) said :
#1

It sounds like you are missing the default route. Do the following after connecting and see if it helps:

sudo route add default gw 192.168.100.101

(Or whatever the remote IP address is.)

I would suggest using gnome-ppp instead. It is a frontend to wvdial and works wonderfully for me. You have to enter the values from your config files and just hit "Connect". You should run it as root, though, so it can change resolver settings and add the default route. The most convinient way to do this is to add a menu entry, or copy from the main menu, with the following command line:

gksudo gnome-ppp

Regards,
Henning

Revision history for this message
Digitallad (peterpauling) said :
#2

Hi Henning
Thank you for the info on gnome-ppp.I finaly got it installed on ubuntu.
I used your
sudo route add default gw 192.168.100.101
command and I could connect to the net for about 1 min but it doesnt work any more even if I redo the command.

I istalled "gnome-ppp_0.3.23-1_i386.deb" with the "gnome-pppfixedforgutsy_0.3.24-1_i386.deb"

Then inseted all the settings into the setup.
Problem: It again dials and connect but still cant ping or go on the net.

Here is the log file:

 NOT edit this file by hand!"
GNOME PPP: STDERR: WvDial<*1>: WvDial: Internet dialer version 1.56
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: WvDial<*1>: Initializing modem.
GNOME PPP: STDERR: WvDial<*1>: Sending: ATZ
GNOME PPP: STDERR: WvDial Modem<*1>: ATZ
GNOME PPP: STDERR: WvDial Modem<*1>: OK
GNOME PPP: STDERR: WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: WvDial Modem<*1>: OK
GNOME PPP: STDERR: WvDial<*1>: Sending: AT+CGDCONT=1,"IP","internet"
GNOME PPP: STDERR: WvDial Modem<*1>: AT+CGDCONT=1,"IP","internet"
GNOME PPP: STDERR: WvDial Modem<*1>: OK
GNOME PPP: STDERR: WvDial<*1>: Modem initialized.
GNOME PPP: STDERR: WvDial<*1>: Sending: ATM1L3DT*99***1#
GNOME PPP: STDERR: WvDial<*1>: Waiting for carrier.
GNOME PPP: STDERR: WvDial Modem<*1>: ATM1L3DT*99***1#
GNOME PPP: STDERR: WvDial Modem<*1>: CONNECT
GNOME PPP: STDERR: WvDial<*1>: Carrier detected. Waiting for prompt.
GNOME PPP: STDERR: WvDial<Notice>: Don't know what to do! Starting pppd and hoping for the best.
GNOME PPP: STDERR: WvDial<Notice>: Starting pppd at Thu May 22 12:30:56 2008
GNOME PPP: STDERR: WvDial<Notice>: Pid of pppd: 6325
GNOME PPP: STDERR: WvDial<*1>: Using interface ppp0
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: local IP address 172.26.51.249
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: remote IP address 192.168.100.101
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: primary DNS address 209.212.97.1
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: secondary DNS address 10.204.32.245
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]

I had to run it with

gksudo gnome-ppp

What am I missing?

Paul

Revision history for this message
Henning Eggers (henninge) said :
#3

You do _not_ need to do the "route" command, if gnome-ppp is configured correctly. Check the Options tab in the Setup to see if the Option "Check default route" is active, as it should be.

Please send me the output of the following commands (when connected):
ping www.google.com
ping 209.85.129.104
netstat -rn

Do you have another network connection up while trying to connect through the modem?

This should be solved easily ... I hope ;-)

Revision history for this message
Digitallad (peterpauling) said :
#4

HI

I Checked the Options and the "default route" is marked.

Here is the dial log after all was rechecked:

WvDial<*1>: WvDial: Internet dialer version 1.56
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ATZ
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: OK
WvDial<*1>: Sending: AT+CGDCONT=1,"IP","internet"
WvDial Modem<*1>: AT+CGDCONT=1,"IP","internet"
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<*1>: Sending: ATM1L3DT*99***1#
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATM1L3DT*99***1#
WvDial Modem<*1>: CONNECT
WvDial<*1>: Carrier detected. Waiting for prompt.
WvDial<Notice>: Don't know what to do! Starting pppd and hoping for the best.
WvDial<Notice>: Starting pppd at Thu May 22 12:03:35 2008
WvDial<Err>: Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
WvDial<Err>: --> PAP (Password Authentication Protocol) may be flaky.
WvDial<Err>: Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
WvDial<Err>: --> CHAP (Challenge Handshake) may be flaky.
WvDial<Notice>: Pid of pppd: 5608
WvDial<*1>: Using interface ppp0
WvDial<*1>: local IP address 172.26.136.149
WvDial<*1>: remote IP address 192.168.100.101
WvDial<*1>: primary DNS address 209.212.97.1
WvDial<*1>: secondary DNS address 10.204.32.2

 NOT edit this file by hand!"
GNOME PPP: STDERR: WvDial<*1>: WvDial: Internet dialer version 1.56
GNOME PPP: STDERR: WvModem<*1>: Cannot get information for serial port.
GNOME PPP: STDERR: WvDial<*1>: Initializing modem.
GNOME PPP: STDERR: WvDial<*1>: Sending: ATZ
GNOME PPP: STDERR: WvDial Modem<*1>: ATZ
GNOME PPP: STDERR: WvDial Modem<*1>: OK
GNOME PPP: STDERR: WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: WvDial Modem<*1>: OK
GNOME PPP: STDERR: WvDial<*1>: Sending: AT+CGDCONT=1,"IP","internet"
GNOME PPP: STDERR: WvDial Modem<*1>: AT+CGDCONT=1,"IP","internet"
GNOME PPP: STDERR: WvDial Modem<*1>: OK
GNOME PPP: STDERR: WvDial<*1>: Modem initialized.
GNOME PPP: STDERR: WvDial<*1>: Sending: ATM1L3DT*99***1#
GNOME PPP: STDERR: WvDial<*1>: Waiting for carrier.
GNOME PPP: STDERR: WvDial Modem<*1>: ATM1L3DT*99***1#
GNOME PPP: STDERR: WvDial Modem<*1>: CONNECT
GNOME PPP: STDERR: WvDial<*1>: Carrier detected. Waiting for prompt.
GNOME PPP: STDERR: WvDial<Notice>: Don't know what to do! Starting pppd and hoping for the best.
GNOME PPP: STDERR: WvDial<Notice>: Starting pppd at Thu May 22 12:30:56 2008
GNOME PPP: STDERR: WvDial<Notice>: Pid of pppd: 6325
GNOME PPP: STDERR: WvDial<*1>: Using interface ppp0
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: local IP address 172.26.51.249
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: remote IP address 192.168.100.101
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: primary DNS address 209.212.97.1
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]
GNOME PPP: STDERR: WvDial<*1>: secondary DNS address 10.204.32.245
GNOME PPP: STDERR: WvDial<*1>: pppd: ��[06][08]0�[06][08]P�[06][08]h�[06][08]��[06][08]،[06][08]��[06][08]

Dial up config file:

WvDial<*1>: WvDial: Internet dialer version 1.56
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ATZ
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: OK
WvDial<*1>: Sending: AT+CGDCONT=1,"IP","internet"
WvDial Modem<*1>: AT+CGDCONT=1,"IP","internet"
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<*1>: Sending: ATM1L3DT*99***1#
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATM1L3DT*99***1#
WvDial Modem<*1>: CONNECT
WvDial<*1>: Carrier detected. Waiting for prompt.
WvDial<Notice>: Don't know what to do! Starting pppd and hoping for the best.
WvDial<Notice>: Starting pppd at Thu May 22 13:43:35 2008
WvDial<Err>: Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
WvDial<Err>: --> PAP (Password Authentication Protocol) may be flaky.
WvDial<Err>: Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
WvDial<Err>: --> CHAP (Challenge Handshake) may be flaky.
WvDial<Notice>: Pid of pppd: 5719
WvDial<*1>: Using interface ppp0
WvDial<*1>: local IP address 10.68.239.46
WvDial<*1>: remote IP address 192.168.100.101
WvDial<*1>: primary DNS address 196.207.36.251
WvDial<*1>: secondary DNS address 196.207.36.254

Here is the Ping Log:

Ping Info:
paul@paul-desktop:~$ ping www.google.com
ping: unknown host www.google.com
paul@paul-desktop:~$ ping 289.85.129.104
ping: unknown host 289.85.129.104

paul@paul-desktop:~$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.100.101 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.15 0.0.0.0 UG 0 0 0 eth0

Yes I have a network cable conected to the pc. I also have a router connected to the network but it doesnt supply Internet only DHCP.
I disconected the cable when I did the 2 nd conection test but with the same results.

Also I noted that when it shows conected the counter runs much faster that it should ie. 5 min in less than 1 min real time??

Thank for all your input!

Paul

Revision history for this message
Best Henning Eggers (henninge) said :
#5

Now I see much clearer!

The option is called "Check default route" because it only sets the default route if none is set. But you have a default route to "192.168.0.15", so none gets set by gnome-ppp.
Remove the existing default route by clearing the entry for the "gateway" in the settings for the cable network connection. If 192.168.0.15 is not an internet gateway, there is no need have it as a default gateway.

This should do it, now gnome-ppp can set the default route once it's connected.

Have fun surfing!
Henning

Revision history for this message
Digitallad (peterpauling) said :
#6

I thought this would be appropriate to send this via my new Ubuntu internet connection!!!
Many thanks for your help and effort!!!You are my hero for the day :) !!!

Now I can get going on my next mission Sink HTC phone with Evolution !!
Thanks again

Paul

Revision history for this message
Henning Eggers (henninge) said :
#7

Digitallad sagte:
> Digitallad confirmed that the question is solved:
> I thought this would be appropriate to send this via my new Ubuntu
> internet connection!!!
> Many thanks for your help and effort!!!You are my hero for the day :) !!!

I am glad I could help out.

> Now I can get going on my next mission Sink HTC phone with Evolution !!
> Thanks again

That is one thing I have to get working on myself. I have a Treo650 and
Bluetooth on my notebook and I hope to be able to sync it to evolution.

Let me know how you do with that.

Cheers,
Henning

Revision history for this message
Henning Eggers (henninge) said :
#8

Hi Paul,
could you do me a favour and click on "This solved my problem" next to my last (best) answer. That gives me more karma ... ;-)

Thanks,
Henning

Revision history for this message
Digitallad (peterpauling) said :
#9

Thanks Henning Eggers, that solved my question.

Revision history for this message
Gabriel Čenkei (gabox) said :
#10

Hi guys,
I have an additional question. I had the same problem and thanks to this post I was able to solve it.
But one thing causes me some headache.
* I use cable/wifi connection mentioned above by default.
* This only works for me when I apply the "sudo route add default gw my_ip"
* Alternately I need to connect sometimes with gprs modem on my nokia 6300.
* Can use my nokia somehow without removing the default gw of my cable/wifi connection?
It is pretty annoying all the time removing it and then puting it back.
* Can you see some workaround for this?

Thanks for reading my post.

Revision history for this message
Henning Eggers (henninge) said :
#11

I will happily look into that but I don't have time right now.

While you wait: Please open a new question for this. Just cut and paste
your comment to an empty question and add a link to the original question:

https://answers.launchpad.net/ubuntu/+question/33895

Revision history for this message
Gabriel Čenkei (gabox) said :
#12

OK. I opened a new question here:
https://answers.launchpad.net/ubuntu/+question/35726

Thank you.