root@OpenWrt:~# ifconfig eth5
eth5 Link encap:Ethernet HWaddr 22:89:84:6A:96:AB
inet addr:192.168.43.100 Bcast:192.168.43.255 Mask:255.255.255.0
inet6 addr: fe80::2089:84ff:fe6a:96ab/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:908 (908.0 B) TX bytes:3848 (3.7 KiB)
root@OpenWrt:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.43.1 0.0.0.0 UG 0 0 0 eth5
192.168.1.0 * 255.255.255.0 U 0 0 0 br-lan
192.168.43.0 * 255.255.255.0 U 0 0 0 eth5
root@OpenWrt:~#
以下是命令信息Port /dev/ttyUSB2, 17:45:40
Press CTRL-A Z for help on special keys
at
OK
AT+QCFG=“usbnet”
+QCFG: “usbnet”,3
OK
AT+QIDNSGIP=1,www.baidu.com
OK
+QIURC: “dnsgip”,0,2,59
+QIURC: “dnsgip”,“220.181.38.149”
+QIURC: “dnsgip”,“220.181.38.150”
AT+CGDCONT?
+CGDCONT: 1,“IP”,“ctnet”,“0.0.0.0”,0,0,0,0
OK
AT+QNETDEVCTL?
+QNETDEVCTL: 1,3,1,0
OK
AT+QGMR
EC801ECNCGR03A08M02
OK
AT+CEREG?
+CEREG: 0,1
OK
AT+QNETDEVCTL?
+QNETDEVCTL: 1,3,1,0
OK
at+cops?
+COPS: 0,0,“CHN-CT”,7
OK
at+qeng=“servingcell”
+QENG: “servingcell”,“NOCONN”,“LTE”,“FDD”,460,11,172F738,273,1850,3,5,5,16A7,-86,-10,-56,10,34
OK
AT+CGPADDR=1
+CGPADDR: 1,“100.68.148.211”
OK
AT+CGACT?
+CGACT: 1,1
OK
AT+CGPADDR
+CGPADDR: 1,“100.68.148.211”
OK
AT+CGDCONT?
+CGDCONT: 1,“IP”,“ctnet”,“0.0.0.0”,0,0,0,0
OK
ati
Quectel
EC801E
Revision: EC801ECNCGR03A08M02
OK