hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
root@ZhuoTK:/# quectel-CM -n 1 -m 4 -s cmnet &
[04-13_05:12:07:455] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_05:12:07:458] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x003
[04-13_05:12:07:459] Auto find qmichannel = /dev/qcqmi0
[04-13_05:12:07:459] Auto find usbnet_adapter = usb0
[04-13_05:12:07:467] netcard driver = GobiNet, driver version = V1.6.2.13
[04-13_05:12:07:467] qmap_mode = 4, qmap_version = 5, qmap_size = 4096, muxid = 0x84, qmap_netcard = usb0.4
[04-13_05:12:07:467] Modem works in QMI mode
[04-13_05:12:07:495] Get clientWDS = 7
[04-13_05:12:07:529] Get clientDMS = 8
[04-13_05:12:07:561] Get clientNAS = 9
[04-13_05:12:07:591] Get clientUIM = 10
[04-13_05:12:07:623] requestBaseBandVersion EC25EFAR06A11M4G
[04-13_05:12:07:752] requestGetSIMStatus SIMStatus: SIM_READY
[04-13_05:12:07:752] requestSetProfile[1] cmnet///0
[04-13_05:12:07:817] requestGetProfile[1] cmnet///0
[04-13_05:12:07:849] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
[04-13_05:12:07:881] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-13_05:12:07:881] ifconfig usb0 down
[04-13_05:12:07:892] ifconfig usb0.4 0.0.0.0
[04-13_05:12:07:903] ifconfig usb0.4 down
[04-13_05:12:07:944] requestSetupDataCall WdsConnectionIPv4Handle: 0x87265c40
[   52.020000] net usb0: link_state 0x0 -> 0x8
[04-13_05:12:08:077] ifconfig usb0 up
[04-13_05:12:08:096] ifconfig usb0.4 up
[04-13_05:12:08:116] you are use OpenWrt?
[04-13_05:12:08:116] should not calling udhcpc manually?
[04-13_05:12:08:116] should modify /etc/config/network as below?
[04-13_05:12:08:116] config interface wan
[04-13_05:12:08:116]     option ifname    usb0.4
[04-13_05:12:08:116]     option proto    dhcp
[04-13_05:12:08:116] should use "/sbin/ifstaus wan" to check usb0.4 's status?
[04-13_05:12:08:117] busybox udhcpc -f -n -q -t 5 -i usb0.4
[04-13_05:12:08:134] udhcpc (v1.23.2) started
[04-13_05:12:08:193] Sending discover...
[04-13_05:12:08:197] Sending select for 10.84.241.180...
[04-13_05:12:08:203] Lease of 10.84.241.180 obtained, lease time 7200
[04-13_05:12:08:208] udhcpc: ifconfig usb0.4 10.84.241.180 netmask 255.255.255.248 broadcast +
[04-13_05:12:08:221] udhcpc: setting default routers: 10.84.241.181
 
root@ZhuoTK:/# ifconfig usb0.4
usb0.4    Link encap:Ethernet  HWaddr 02:50:F4:00:00:00  
          inet addr:10.84.241.180  Mask:255.255.255.248
          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:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:612 (612.0 B)  TX bytes:984 (984.0 B)
 
root@ZhuoTK:/# ip ro show
default via 10.84.241.181 dev usb0.4 
10.84.241.176/29 dev usb0.4  proto kernel  scope link  src 10.84.241.180 
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=52 time=99.431 ms