0

I am using ppp via wvdial, script looks like that (commented lines have been removed):

[Dialer t-mobile]
 New PPPD = yes
 Phone = *99#
 Modem = /dev/ttyUSB0
 Modem Type = USB Modem
 Baud = 460800
 ISDN = 0
 Username = “blank”
 Password = “blank”
 Init1 = ATZ
 Init2 = AT+CGDCONT=1,"IP","internet"
 Stupid mode = 1
 Auto DNS = yes

And when I wvdial t-mobile it acts like it would work:

sudo wvdial t-mobile
--> Ignoring malformed input line: "; [Dialer Defaults]"
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT=1,"IP","internet"
AT+CGDCONT=1,"IP","internet"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sat Jun 20 16:26:23 2015
--> Pid of pppd: 3228
--> Using interface ppp0
--> pppd: ▒▒v▒▒o
--> pppd: ▒▒v▒▒o
--> pppd: ▒▒v▒▒o
--> pppd: ▒▒v▒▒o
--> pppd: ▒▒v▒▒o
--> pppd: ▒▒v▒▒o
--> local  IP address 100.88.98.150
--> pppd: ▒▒v▒▒o
--> remote IP address 10.64.64.64
--> pppd: ▒▒v▒▒o
--> primary   DNS address 213.158.199.1
--> pppd: ▒▒v▒▒o
--> secondary DNS address 213.158.199.5
--> pppd: ▒▒v▒▒o

ifconfig for this interface:

ppp0      Link encap:Point-to-Point Protocol
          inet addr:100.88.98.150  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:128 (128.0 B)  TX bytes:185 (185.0 B)

So script seems to be working, but it doesn't... no internet either way... not pinging (even ip adresses), HTTP server is not responding on 100.88.98.150.

Any idea what could be wrong?

Btw. 10.* and 100.* are both local/reserved adresses... so I don't really understand that... maybe I just don't have enough money on card? I have no way to check it.

12
  • Can you ping the gateway and have you set it up as your default route? And why would you expect any HTTP server to exist on 100.88.98.150?
    – qasdfdsaq
    Jun 20, 2015 at 16:22
  • Because Apache is installed. How do I set default route? Jun 20, 2015 at 16:54
  • Are you trying to run a server on your raspberry that you want to access over the internet? If so, that probably won't work - most mobile networks only give you private IPs that are not internet routable.
    – qasdfdsaq
    Jun 20, 2015 at 16:55
  • Yeah I noticed that... still I need the connection from my Raspberry. You are probably right about this default route, but how do I set it up? Sorry, Im not really familiar with that. Jun 20, 2015 at 17:08
  • The command is "route add default gw ww.xx.yy.zz" which in your case ought to be 10.64.64.64. You should also check with the "route" command with no arguments to make sure it's not already there. This information may help with setting pppd to do this automatically: bugs.launchpad.net/ubuntu/+source/ppp/+bug/608372
    – qasdfdsaq
    Jun 20, 2015 at 17:12

0

You must log in to answer this question.

Browse other questions tagged .