移远官网

EC20 ping特殊网段无响应

型号:EC20F
版本:EC20CEHDLGR06A09M1G
环境:树莓派4B(Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-1104-raspi aarch64)+主板+移动4G物联网卡
拨号方法:quectel-CM
现象:
(1)拨号日志显示拨号成功,有ip与netmask,ping -I wwan0 baidu.com时无响应;
(2)发现规律:拨号出现10.100.x.x网段时,网络可以ping通; 拨号出现10.104.x.x时,网络无法ping通;
(3)相关日志
[03-07_17:01:08:657] QConnectManager_Linux_V1.6.2
[03-07_17:01:08:660] Find /sys/bus/usb/devices/3-1 idVendor=0x2c7c idProduct=0x125, bus=0x003, dev=0x003
[03-07_17:01:08:660] Auto find qmichannel = /dev/cdc-wdm0
[03-07_17:01:08:660] Auto find usbnet_adapter = wwan0
[03-07_17:01:08:660] netcard driver = qmi_wwan, driver version = 22-Aug-2005
[03-07_17:01:08:661] Modem works in QMI mode
[03-07_17:01:08:739] cdc_wdm_fd = 7
[03-07_17:01:08:837] Get clientWDS = 7
[03-07_17:01:08:868] Get clientDMS = 1
[03-07_17:01:08:901] Get clientNAS = 2
[03-07_17:01:08:933] Get clientUIM = 1
[03-07_17:01:08:965] Get clientWDA = 1
[03-07_17:01:08:997] requestBaseBandVersion EC20CEHDLGR06A09M1G
[03-07_17:01:09:125] requestGetSIMStatus SIMStatus: SIM_READY
[03-07_17:01:09:157] requestGetProfile[1] ctnet///0/IPV4V6
[03-07_17:01:09:189] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE
[03-07_17:01:09:221] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[03-07_17:01:09:222] ifconfig wwan0 0.0.0.0
[03-07_17:01:09:241] ifconfig wwan0 down
[03-07_17:01:09:318] requestSetupDataCall WdsConnectionIPv4Handle: 0x86d748f0
[03-07_17:01:09:446] ifconfig wwan0 up
[03-07_17:01:09:462] busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, failing
[03-07_17:01:24:746] File:ql_raw_ip_mode_check Line:137 udhcpc fail to get ip address, try next:
[03-07_17:01:24:746] ifconfig wwan0 down
[03-07_17:01:24:766] echo Y > /sys/class/net/wwan0/qmi/raw_ip
[03-07_17:01:24:767] ifconfig wwan0 up
[03-07_17:01:24:778] busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending select for 10.104.91.111
udhcpc: lease of 10.104.91.111 obtained, lease time 7200
ip: RTNETLINK answers: File exists

(4)尝试AT+CFUN=1,1,等待重新拔号仍然存在该问题

联系人:18629552696(也可加微信),请帮忙指导下,感激不尽

你好

请问你是ping那个网段ping不通?看拨号没有看到异常

你好,ping -I wwan0 baidu.com 这样操作ping不通

1.发现的问题现象规律:拨号日志看起来都是正常
拨号得到的wwan网卡ip是10.100.x.x网段时,ping -I wwan0 baidu.com可以通;拨号得到的wwan网卡ip是10.104.x.x时,ping -I wwan0 baidu.com无响应;

2.从当前日志可以看到网段是10.104.91.111,这样操作ping -I wwan0 baidu.com无响应
这种情况是开关机第一次拨号概率出现的,只要出现一次,只要拨号一直会出现,除非关机重启;

3.放了一晚上没关机,早上看到部分日志,大约放6小时左右看起来自动把ip切换了,这时ping -I wwan0 baidu.com可以正常
[03-08_00:12:45:629] requestRegistrationState2 MCC: 460, MNC: 11, PS: Detached, DataCap: UNKNOW
[03-08_00:12:45:757] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE
[03-08_00:12:45:789] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE
[03-08_00:36:42:089] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE
[03-08_00:36:42:120] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE
[03-08_00:37:00:008] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW
[03-08_00:37:01:416] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: UNKNOW
[03-08_01:13:12:603] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE
[03-08_01:13:12:636] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE
[03-08_01:13:21:659] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE
[03-08_01:25:54:576] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW
[03-08_01:27:46:639] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW
[03-08_01:42:15:398] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: UNKNOW
[03-08_01:42:15:430] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: UNKNOW
[03-08_01:42:16:166] requestRegistrationState2 MCC: 460, MNC: 11, PS: Detached, DataCap: UNKNOW
[03-08_01:42:17:190] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE
[03-08_01:42:38:342] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[03-08_01:42:38:343] ifconfig wwan0 0.0.0.0
[03-08_01:42:38:358] ifconfig wwan0 down
[03-08_01:42:39:398] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE
[03-08_01:42:39:462] requestSetupDataCall WdsConnectionIPv4Handle: 0x86dafcf0
[03-08_01:42:39:591] ifconfig wwan0 up
[03-08_01:42:39:605] busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending select for 10.100.79.21
udhcpc: lease of 10.100.79.21 obtained, lease time 7200
ip: RTNETLINK answers: File exists

你的SIM卡有什么限制吗 可以更换成手机卡对比测试下

这个SIM卡是网上买的电信物联网纯流量卡,包年卡,买了有半年网店也消失了 :joy:
不确定有什么限制,能自己改限制吗?

试了手机联通卡拨号两次,
得到两次ip
10.166.148.235
10.139.219.150都可以ping通百度

限制一般都需要运营商来改 自己改不了 ,建议你更换其他SIM卡测试吧