root@ZhuoTK:/# brctl addbr br0
brctl: bridge br0: File exists
root@ZhuoTK:/# brctl delbr br0
root@ZhuoTK:/# brctl addbr br0
root@ZhuoTK:/# brctl addif br0 eth0.1

root@ZhuoTK:/# insmod qmi_wwan_q.ko qmap_mode=4
[  365.340000] usbcore: registered new interface driver qmi_wwan_q
[  380.860000] usb 1-1.3: new high-speed USB device number 4 using ehci-platform
[  381.100000] qmi_wwan_q 1-1.3:1.4: cdc-wdm0: USB WDM device
[  381.100000] qmi_wwan_q 1-1.3:1.4: Quectel Android work on RawIP mode
[  381.120000] qmi_wwan_q 1-1.3:1.4: rx_urb_size = 4096
[  381.120000] qmi_wwan_q 1-1.3:1.4 wwan0: register 'qmi_wwan_q' at usb-101c0000.ehci-1.3, RMNET/USB device, fa:24:73:b5:39:a8
[  381.130000] net wwan0: qmap_register_device wwan0_1
[  381.140000] net wwan0: qmap_register_device wwan0_2
[  381.150000] net wwan0: qmap_register_device wwan0_3
[  381.150000] net wwan0: qmap_register_device wwan0_4

root@ZhuoTK:/# brctl addbr br0
root@ZhuoTK:/# brctl addif br0 eth0.1
root@ZhuoTK:/# brctl addif br0 wwan0_2
root@ZhuoTK:/# brctl show
bridge name	bridge id		STP enabled	interfaces
br0		8000.00ca019197b9	no		eth0.1
							                wwan0_2
							                							                
root@ZhuoTK:/# quectel-qmi-proxy &
[04-13_05:18:10:832] Will use cdc-wdm='/dev/cdc-wdm0', proxy='quectel-qmi-proxy0'
[04-13_05:18:10:833] qmi_proxy_init enter
[04-13_05:18:10:833] qmi_proxy_loop enter thread_id 0x77995530
[04-13_05:18:11:833] qmi_proxy_init succful
[04-13_05:18:11:833] local server: quectel-qmi-proxy0 sockfd = 4
[04-13_05:18:11:833] qmi_proxy_server_fd = 4

root@ZhuoTK:/# quectel-CM -n 2 -s 4gnet -b &
[04-13_05:18:20:144] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_05:18:20:146] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x004
[04-13_05:18:20:147] Auto find qmichannel = /dev/cdc-wdm0
[04-13_05:18:20:148] Auto find usbnet_adapter = wwan0
[04-13_05:18:20:148] netcard driver = qmi_wwan_q, driver version = V1.2.0.23
[04-13_05:18:20:148] qmap_mode = 4, qmap_version = 5, qmap_size = 4096, muxid = 0x82, qmap_netcard = wwan0_2
[04-13_05:18:20:149] Modem works in QMI mode
[04-13_05:18:20:150] connect to quectel-qmi-proxy0 sockfd = 7
[04-13_05:18:20:150] cdc_wdm_fd = 7
[04-13_05:18:20:370] requestBaseBandVersion EC25EFAR06A11M4G
[04-13_05:18:20:403] qmap_settings.rx_urb_size = 4096
[04-13_05:18:20:404] qmap_settings.ul_data_aggregation_max_datagrams  = 11
[04-13_05:18:20:404] qmap_settings.ul_data_aggregation_max_size       = 4096
[04-13_05:18:20:404] qmap_settings.dl_minimum_padding                 = 0
[04-13_05:18:20:530] requestGetSIMStatus SIMStatus: SIM_READY
[04-13_05:18:20:530] requestSetProfile[2] 4gnet///0
[04-13_05:18:20:594] requestGetProfile[2] 4gnet///0
[04-13_05:18:20:626] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
[04-13_05:18:20:657] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-13_05:18:20:658] ifconfig wwan0_2 0.0.0.0
[04-13_05:18:20:669] ifconfig wwan0_2 down
[04-13_05:18:21:010] requestSetupDataCall WdsConnectionIPv4Handle: 0x87249650
[  425.100000] net wwan0: link_state 0x1 -> 0x3
[04-13_05:18:21:143] ifconfig wwan0 up
[04-13_05:18:21:156] ifconfig wwan0_2 up
[04-13_05:18:21:168] echo '0xa8ceec7' > /sys/class/net/wwan0_2/bridge_ipv4

root@ZhuoTK:/# ifconfig br0 up

