使用 wvdial 从 USB 3G 调制解调器华为 Ppp0 上无法 Ping 到任何 IP

使用 wvdial 从 USB 3G 调制解调器华为 Ppp0 上无法 Ping 到任何 IP

我在 Banana pi 上安装了 Debian 操作系统,并使用华为 3G 调制解调器通过 wvdial 工具连接到互联网。我还安装了 USB 模式开关,并且我认为调制解调器可以正常用作调制解调器。

现有的设置可以正常工作几个月,直到我决定关闭香蕉 pi 并将其保留大约 3 个月,现在当我尝试使用相同的设置连接到互联网时,它不起作用。

我能够连接到互联网运营商,但无法使用互联网。

当我打字时平 8.8.8.8或者ping -I ppp0 8.8.8.8它不响应任何内容并返回:

--- 8.8.8.8 ping statistics ---
194 packets transmitted, 0 received, 100% packet loss, time 193000ms

我的wvdial.conf看起来像这样:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet.unite.md"
Modem Type = Analog Modem
Studpi Mode = 1
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone = *99#
Username = tmn
Password = tmn

当我跑步时须藤拨号我得到:

--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","internet.unite.md"
AT+CGDCONT=1,"IP","internet.unite.md"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Waiting for prompt.
--> Don't know what to do!  Starting pppd and hoping for the best.
--> Starting pppd at Mon Jan  1 15:55:48 2018
--> Pid of pppd: 4608
--> Using interface ppp0
--> pppd: x▒[02]
--> pppd: x▒[02]
--> pppd: x▒[02]
--> pppd: x▒[02]
--> pppd: x▒[02]
--> local  IP address 100.68.71.79
--> pppd: x▒[02]
--> remote IP address 10.64.64.64
--> pppd: x▒[02]
--> primary   DNS address 172.26.134.20
--> pppd: x▒[02]
--> secondary DNS address 172.26.135.24
--> pppd: x▒[02]

所以看起来它正确连接到 IP 100.68.71.79

当我做一个平 100.68.71.79它工作正常。但在任何其他地址上 ping 都不起作用。

我在 Windows 上检查了具有相同 SIM 卡的调制解调器,它能够连接并上网。

这是输出须藤 ifconfig

ppp0      Link encap:Point-to-Point Protocol
          inet addr:100.68.71.79  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1440  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1245 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:186 (186.0 B)  TX bytes:64913 (63.3 KiB)

输出sudo iptables -L

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

输出须藤路线

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         100.68.71.79    0.0.0.0         UG    0      0        0 ppp0
10.64.64.64     *               255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0

这里是点对点来自 /var/log/syslog 的信息

Jan  1 16:00:22 localhost kernel: [10908.423138] option 1-1.2:1.0: GSM modem (1-port) converter detected
Jan  1 16:00:22 localhost kernel: [10908.424115] usb 1-1.2: GSM modem (1-port) converter now attached to 

ttyUSB0
Jan  1 16:00:22 localhost kernel: [10908.424991] usb-storage 1-1.2:1.1: USB Mass Storage device detected
Jan  1 16:00:22 localhost kernel: [10908.425947] option 1-1.2:1.1: GSM modem (1-port) converter detected
Jan  1 16:00:22 localhost kernel: [10908.426722] usb 1-1.2: GSM modem (1-port) converter now attached to 

ttyUSB1
Jan  1 16:00:22 localhost kernel: [10908.427401] usb-storage 1-1.2:1.2: USB Mass Storage device detected
Jan  1 16:00:22 localhost kernel: [10908.428406] option 1-1.2:1.2: GSM modem (1-port) converter detected
Jan  1 16:00:22 localhost kernel: [10908.429176] usb 1-1.2: GSM modem (1-port) converter now attached to 

ttyUSB2
Jan  1 16:01:02 localhost pppd[4764]: pppd 2.4.5 started by root, uid 0
Jan  1 16:01:02 localhost pppd[4764]: Using interface ppp0
Jan  1 16:01:02 localhost pppd[4764]: Connect: ppp0 <--> /dev/ttyUSB0
Jan  1 16:01:02 localhost pppd[4764]: CHAP authentication succeeded
Jan  1 16:01:02 localhost pppd[4764]: CHAP authentication succeeded
Jan  1 16:01:07 localhost pppd[4764]: Could not determine remote IP address: defaulting to 10.64.64.64
Jan  1 16:01:07 localhost pppd[4764]: local  IP address 100.68.71.79
Jan  1 16:01:07 localhost pppd[4764]: remote IP address 10.64.64.64
Jan  1 16:01:07 localhost pppd[4764]: primary   DNS address 172.26.134.20
Jan  1 16:01:07 localhost pppd[4764]: secondary DNS address 172.26.135.24

相关内容