我使用的EN200N插的专网卡,使用如下命令进行拨号,不论如何设置APN,均能拨号成功,但都不能访问公网或专网,网口能拿到IP地址
quectel-CM -s apn DKH_XLxxxx@cmiotcsy.cq DKH_xxxx_4 1
拨号日志如下
[10-08_16:32:50:860] QConnectManager_Linux_V1.6.4
[10-08_16:32:50:864] Find /sys/bus/usb/devices/1-1.4 idVendor=0x2c7c idProduct=0x6002, bus=0x001, dev=0x004
[10-08_16:32:50:864] Auto find qmichannel = /dev/ttyUSB1
[10-08_16:32:50:864] Auto find usbnet_adapter = usb0
[10-08_16:32:50:865] netcard driver = cdc_ether, driver version = 22-Aug-2005
[10-08_16:32:50:865] Modem works in ECM_RNDIS_NCM mode
[10-08_16:32:50:874] atc_fd = 7
[10-08_16:32:50:874] AT> ATE0Q0V1
[10-08_16:32:50:877] AT< OK
[10-08_16:32:51:877] AT> AT+QCFG="usbnet"
[10-08_16:32:51:880] AT< +QCFG: "usbnet",1
[10-08_16:32:51:880] AT< OK
[10-08_16:32:51:880] AT> AT+QNETDEVCTL=?
[10-08_16:32:51:882] AT< +QNETDEVCTL: (0-3),(1-15),(0-1)
[10-08_16:32:51:882] AT< OK
[10-08_16:32:51:882] AT> AT+CGREG=2
[10-08_16:32:51:883] AT< OK
[10-08_16:32:51:883] AT> AT+CEREG=2
[10-08_16:32:51:885] AT< OK
[10-08_16:32:51:885] AT> AT+C5GREG=2
[10-08_16:32:51:887] AT< ERROR
[10-08_16:32:51:887] AT> AT+QNETDEVSTATUS=?
[10-08_16:32:51:888] AT< ERROR
[10-08_16:32:51:889] AT> AT+QCFG="NAT"
[10-08_16:32:51:890] AT< +QCFG: "nat",1
[10-08_16:32:51:891] AT< OK
[10-08_16:32:51:891] AT> AT+CGMR
[10-08_16:32:51:893] AT< EC200MCNLFR06A03M04
[10-08_16:32:51:893] AT< OK
[10-08_16:32:51:893] AT> AT+CPIN?
[10-08_16:32:51:895] AT< +CPIN: READY
[10-08_16:32:51:895] AT< OK
[10-08_16:32:51:895] AT> AT+QCCID
[10-08_16:32:51:897] AT< +QCCID: 89860417221890636703
[10-08_16:32:51:897] AT< OK
[10-08_16:32:51:897] requestGetICCID 89860417221890636703
[10-08_16:32:51:897] AT> AT+CIMI
[10-08_16:32:51:900] AT< 460043790406703
[10-08_16:32:51:900] AT< OK
[10-08_16:32:51:900] requestGetIMSI 460043790406703
[10-08_16:32:51:900] AT> AT+QICSGP=1
[10-08_16:32:51:902] AT< +QICSGP: 1,"apn","DKHxxxxx@xxxxx","DKHxxxxx_4",1
[10-08_16:32:51:902] AT< OK
[10-08_16:32:51:903] requestGetProfile[1] apn/DKHxxxxx@xxxxx/DKHxxxxx4/1/IPV4
[10-08_16:32:51:903] requestSetProfile[1] apn/DKHxxxxx@xxxxx/DKHxxxxx4/1/IPV4
[10-08_16:32:51:903] no need to set skip the rest
[10-08_16:32:51:903] AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?;+COPS=3,2;+COPS?
[10-08_16:32:51:906] AT< +COPS: 0,0,"CHINA MOBILE",7
[10-08_16:32:51:906] AT< +COPS: 0,1,"CMCC",7
[10-08_16:32:51:906] AT< +COPS: 0,2,"46000",7
[10-08_16:32:51:906] AT< OK
[10-08_16:32:51:907] AT> AT+CEREG?
[10-08_16:32:51:908] AT< +CEREG: 2,1,"828B","F4F0796",7
[10-08_16:32:51:908] AT< OK
[10-08_16:32:51:909] AT> at+cops?
[10-08_16:32:51:911] AT< +COPS: 0,2,"46000",7
[10-08_16:32:51:911] AT< OK
[10-08_16:32:51:911] AT> at+qeng="servingcell"
[10-08_16:32:51:917] AT< +QENG: "servingcell","NOCONN","LTE","TDD",460,00,F4F0796,500,38400,39,5,5,828B,-80,-6,-73,9,0
[10-08_16:32:51:917] AT< OK
[10-08_16:32:51:917] AT> AT+QNETDEVCTL?
[10-08_16:32:51:920] AT< +QNETDEVCTL: 1,1,1,1
[10-08_16:32:51:920] AT< OK
[10-08_16:32:51:920] AT> AT+CGACT?
[10-08_16:32:51:923] AT< +CGACT: 1,1
[10-08_16:32:51:924] AT< OK
[10-08_16:32:51:924] AT> AT+CGPADDR=1
[10-08_16:32:51:926] AT< +CGPADDR: 1,"10.193.101.97"
[10-08_16:32:51:926] AT< OK
[10-08_16:32:51:926] requestGetIPAddress 10.193.101.97
[10-08_16:32:51:927] ifconfig usb0 up
[10-08_16:32:51:940] busybox udhcpc -f -n -q -t 5 -i usb0
udhcpc: started, v1.29.3
udhcpc: sending discover
udhcpc: sending select for 10.193.101.97
udhcpc: lease of 10.193.101.97 obtained, lease time 86400
[10-08_16:32:52:232] deleting routers
[10-08_16:32:52:279] adding dns 211.136.17.107
[10-08_16:32:52:279] adding dns 211.136.20.203
[10-08_16:33:07:341] AT> at+cops?
[10-08_16:33:07:343] AT< +COPS: 0,2,"46000",7
[10-08_16:33:07:343] AT< OK
[10-08_16:33:07:344] AT> at+qeng="servingcell"
[10-08_16:33:07:350] AT< +QENG: "servingcell","NOCONN","LTE","TDD",460,00,F4F0796,500,38400,39,5,5,828B,-79,-5,-73,11,0
[10-08_16:33:07:350] AT< OK
[10-08_16:33:07:350] AT> AT+QNETDEVCTL?
[10-08_16:33:07:353] AT< +QNETDEVCTL: 1,1,1,1
[10-08_16:33:07:353] AT< OK
[10-08_16:33:07:353] AT> AT+CGACT?
[10-08_16:33:07:357] AT< +CGACT: 1,1
[10-08_16:33:07:357] AT< OK
[10-08_16:33:22:372] AT> at+cops?
[10-08_16:33:22:375] AT< +COPS: 0,2,"46000",7
[10-08_16:33:22:375] AT< OK
[10-08_16:33:22:375] AT> at+qeng="servingcell"
[10-08_16:33:22:382] AT< +QENG: "servingcell","NOCONN","LTE","TDD",460,00,F4F0796,500,38400,39,5,5,828B,-78,-6,-73,12,0