[  450.520000] br0: port 2(wwan0_2) entered forwarding state
[  450.520000] br0: port 1(eth0.1) entered forwarding state
[  450.770000] wwan0_2 PC Mac Address: 00:0e:c6:a6:6c:f1
[  450.790000] wwan0_2 PC Mac Address: 00:0e:c6:a6:6c:f1
[  450.840000] wwan0_2 sip = 10.140.238.199, tip=10.140.238.200, ipv4=10.140.238.199
[  450.950000] wwan0_2 sip = 10.140.238.199, tip=10.140.238.200, ipv4=10.140.238.199
[  450.950000] wwan0_2 sip = 10.140.238.199, tip=10.140.238.200, ipv4=10.140.238.199
[  451.120000] wwan0_2 sip = 0.0.0.0, tip=10.140.238.199, ipv4=10.140.238.199
[  451.180000] wwan0_2 sip = 10.140.238.199, tip=10.140.238.200, ipv4=10.140.238.199
[  452.120000] wwan0_2 sip = 0.0.0.0, tip=10.140.238.199, ipv4=10.140.238.199
[  453.080000] wwan0_2 sip = 10.140.238.199, tip=10.140.238.200, ipv4=10.140.238.199
[  453.120000] wwan0_2 sip = 0.0.0.0, tip=10.140.238.199, ipv4=10.140.238.199
[  454.120000] wwan0_2 sip = 10.140.238.199, tip=10.140.238.199, ipv4=10.140.238.199
[  454.220000] wwan0_2 sip = 10.140.238.199, tip=10.140.238.200, ipv4=10.140.238.199
[  456.200000] wwan0_2 sip = 10.140.238.199, tip=10.140.238.200, ipv4=10.140.238.199
[  458.120000] wwan0_2 sip = 10.140.238.199, tip=10.140.238.200, ipv4=10.140.238.199
[  459.240000] wwan0_2 sip = 10.140.238.199, tip=10.140.238.200, ipv4=10.140.238.199

root@ZhuoTK:/# quectel-CM -n 1 -s cmnet &
[04-13_05:19:21:122] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_05:19:21:125] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x004
[04-13_05:19:21:126] Auto find qmichannel = /dev/cdc-wdm0
[04-13_05:19:21:126] Auto find usbnet_adapter = wwan0
[04-13_05:19:21:127] netcard driver = qmi_wwan_q, driver version = V1.2.0.23
[04-13_05:19:21:127] qmap_mode = 4, qmap_version = 5, qmap_size = 4096, muxid = 0x81, qmap_netcard = wwan0_1
[04-13_05:19:21:127] Modem works in QMI mode
[04-13_05:19:21:128] connect to quectel-qmi-proxy0 sockfd = 7
[04-13_05:19:21:129] cdc_wdm_fd = 7
[04-13_05:19:21:331] requestBaseBandVersion EC25EFAR06A11M4G
[04-13_05:19:21:459] requestGetSIMStatus SIMStatus: SIM_READY
[04-13_05:19:21:459] requestSetProfile[1] cmnet///0
[04-13_05:19:21:522] requestGetProfile[1] cmnet///0
[04-13_05:19:21:554] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
[04-13_05:19:21:585] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[  485.550000] net wwan0: link_state 0x3 -> 0x2
[04-13_05:19:21:592] ifconfig wwan0_1 0.0.0.0
[  485.570000] IPv6: ADDRCONF(NETDEV_UP): wwan0_1: link is not ready
[04-13_05:19:21:610] ifconfig wwan0_1 down
[04-13_05:19:21:682] requestSetupDataCall WdsConnectionIPv4Handle: 0x8725ed70
[  485.780000] net wwan0: link_state 0x2 -> 0x3
[04-13_05:19:21:815] ifconfig wwan0 up
[04-13_05:19:21:826] ifconfig wwan0_1 up
[04-13_05:19:21:845] you are use OpenWrt?
[04-13_05:19:21:845] should not calling udhcpc manually?
[04-13_05:19:21:845] should modify /etc/config/network as below?
[04-13_05:19:21:845] config interface wan
[04-13_05:19:21:845] 	option ifname	wwan0_1
[04-13_05:19:21:845] 	option proto	dhcp
[04-13_05:19:21:845] should use "/sbin/ifstaus wan" to check wwan0_1 's status?
[04-13_05:19:21:846] busybox udhcpc -f -n -q -t 5 -i wwan0_1
[04-13_05:19:21:863] udhcpc (v1.23.2) started
[04-13_05:19:21:923] Sending discover...
[04-13_05:19:21:927] Sending select for 10.141.146.55...
[04-13_05:19:21:932] Lease of 10.141.146.55 obtained, lease time 7200
[04-13_05:19:21:938] udhcpc: ifconfig wwan0_1 10.141.146.55 netmask 255.255.255.240 broadcast +
[04-13_05:19:21:949] udhcpc: setting default routers: 10.141.146.56

root@ZhuoTK:/# ip ro show
default via 10.141.146.56 dev wwan0_1 
10.141.146.48/28 dev wwan0_1  proto kernel  scope link  src 10.141.146.55 
192.168.1.0/24 dev br-lan  proto kernel  scope link  src 192.168.1.251 

root@ZhuoTK:/# 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=86.006 ms
64 bytes from 8.8.8.8: seq=1 ttl=111 time=74.763 ms
64 bytes from 8.8.8.8: seq=2 ttl=111 time=85.501 ms
64 bytes from 8.8.8.8: seq=3 ttl=111 time=74.231 ms
