通过 Debian / Raspberry PI 2B 上的 USB GSM/3G 调制解调器实现 T-Mobile 互联网连接

通过 Debian / Raspberry PI 2B 上的 USB GSM/3G 调制解调器实现 T-Mobile 互联网连接

我正在使用pppvia wvdial,脚本看起来像这样(注释行已被删除):

[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

当我wvdial t-mobile让它表现得像可以工作时:

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对于此接口:

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)

因此脚本似乎可以运行,但实际上却不能... 无论如何都无法连接互联网... 无法 ping 通(甚至无法 ip 地址),HTTP 服务器也没有响应100.88.98.150

知道可能是什么问题吗?

顺便说一句,10.*100.*都是本地/保留地址...所以我不太明白...也许我的卡上没有足够的钱?我没有办法检查。

相关内容