![通过 Debian / Raspberry PI 2B 上的 USB GSM/3G 调制解调器实现 T-Mobile 互联网连接](https://linux22.com/image/1454677/%E9%80%9A%E8%BF%87%20Debian%20%2F%20Raspberry%20PI%202B%20%E4%B8%8A%E7%9A%84%20USB%20GSM%2F3G%20%E8%B0%83%E5%88%B6%E8%A7%A3%E8%B0%83%E5%99%A8%E5%AE%9E%E7%8E%B0%20T-Mobile%20%E4%BA%92%E8%81%94%E7%BD%91%E8%BF%9E%E6%8E%A5.png)
我正在使用ppp
via 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.*
都是本地/保留地址...所以我不太明白...也许我的卡上没有足够的钱?我没有办法检查。