Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to establish a connection to the Internet with wvdial. Everything is alright but the problem is I can't ping for example or its IP address.

Here is the output of the wvdial command:

WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
--> Sending: AT+CGDCONT=1,"IP",",wapuser1,wap"
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
CONNECT 21096000
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sat Jan  1 05:11:06 2000
--> Pid of pppd: 3297
--> Using interface ppp0
--> pppd: ([07][08]@[07][08][08][07][08]
--> pppd: ([07][08]@[07][08][08][07][08]
--> pppd: ([07][08]@[07][08][08][07][08]
--> pppd: ([07][08]@[07][08][08][07][08]
--> local  IP address
--> pppd: ([07][08]@[07][08][08][07][08]
--> remote IP address
--> pppd: ([07][08]@[07][08][08][07][08]
--> primary   DNS address
--> pppd: ([07][08]@[07][08][08][07][08]
--> secondary DNS address
--> pppd: ([07][08]@[07][08][08][07][08]

As you can see, I can clearly get an IP, and typing ifconfig ppp0 displays this:

ppp0      Link encap:Point-to-Point Protocol
          inet addr:  P-t-P:  Mask:
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:74 (74.0 B)  TX bytes:107 (107.0 B)

But can't ping anything.

So I know it's not a matter of /etc/resolv.conf.

Here is the contents of my wvdial.conf:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP",",wapuser1,wap"
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *99#
Modem = /dev/ttyACM0
Username = wapuser1
Password = wap
Baud = 460800
Stupid Mode = 1

How can I get this setup to work?

ip addr show:

9: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 3
link/ppp inet peer scope global ppp0

ip route show:

default dev ppp0 scope link dev ppp0 proto kernel scope link src
share|improve this question

migrated from Dec 6 '11 at 22:13

This question came from our site for professional and enthusiast programmers.

You will probably also need to include the output of ip addr show and ip route show. If ping(1) doesn't work, how about non-ICMP packet types? UDP or TCP? – sarnold Dec 6 '11 at 21:59
Thank you here is the output as requested – gimpycpu Dec 7 '11 at 15:34
9: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast st ate UNKNOWN qlen 3 link/ppp inet peer scope global ppp0 and ip route show default dev ppp0 scope link dev ppp0 proto kernel scope link src – gimpycpu Dec 7 '11 at 15:51

You must log in to answer this question.

Browse other questions tagged .