root@OpenWrt:/# lspci
00:00.0 Class 0604: 17cb:1001
01:00.0 Class ff00: 17cb:0306

root@OpenWrt:/# insmod pcie_mhi.ko qmap_mode=4
[   61.988878] mhi_init Quectel_Linux_PCIE_MHI_Driver_V1.3.0.17
[   61.989484] mhi_pci_probe pci_dev->name = 0000:01:00.0, domain=0, bus=1, slot=0, vendor=17CB, device=0306
[   61.994039] mhi_q 0000:01:00.0: BAR 0: assigned [mem 0x48000000-0x48000fff 64bit]
[   62.003208] mhi_q 0000:01:00.0: enabling device (0140 -> 0142)
[   62.191947] [I][mhi_netdev_enable_iface] Prepare the channels for transfer
[   62.224065] [I][mhi_netdev_enable_iface] Exited.
[   62.225619] rmnet_vnd_register_device(rmnet_mhi0.1)=0
[   62.229289] rmnet_vnd_register_device(rmnet_mhi0.2)=0
[   62.234378] rmnet_vnd_register_device(rmnet_mhi0.3)=0
[   62.240039] rmnet_vnd_register_device(rmnet_mhi0.4)=0

root@OpenWrt:/# quectel-qmi-proxy -d /dev/mhi_QMI0 &
[04-13_09:25:12:278] Will use cdc-wdm='/dev/mhi_QMI0', proxy='quectel-qmi-proxy0'
[04-13_09:25:12:297] qmi_proxy_init enter
[04-13_09:25:12:297] qmi_proxy_loop enter thread_id 0xb6e88d44
[04-13_09:25:14:298] qmi_proxy_init succful
[04-13_09:25:14:299] local server: quectel-qmi-proxy0 sockfd = 4
[04-13_09:25:14:299] qmi_proxy_server_fd = 4

root@OpenWrt:/# quectel-CM -n 1 -s cmnet &
[04-13_09:25:32:336] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_09:25:32:337] network interface '' or qmidev '' is not exist
[04-13_09:25:32:338] netcard driver = pcie_mhi, driver version = V1.3.0.17
[04-13_09:25:32:339] qmap_mode = 4, qmap_version = 9, qmap_size = 16384, muxid = 0x81, qmap_netcard = rmnet_mhi0.1
[04-13_09:25:32:340] Modem works in QMI mode
[04-13_09:25:32:341] connect to quectel-qmi-proxy0 sockfd = 7
[04-13_09:25:32:342] cdc_wdm_fd = 7
[04-13_09:25:32:380] requestBaseBandVersion RM500QGLABR10A03M4G
[04-13_09:25:32:382] qmap_settings.rx_urb_size = 16384
[04-13_09:25:32:383] qmap_settings.ul_data_aggregation_max_datagrams  = 11
[04-13_09:25:32:383] qmap_settings.ul_data_aggregation_max_size       = 8192
[04-13_09:25:32:384] qmap_settings.dl_minimum_padding                 = 0
[04-13_09:25:32:394] requestGetSIMStatus SIMStatus: SIM_READY
[04-13_09:25:32:395] requestSetProfile[1] cmnet///0
[04-13_09:25:32:409] requestGetProfile[1] cmnet///0
[04-13_09:25:32:414] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: 5G_NSA
[04-13_09:25:32:418] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-13_09:25:32:419] ifconfig rmnet_mhi0 down
[04-13_09:25:32:448] ifconfig rmnet_mhi0.1 0.0.0.0
[04-13_09:25:32:473] ifconfig rmnet_mhi0.1 down
[04-13_09:25:32:514] requestSetupDataCall WdsConnectionIPv4Handle: 0x2313a2a0
[  121.648172] net rmnet_mhi0: link_state 0x0 -> 0x1
[04-13_09:25:32:525] ifconfig rmnet_mhi0 up
[  121.671210] [I][mhi_netdev_open] Opened net dev interface
[04-13_09:25:32:551] ifconfig rmnet_mhi0.1 up
[04-13_09:25:32:586] you are use OpenWrt?
[04-13_09:25:32:587] should not calling udhcpc manually?
[04-13_09:25:32:587] should modify /etc/config/network as below?
[04-13_09:25:32:587] config interface wan
[04-13_09:25:32:588] 	option ifname	rmnet_mhi0.1
[04-13_09:25:32:588] 	option proto	dhcp
[04-13_09:25:32:589] should use "/sbin/ifstaus wan" to check rmnet_mhi0.1 's status?
[04-13_09:25:32:589] busybox udhcpc -f -n -q -t 5 -i rmnet_mhi0.1
udhcpc: started, v1.28.3
udhcpc: sending discover
udhcpc: sending select for 10.174.91.70
udhcpc: lease of 10.174.91.70 obtained, lease time 7200
[04-13_09:25:32:980] udhcpc: ifconfig rmnet_mhi0.1 10.174.91.70 netmask 255.255.255.252 broadcast +
[04-13_09:25:33:007] udhcpc: setting default routers: 10.174.91.69

