EC20版本:
EC20CEHDLG-128-SNNS
固件版本:
EC20CEHDLGR06A07M1G
主机的操作系统是ubuntu20.04,内核版本5.13.0-40-generic
现象:在qmi模式和直接ppp拨号可以正常上网,但切换为ecm模式和rndis模式均无法上网,
ifconfig可以看到usb0的ip:
usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.225.21 netmask 255.255.255.0 broadcast 192.168.225.255
inet6 fe80::8005:d944:489f:d180 prefixlen 64 scopeid 0x20
ether 1e:9d:31:5d:f0:ab txqueuelen 1000 (以太网)
RX packets 441 bytes 38591 (38.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1967 bytes 244278 (244.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
AT+CGREG?返回:
+CGREG: 2,1,“F416”,“AE0AF83”,7
AT+CGPADDR=1返回:
+CGPADDR: 1,“10.120.245.207,36.14.4.92.12.80.109.50.23.109.123.124.79.35.16.55”
ip route命令显示的是:
default via 192.168.225.1 dev usb0 proto dhcp metric 20101
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 metric 425 linkdown
192.168.225.0/24 dev usb0 proto kernel scope link src 192.168.225.21 metric 101
ping外部总是不通:
root@setn-Swift:/home/setn# ping www.baidu.com
ping: www.baidu.com: 域名解析暂时失败
root@setn-Swift:/home/setn# ping 223.5.5.5
PING 223.5.5.5 (223.5.5.5) 56(84) bytes of data.
^C
— 223.5.5.5 ping 统计 —
已发送 7 个包, 已接收 0 个包, 100% 包丢失, 耗时 6144 毫秒
请问一下我该如何解决这个问题? 感谢感谢