root@OpenWrt:/# quectel-CM -n 2 -s 4gnet &
[04-13_09:25:42:976] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_09:25:42:977] network interface '' or qmidev '' is not exist
[04-13_09:25:42:978] netcard driver = pcie_mhi, driver version = V1.3.0.17
[04-13_09:25:42:978] qmap_mode = 4, qmap_version = 9, qmap_size = 16384, muxid = 0x82, qmap_netcard = rmnet_mhi0.2
[04-13_09:25:42:979] Modem works in QMI mode
[04-13_09:25:42:981] connect to quectel-qmi-proxy0 sockfd = 7
[04-13_09:25:42:982] cdc_wdm_fd = 7
[04-13_09:25:43:010] requestBaseBandVersion RM500QGLABR10A03M4G
[04-13_09:25:43:013] qmap_settings.rx_urb_size = 16384
[04-13_09:25:43:014] qmap_settings.ul_data_aggregation_max_datagrams  = 11
[04-13_09:25:43:014] qmap_settings.ul_data_aggregation_max_size       = 8192
[04-13_09:25:43:015] qmap_settings.dl_minimum_padding                 = 0
[04-13_09:25:43:030] requestGetSIMStatus SIMStatus: SIM_READY
[04-13_09:25:43:030] requestSetProfile[2] 4gnet///0
[04-13_09:25:43:046] requestGetProfile[2] 4gnet///0
[04-13_09:25:43:050] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: 5G_NSA
[04-13_09:25:43:054] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-13_09:25:43:055] ifconfig rmnet_mhi0.2 0.0.0.0
[04-13_09:25:43:082] ifconfig rmnet_mhi0.2 down
[04-13_09:25:43:507] requestSetupDataCall WdsConnectionIPv4Handle: 0x2332a780
[  132.641313] net rmnet_mhi0: link_state 0x1 -> 0x3
[04-13_09:25:43:519] ifconfig rmnet_mhi0 up
[04-13_09:25:43:543] ifconfig rmnet_mhi0.2 up
[04-13_09:25:43:570] you are use OpenWrt?
[04-13_09:25:43:570] should not calling udhcpc manually?
[04-13_09:25:43:571] should modify /etc/config/network as below?
[04-13_09:25:43:571] config interface wan
[04-13_09:25:43:571] 	option ifname	rmnet_mhi0.2
[04-13_09:25:43:572] 	option proto	dhcp
[04-13_09:25:43:572] should use "/sbin/ifstaus wan" to check rmnet_mhi0.2 's status?
[04-13_09:25:43:573] busybox udhcpc -f -n -q -t 5 -i rmnet_mhi0.2
udhcpc: started, v1.28.3
udhcpc: sending discover
udhcpc: sending select for 10.163.253.197
udhcpc: lease of 10.163.253.197 obtained, lease time 7200
[04-13_09:25:43:810] udhcpc: ifconfig rmnet_mhi0.2 10.163.253.197 netmask 255.255.255.252 broadcast +
[04-13_09:25:43:836] udhcpc: setting default routers: 10.163.253.198

root@OpenWrt:/# ifconfig rmnet_mhi0.1
rmnet_mhi0.1 Link encap:Ethernet  HWaddr 02:50:F4:00:00:00  
          inet addr:10.174.91.70  Mask:255.255.255.252
          inet6 addr: fe80::50:f4ff:fe00:0/64 Scope:Link
          UP RUNNING NOARP  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:612 (612.0 B)  TX bytes:1380 (1.3 KiB)

root@OpenWrt:/# ifconfig rmnet_mhi0.2
rmnet_mhi0.2 Link encap:Ethernet  HWaddr 02:50:F4:00:00:00  
          inet addr:10.163.253.197  Mask:255.255.255.252
          inet6 addr: fe80::50:f4ff:fe00:0/64 Scope:Link
          UP RUNNING NOARP  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:612 (612.0 B)  TX bytes:684 (684.0 B)

root@OpenWrt:/# ip ro del 8.8.8.8/32 
RTNETLINK answers: No such process
root@OpenWrt:/# ip ro add 8.8.8.8/32 dev rmnet_mhi0.1
root@OpenWrt:/# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=52 time=390.869 ms

root@OpenWrt:/# ip ro del 8.8.8.8/32 
root@OpenWrt:/# ip ro del 8.8.8.8/32 
RTNETLINK answers: No such process
root@OpenWrt:/# ip ro add 8.8.8.8/32 dev rmnet_mhi0.2
root@OpenWrt:/# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=111 time=314.395 ms