EC200U-CN PPP Unable to get IPv4

Hi ,

We are using EC200U-CN miniPCIe, unable to get connected with internet with a particular Operator

Working (Operator : Airtel)

chat log

abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 30 seconds
send (AT^M)
expect (OK)
AT^M^M
OK
 -- got it
send (ATE0^M)
expect (OK)
^M
ATE0^M^M
OK
 -- got it
send (ATI;+CSQ;+CPIN?;+COPS?;+CGREG?;&D2^M)
expect (OK)
^M
^M
Quectel^M
EC200U^M
Revision: EC200UCNAAR02A10M08^M
^M
+CSQ: 31,99^M
^M
+CPIN: READY^M
^M
+COPS: 0,2,"40445",7^M
^M
+CGREG: 0,1^M
^M
OK
 -- got it
send (AT+CGDCONT=1,"IPV4V6","airtelgprs.com",,0,0^M)
timeout set to 30 seconds
expect (OK)
^M
^M
OK
 -- got it
send (ATD*99***1#^M)
expect (CONNECT)
^M
^M
CONNECT
-- got it

ppp log

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x16021be0>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xcdd549e3> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth chap MD5> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x16021be0>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xcdd549e3>]
sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0xcdd549e3>]
sent [LCP EchoReq id=0x0 magic=0x16021be0]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::858a:547b:d309:2c7a>]
rcvd [LCP EchoRep id=0x0 magic=0xcdd549e3]
rcvd [IPCP ConfReq id=0x1 <addr 192.168.0.1>]
sent [IPCP ConfAck id=0x1 <addr 192.168.0.1>]
rcvd [IPCP ConfNak id=0x1 <addr 100.93.135.109> <ms-dns1 125.22.47.102> <ms-dns2 203.145.160.5>]
sent [IPCP ConfReq id=0x2 <addr 100.93.135.109> <ms-dns1 125.22.47.102> <ms-dns2 203.145.160.5>]
rcvd [IPV6CP ConfReq id=0x1 <addr fe80::fc2b:9a94:0f78:a07b>]
sent [IPV6CP ConfAck id=0x1 <addr fe80::fc2b:9a94:0f78:a07b>]
rcvd [IPV6CP ConfAck id=0x1 <addr fe80::858a:547b:d309:2c7a>]
local  LL address fe80::858a:547b:d309:2c7a
remote LL address fe80::fc2b:9a94:0f78:a07b
Script /lib/netifd/ppp6-up started (pid 5668)
rcvd [IPCP ConfAck id=0x2 <addr 100.93.135.109> <ms-dns1 125.22.47.102> <ms-dns2 203.145.160.5>]
local  IP address 100.93.135.109
remote IP address 192.168.0.1
primary   DNS address 125.22.47.102
secondary DNS address 203.145.160.5
Script /lib/netifd/ppp-up started (pid 5669)
Script /lib/netifd/ppp-up finished (pid 5669), status = 0x1
Script /lib/netifd/ppp6-up finished (pid 5668), status = 0x0

PPP interface:

3g-4gcellular Link encap:Point-to-Point Protocol
          inet addr:100.93.135.109  P-t-P:192.168.0.1  Mask:255.255.255.255
          inet6 addr: 2401:4900:619e:c25e:858a:547b:d309:2c7a/64 Scope:Global
          inet6 addr: fe80::858a:547b:d309:2c7a/128 Scope:Link
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:219 errors:0 dropped:0 overruns:0 frame:0
          TX packets:286 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:57831 (56.4 KiB)  TX bytes:24607 (24.0 KiB)

Not Working (Operator : Jio)

chat

abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 30 seconds
send (AT^M)
expect (OK)
AT^M^M
OK
 -- got it
send (ATE0^M)
expect (OK)
^M
ATE0^M^M
OK
 -- got it
send (ATI;+CSQ;+CPIN?;+COPS?;+CGREG?;&D2^M)
expect (OK)
^M
^M
Quectel^M
EC200U^M
Revision: EC200UCNAAR02A10M08^M
^M
+CSQ: 31,99^M
^M
+CPIN: READY^M
^M
+COPS: 0,0,"RJIO",7^M
^M
+CGREG: 0,1^M
^M
OK
 -- got it
send (AT+CGDCONT=1,"IPV4V6","jionet",,0,0^M)
timeout set to 30 seconds
expect (OK)
^M
^M
OK
 -- got it
send (ATD*99***1#^M)
expect (CONNECT)
^M
^M
CONNECT
 -- got it

ppp logs

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x7c9dc7c5>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x5b0733d0> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth chap MD5> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x7c9dc7c5>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x5b0733d0>]
sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x5b0733d0>]
sent [LCP EchoReq id=0x0 magic=0x7c9dc7c5]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::0879:2815:c07c:9c1e>]
rcvd [LCP EchoRep id=0x0 magic=0x5b0733d0]
rcvd [IPCP ConfReq id=0x1 <addr 192.168.0.1>]
sent [IPCP ConfAck id=0x1 <addr 192.168.0.1>]
rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <addrs 0.0.0.0 0.0.0.0>]
rcvd [IPV6CP ConfReq id=0x1 <addr fe80::7578:8622:24da:aa85>]
sent [IPV6CP ConfAck id=0x1 <addr fe80::7578:8622:24da:aa85>]
rcvd [IPV6CP ConfAck id=0x1 <addr fe80::0879:2815:c07c:9c1e>]
local  LL address fe80::0879:2815:c07c:9c1e
remote LL address fe80::7578:8622:24da:aa85
Script /lib/netifd/ppp6-up started (pid 5671)
rcvd [IPCP ConfRej id=0x2 <addrs 0.0.0.0 0.0.0.0>]
sent [IPCP ConfReq id=0x3]
rcvd [IPCP ConfAck id=0x3]
Could not determine local IP address
Connect time 0.2 minutes.
Sent 230 bytes, received 208 bytes.
sent [IPCP TermReq id=0x4 "Could not determine local IP address"]
rcvd [IPCP TermReq id=0x2 "Unauthorized remote IP address"]
sent [IPCP TermAck id=0x2]
rcvd [IPCP TermAck id=0x4]
Script /lib/netifd/ppp6-up finished (pid 5671), status = 0x0

PPP Interface

3g-4gcellular Link encap:Point-to-Point Protocol
          inet6 addr: 2409:40f2:e:cd44:879:2815:c07c:9c1e/64 Scope:Global
          inet6 addr: fe80::879:2815:c07c:9c1e/128 Scope:Link
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:788 (788.0 B)  TX bytes:1669 (1.6 KiB)

ppp options:

debug
logfile /tmp/ppp
noipdefault
noaccomp
nopcomp
nocrtscts
lock
maxfail 0

Maybe they just don’t support IPv4?

BTW, what makes you use PPP?

Hi

We have tried quectel-CM, But it supports only for EC25, Since PPP was giving issues with this operator (JIO) no IPv4.

is there a option to use quectel-CM for EC200U-CN

I don’t see the need to use any Quectel software.
With the modem you have you can use ECM instead of legacy PPP.
The lack of IPv4 has nothing to do with the modem, it is a feature of the operator.
Jio probably supports 464xlat and DNS64/NAT64, that will give you IPv4 connectivity over IPv6.

If you try the lastest quectel-CM 1.6.5 it should support the EC200U.

We have tried quectel-CM 1.6.5

same simcard, We have tried with EC20 and EC200U, EC20 is getting IPv6, But EC200U-CN is not getting any IPv6

EC20 quectel-CM log

root@ccblr:/home/cc/quectel-cm-1.6.5# ./quectel-CM -s jionet -6 &
[1] 760
[04-16_18:54:25:205] QConnectManager_Linux_V1.6.5
[04-16_18:54:25:207] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x005
[04-16_18:54:25:208] Auto find qmichannel = /dev/cdc-wdm0
[04-16_18:54:25:208] Auto find usbnet_adapter = wwan0
[04-16_18:54:25:208] netcard driver = qmi_wwan, driver version = 6.6.20+rpt-rpi-v8
[04-16_18:54:25:209] Modem works in QMI mode
[04-16_18:54:25:226] /proc/708/fd/7 -> /dev/cdc-wdm0
[04-16_18:54:25:226] /proc/708/exe -> /usr/libexec/qmi-proxy
[04-16_18:54:27:232] cdc_wdm_fd = 7
[04-16_18:54:27:333] Get clientWDS = 20
[04-16_18:54:27:366] Get clientWDS = 21
[04-16_18:54:27:432] Get clientDMS = 1
[04-16_18:54:27:498] Get clientNAS = 4
[04-16_18:54:27:531] Get clientUIM = 1
[04-16_18:54:27:564] Get clientWDA = 1
[04-16_18:54:27:597] requestBaseBandVersion EC20CEFAGR06A15M4G
[04-16_18:54:27:729] requestGetSIMStatus SIMStatus: SIM_READY
[04-16_18:54:27:795] requestGetProfile[pdp:1 index:1] jionet///0/IPV6
[04-16_18:54:27:795] requestSetProfile[pdp:1 index:1] jionet///0/IPV6
[04-16_18:54:27:795] no need to set skip the rest
[04-16_18:54:27:828] requestRegistrationState2 MCC: 405, MNC: 861, PS: Attached, DataCap: LTE
[04-16_18:54:27:861] requestQueryDataCall IPv6ConnectionStatus: DISCONNECTED
[04-16_18:54:27:861] ip addr flush dev wwan0
[04-16_18:54:27:873] ip link set dev wwan0 down
[04-16_18:54:27:926] requestSetupDataCall WdsConnectionIPv6Handle: 0x87264210
[04-16_18:54:28:058] ip link set dev wwan0 up
[04-16_18:54:28:070] ip -6 address flush dev wwan0
[04-16_18:54:28:082] ip -6 address add 2409:40f2:100b:36d4:6c85:c263:3de9:6ca4/64 dev wwan0
[04-16_18:54:28:093] ip -6 route add default dev wwan0
RTNETLINK answers: File exists
[04-16_18:54:48:573] requestRegistrationState2 MCC: 405, MNC: 861, PS: Attached, DataCap: LTE
wwan0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet6 2409:40f2:100b:36d4:6c85:c263:3de9:6ca4  prefixlen 64  scopeid 0x0<global>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 1  bytes 144 (144.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1  bytes 48 (48.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

EC200U-CN quectel-CM log

root@ccblr:/home/cc/quectel-cm-1.6.5# ./quectel-CM -s jionet -6 &
[1] 907
root@ccblr:/home/cc/quectel-cm-1.6.5# [04-16_18:58:57:313] QConnectManager_Linux_V1.6.5
[04-16_18:58:57:315] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x901, bus=0x001, dev=0x00c
[04-16_18:58:57:315] Auto find qmichannel = /dev/ttyUSB0
[04-16_18:58:57:315] Auto find usbnet_adapter = usb0
[04-16_18:58:57:315] netcard driver = cdc_ether, driver version = 6.6.20+rpt-rpi-v8
[04-16_18:58:57:316] Modem works in ECM_RNDIS_NCM mode
[04-16_18:58:57:338] atc_fd = 7
[04-16_18:58:57:339] AT> ATE0Q0V1
[04-16_18:58:57:360] AT< ATE0Q0V1
[04-16_18:58:57:361] AT< OK
[04-16_18:58:58:361] AT> AT+QCFG="usbnet"
[04-16_18:58:58:383] AT< +QCFG: "usbnet",1
[04-16_18:58:58:383] AT< OK
[04-16_18:58:58:384] AT> AT+QNETDEVCTL=?
[04-16_18:58:58:405] AT< +QNETDEVCTL: (0,1,3),(1-7),(0,1)
[04-16_18:58:58:405] AT< OK
[04-16_18:58:58:406] AT> AT+CGREG=2
[04-16_18:58:58:427] AT< OK
[04-16_18:58:58:427] AT> AT+CEREG=2
[04-16_18:58:58:448] AT< OK
[04-16_18:58:58:448] AT> AT+C5GREG=2
[04-16_18:58:58:469] AT< +CME ERROR: 58
[04-16_18:58:58:469] AT> AT+QNETDEVSTATUS=?
[04-16_18:58:58:490] AT< +CME ERROR: 58
[04-16_18:58:58:491] AT> AT+QCFG="NAT"
[04-16_18:58:58:512] AT< +CME ERROR: 3
[04-16_18:58:58:512] AT> AT+CGMR
[04-16_18:58:58:533] AT< EC200UCNAAR02A10M08
[04-16_18:58:58:533] AT< OK
[04-16_18:58:58:533] AT> AT+CPIN?
[04-16_18:58:58:554] AT< +CPIN: READY
[04-16_18:58:58:554] AT< OK
[04-16_18:58:58:555] AT> AT+QCCID
[04-16_18:58:58:578] AT< +QCCID: 89918610400546257602
[04-16_18:58:58:578] AT< OK
[04-16_18:58:58:578] requestGetICCID 89918610400546257602
[04-16_18:58:58:578] AT> AT+CIMI
[04-16_18:58:58:599] AT< 405861156536155
[04-16_18:58:58:599] AT< OK
[04-16_18:58:58:599] requestGetIMSI 405861156536155
[04-16_18:58:58:600] AT> AT+QICSGP=1
[04-16_18:58:58:621] AT< +QICSGP: 3,"jionet","","",0
[04-16_18:58:58:621] AT< OK
[04-16_18:58:58:622] requestGetProfile[1] jionet///0/IPV4V6
[04-16_18:58:58:622] requestSetProfile[1] jionet///0/IPV6
[04-16_18:58:58:622] AT> AT+QICSGP=1,2,"jionet","","",0
[04-16_18:58:58:649] AT< OK
[04-16_18:58:58:650] AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?;+COPS=3,2;+COPS?
[04-16_18:58:58:673] AT< +COPS: 0,0,"RJIO",7
[04-16_18:58:58:675] AT< +COPS: 0,1,"RJIO",7
[04-16_18:58:58:677] AT< +COPS: 0,2,"405861",7
[04-16_18:58:58:677] AT< OK
[04-16_18:58:58:678] AT> AT+CEREG?
[04-16_18:58:58:700] AT< +CEREG: 2,1,"007C","0194331",7
[04-16_18:58:58:700] AT< OK
[04-16_18:58:58:701] AT> at+cops?
[04-16_18:58:58:723] AT< +COPS: 0,2,"405861",7
[04-16_18:58:58:723] AT< OK
[04-16_18:58:58:723] AT> at+qeng="servingcell"
[04-16_18:58:58:749] AT< +QENG: "servingcell","NOCONN","LTE","FDD",405,861,194331,460,2463,5,3,3,7C,-60,-12,-44,69,67
[04-16_18:58:58:749] AT< OK
[04-16_18:58:58:749] AT> AT+QNETDEVCTL?
[04-16_18:58:58:771] AT< +QNETDEVCTL: 0,0,0,0
[04-16_18:58:58:771] AT< OK
[04-16_18:58:58:771] ip addr flush dev usb0
[04-16_18:58:58:784] ip link set dev usb0 down
[04-16_18:58:58:798] AT> AT+CGACT?
[04-16_18:58:58:821] AT< +CGACT: 1,0
[04-16_18:58:58:824] AT< OK
[04-16_18:58:58:824] AT> AT+CGACT=1,1
[04-16_18:58:58:851] AT< OK
[04-16_18:58:58:851] AT> AT+QNETDEVCTL=1,1,1
[04-16_18:58:58:874] AT< OK
[04-16_18:58:58:874] AT> AT+CGPADDR=1
[04-16_18:58:58:896] AT< +CGPADDR: 1,"0:0:0:0:0:0:0:0"
[04-16_18:58:58:896] AT< OK
[04-16_18:58:58:897] try to requestSetupDataCall 5 second later
[04-16_18:58:58:897] AT> at+cops?
[04-16_18:58:58:919] AT< +COPS: 0,2,"405861",7
[04-16_18:58:58:920] AT< OK
[04-16_18:58:58:920] AT> at+qeng="servingcell"
[04-16_18:58:58:946] AT< +QENG: "servingcell","NOCONN","LTE","FDD",405,861,194331,460,2463,5,3,3,7C,-60,-12,-44,68,67
[04-16_18:58:58:946] AT< OK
[04-16_18:58:58:997] AT< +QNETDEVSTATUS: 1
[04-16_18:58:58:997] AT> at+cops?
[04-16_18:58:59:019] AT< +COPS: 0,2,"405861",7
[04-16_18:58:59:020] AT< OK
[04-16_18:58:59:020] AT> at+qeng="servingcell"
[04-16_18:58:59:046] AT< +QENG: "servingcell","NOCONN","LTE","FDD",405,861,194331,460,2463,5,3,3,7C,-60,-12,-44,70,67
[04-16_18:58:59:046] AT< OK
[04-16_18:59:00:014] AT< +QIND: PB DONE
[04-16_18:59:00:785] AT< +CGREG: 1,"007C","0194323",7
[04-16_18:59:00:785] AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?;+COPS=3,2;+COPS?
[04-16_18:59:00:786] AT< +CEREG: 1,"007C","0194323",7
[04-16_18:59:00:808] AT< +COPS: 0,0,"RJIO",7
[04-16_18:59:00:810] AT< +COPS: 0,1,"RJIO",7
[04-16_18:59:00:812] AT< +COPS: 0,2,"405861",7
[04-16_18:59:00:812] AT< OK
[04-16_18:59:00:812] AT> AT+CEREG?
[04-16_18:59:00:834] AT< +CEREG: 2,1,"007C","0194323",7
[04-16_18:59:00:835] AT< OK
[04-16_18:59:00:835] AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?;+COPS=3,2;+COPS?
[04-16_18:59:00:858] AT< +COPS: 0,0,"RJIO",7
[04-16_18:59:00:860] AT< +COPS: 0,1,"RJIO",7
[04-16_18:59:00:861] AT< +COPS: 0,2,"405861",7
[04-16_18:59:00:861] AT< OK
[04-16_18:59:00:862] AT> AT+CEREG?
[04-16_18:59:00:884] AT< +CEREG: 2,1,"007C","0194323",7
[04-16_18:59:00:885] AT< OK
[04-16_18:59:04:885] AT> AT+CGACT?
[04-16_18:59:04:908] AT< +CGACT: 1,1
[04-16_18:59:04:909] AT< OK
[04-16_18:59:04:909] AT> AT+QNETDEVCTL=1,1,1
[04-16_18:59:04:931] AT< OK
[04-16_18:59:04:931] AT> AT+CGPADDR=1
[04-16_18:59:04:953] AT< +CGPADDR: 1,"0:0:0:0:0:0:0:0"
[04-16_18:59:04:953] AT< OK
[04-16_18:59:04:953] try to requestSetupDataCall 10 second later
[04-16_18:59:04:953] AT> at+cops?
[04-16_18:59:04:975] AT< +COPS: 0,2,"405861",7
[04-16_18:59:04:975] AT< OK
[04-16_18:59:04:975] AT> at+qeng="servingcell"
[04-16_18:59:05:001] AT< +QENG: "servingcell","NOCONN","LTE","TDD",405,861,194311,274,38750,40,5,5,7C,-71,-10,-45,79,56
[04-16_18:59:05:001] AT< OK
[04-16_18:59:15:002] AT> AT+CGACT?
[04-16_18:59:15:024] AT< +CGACT: 1,1
[04-16_18:59:15:026] AT< OK
[04-16_18:59:15:026] AT> AT+QNETDEVCTL=1,1,1
[04-16_18:59:15:047] AT< OK
[04-16_18:59:15:047] AT> AT+CGPADDR=1
[04-16_18:59:15:070] AT< +CGPADDR: 1,"0:0:0:0:0:0:0:0"
[04-16_18:59:15:070] AT< OK
[04-16_18:59:15:070] try to requestSetupDataCall 20 second later
[04-16_18:59:15:070] AT> at+cops?
[04-16_18:59:15:092] AT< +COPS: 0,2,"405861",7
[04-16_18:59:15:092] AT< OK
[04-16_18:59:15:093] AT> at+qeng="servingcell"
[04-16_18:59:15:119] AT< +QENG: "servingcell","NOCONN","LTE","TDD",405,861,194311,274,38750,40,5,5,7C,-72,-11,-45,82,55
[04-16_18:59:15:119] AT< OK
[04-16_18:59:17:099] atc_read_thread poll err/hup/inval
[04-16_18:59:17:099] epoll fd = 7, events = 0x0019
[04-16_18:59:17:099] at_close
[04-16_18:59:17:099] atc_read_thread exit
[04-16_18:59:17:100] atchannel: EOF reached
[04-16_18:59:17:101] onReaderClosed
[04-16_18:59:17:101] qmi_main exit

[1]+  Done                    ./quectel-CM -s jionet -6

The SIM only support IPV6. And you can run the quectel-CM like

quectel-CM -6 -d

ipv6 does not support DHCP.
It is the Linux kernel stack that assign the ipv6 address.

Hi @Bean.Wang-Q ,

Yes sim/operator supports only IPv6

out of curiosity, How come EC20 is working fine but EC200U-CN Has a problem to connect to internet, with same SIM/operator

With EC20, the IPv6 address get from QMI message.
But the EC200U can only set up data call with AT command.
Then it is the Linux kernel assign the IPv6 address for the usb0.

Hi

@Bean.Wang-Q, Something odd We have observed in PPP Mode (not using quectel-CM or ECM),
We see a issue in IPCP negotiation, Between EC20 and EC200U with same SIM/Operator. EC20 connects to internet without issues, EC200U fails.

Is there any latest firmware for EC200U-CN miniPCie

please find PPP logs for EC20 and EC200U with same SIM/Operator

EC20:

Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [LCP DiscReq id=0x2 magic=0x2beccce9]**
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [LCP EchoRep id=0x0 magic=0x2beccce9 b0 0f b5 7a]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [IPV6CP ConfReq id=0x0 <addr fe80::0000:0000:0000:0000>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: sent [IPV6CP ConfNak id=0x0 <addr fe80::09df:3926:356b:c9df>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [IPV6CP ConfAck id=0x1 <addr fe80::194d:1771:fd0d:8013>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [IPV6CP ConfReq id=0x1 <addr fe80::09df:3926:356b:c9df>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: sent [IPV6CP ConfAck id=0x1 <addr fe80::09df:3926:356b:c9df>]

EC200U:

Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [LCP EchoRep id=0x0 magic=0xf1e04082]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPCP ConfReq id=0x1 <addr 192.168.0.1>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPCP ConfAck id=0x1 <addr 192.168.0.1>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPCP ConfReq id=0x2 <addrs 0.0.0.0 0.0.0.0>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPV6CP ConfReq id=0x1 <addr fe80::5d7b:b3f9:4689:225a>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPV6CP ConfAck id=0x1 <addr fe80::5d7b:b3f9:4689:225a>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPV6CP ConfAck id=0x1 <addr fe80::d92c:bbaa:979f:265c>]

EC20 full log

Wed Apr 17 11:19:59 2024 daemon.debug pppd[2654]: Script USE_APN=jionet DIALNUMBER=*99***1# /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/3g.chat finished (pid 2655), status = 0x0
Wed Apr 17 11:19:59 2024 daemon.info pppd[2654]: Serial connection established.
Wed Apr 17 11:19:59 2024 daemon.debug pppd[2654]: using channel 1
Wed Apr 17 11:19:59 2024 kern.info kernel: [   54.347015] 3g-4gcellular: renamed from ppp0
Wed Apr 17 11:19:59 2024 daemon.info pppd[2654]: Renamed interface ppp0 to 3g-4gcellular
Wed Apr 17 11:19:59 2024 daemon.info pppd[2654]: Using interface 3g-4gcellular
Wed Apr 17 11:19:59 2024 daemon.notice pppd[2654]: Connect: 3g-4gcellular <--> /dev/ttyUSB2
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb00fb57a>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x2beccce9> <pcomp> <accomp>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: No auth is possible
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: sent [LCP ConfRej id=0x0 <auth chap MD5> <pcomp> <accomp>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xb00fb57a>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2beccce9>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x2beccce9>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: sent [LCP EchoReq id=0x0 magic=0xb00fb57a]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: sent [IPV6CP ConfReq id=0x1 <addr fe80::194d:1771:fd0d:8013>]
**Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [LCP DiscReq id=0x2 magic=0x2beccce9]**
**Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [LCP EchoRep id=0x0 magic=0x2beccce9 b0 0f b5 7a]**
**Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [IPV6CP ConfReq id=0x0 <addr fe80::0000:0000:0000:0000>]**
**Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: sent [IPV6CP ConfNak id=0x0 <addr fe80::09df:3926:356b:c9df>]**
**Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [IPV6CP ConfAck id=0x1 <addr fe80::194d:1771:fd0d:8013>]**
**Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [IPV6CP ConfReq id=0x1 <addr fe80::09df:3926:356b:c9df>]**
**Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: sent [IPV6CP ConfAck id=0x1 <addr fe80::09df:3926:356b:c9df>]**
Wed Apr 17 11:20:00 2024 daemon.notice pppd[2654]: local  LL address fe80::194d:1771:fd0d:8013
Wed Apr 17 11:20:00 2024 daemon.notice pppd[2654]: remote LL address fe80::09df:3926:356b:c9df
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: Script /lib/netifd/ppp6-up started (pid 2677)
Wed Apr 17 11:20:00 2024 daemon.notice netifd: Network device '3g-4gcellular' link is up
Wed Apr 17 11:20:01 2024 daemon.notice netifd: Interface '4gcellular' is now up
Wed Apr 17 11:20:01 2024 daemon.notice netifd: Network alias '3g-4gcellular' link is up
Wed Apr 17 11:20:01 2024 daemon.notice netifd: Interface '4gcellular_6' is enabled
Wed Apr 17 11:20:01 2024 daemon.notice netifd: Interface '4gcellular_6' has link connectivity
Wed Apr 17 11:20:01 2024 daemon.notice netifd: Interface '4gcellular_6' is setting up now
Wed Apr 17 11:20:01 2024 daemon.debug pppd[2654]: Script /lib/netifd/ppp6-up finished (pid 2677), status = 0x0
Wed Apr 17 11:20:02 2024 daemon.warn odhcpd[1455]: No default route present, overriding ra_lifetime!
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: rcvd [IPCP ConfReq id=0x0 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0> <ms-wins 0.0.0.0> <ms-wins 0.0.0.0>]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: sent [IPCP ConfRej id=0x0 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0> <ms-wins 0.0.0.0> <ms-wins 0.0.0.0>]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: sent [IPCP ConfReq id=0x2 <addrs 0.0.0.0 0.0.0.0>]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: rcvd [IPCP ConfReq id=0x1]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: sent [IPCP ConfAck id=0x1]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: rcvd [IPCP ConfRej id=0x2 <addrs 0.0.0.0 0.0.0.0>]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: sent [IPCP ConfReq id=0x3]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: rcvd [IPCP ConfNak id=0x3 <addr 0.0.0.0>]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: sent [IPCP ConfReq id=0x4]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: rcvd [IPCP ConfNak id=0x4 <addr 0.0.0.0>]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: sent [IPCP ConfReq id=0x5]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: rcvd [IPCP ConfNak id=0x5 <addr 0.0.0.0>]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: sent [IPCP ConfReq id=0x6]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: rcvd [IPCP ConfAck id=0x6]
Wed Apr 17 11:20:03 2024 daemon.err pppd[2654]: Could not determine local IP address
Wed Apr 17 11:20:03 2024 daemon.info pppd[2654]: Connect time 0.1 minutes.
Wed Apr 17 11:20:03 2024 daemon.info pppd[2654]: Sent 655 bytes, received 294 bytes.
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: sent [IPCP TermReq id=0x7 "Could not determine local IP address"]
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2654]: rcvd [IPCP TermAck id=0x7]
Wed Apr 17 11:20:13 2024 daemon.notice netifd: Interface '4gcellular_6' is now up
Wed Apr 17 11:20:13 2024 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Wed Apr 17 11:20:13 2024 daemon.info dnsmasq[1]: using nameserver 2405:200:800::11#53

EC200U full Log:

Wed Apr 17 11:20:01 2024 daemon.debug pppd[2778]: Script USE_APN=jionet DIALNUMBER=*99***1# /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/3g.chat finished (pid 2779), status = 0x0
Wed Apr 17 11:20:01 2024 daemon.info pppd[2778]: Serial connection established.
Wed Apr 17 11:20:01 2024 daemon.debug pppd[2778]: using channel 1
Wed Apr 17 11:20:01 2024 kern.info kernel: [   55.944651] 3g-4gcellular: renamed from ppp0
Wed Apr 17 11:20:01 2024 daemon.info pppd[2778]: Renamed interface ppp0 to 3g-4gcellular
Wed Apr 17 11:20:01 2024 daemon.info pppd[2778]: Using interface 3g-4gcellular
Wed Apr 17 11:20:01 2024 daemon.notice pppd[2778]: Connect: 3g-4gcellular <--> /dev/ttyUSB5
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfc286304>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xf1e04082> <pcomp> <accomp>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: No auth is possible
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [LCP ConfRej id=0x1 <auth chap MD5> <pcomp> <accomp>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfc286304>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xf1e04082>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0xf1e04082>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [LCP EchoReq id=0x0 magic=0xfc286304]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPV6CP ConfReq id=0x1 <addr fe80::d92c:bbaa:979f:265c>]
**Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [LCP EchoRep id=0x0 magic=0xf1e04082]**
**Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPCP ConfReq id=0x1 <addr 192.168.0.1>]**
**Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPCP ConfAck id=0x1 <addr 192.168.0.1>]**
**Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]**
**Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPCP ConfReq id=0x2 <addrs 0.0.0.0 0.0.0.0>]**
**Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPV6CP ConfReq id=0x1 <addr fe80::5d7b:b3f9:4689:225a>]**
**Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPV6CP ConfAck id=0x1 <addr fe80::5d7b:b3f9:4689:225a>]**
**Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPV6CP ConfAck id=0x1 <addr fe80::d92c:bbaa:979f:265c>]**
Wed Apr 17 11:20:02 2024 daemon.notice pppd[2778]: local  LL address fe80::d92c:bbaa:979f:265c
Wed Apr 17 11:20:02 2024 daemon.notice pppd[2778]: remote LL address fe80::5d7b:b3f9:4689:225a
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: Script /lib/netifd/ppp6-up started (pid 2801)
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPCP ConfRej id=0x2 <addrs 0.0.0.0 0.0.0.0>]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPCP ConfReq id=0x3]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPCP ConfAck id=0x3]
Wed Apr 17 11:20:02 2024 daemon.err pppd[2778]: Could not determine local IP address
Wed Apr 17 11:20:02 2024 daemon.info pppd[2778]: Connect time 0.1 minutes.
Wed Apr 17 11:20:02 2024 daemon.info pppd[2778]: Sent 154 bytes, received 112 bytes.
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPCP TermReq id=0x4 "Could not determine local IP address"]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPCP TermReq id=0x2 "Unauthorized remote IP address"]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: sent [IPCP TermAck id=0x2]
Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPCP TermAck id=0x4]
Wed Apr 17 11:20:02 2024 daemon.notice netifd: Network device '3g-4gcellular' link is up
Wed Apr 17 11:20:02 2024 daemon.notice netifd: Interface '4gcellular' is now up
Wed Apr 17 11:20:03 2024 daemon.notice netifd: Network alias '3g-4gcellular' link is up
Wed Apr 17 11:20:03 2024 daemon.notice netifd: Interface '4gcellular_6' is enabled
Wed Apr 17 11:20:03 2024 daemon.notice netifd: Interface '4gcellular_6' has link connectivity
Wed Apr 17 11:20:03 2024 daemon.notice netifd: Interface '4gcellular_6' is setting up now
Wed Apr 17 11:20:03 2024 daemon.debug pppd[2778]: Script /lib/netifd/ppp6-up finished (pid 2801), status = 0x0
Wed Apr 17 11:20:03 2024 daemon.warn odhcpd[1579]: No default route present, overriding ra_lifetime!
Wed Apr 17 11:20:14 2024 daemon.notice netifd: Interface '4gcellular_6' is now up
Wed Apr 17 11:20:14 2024 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Wed Apr 17 11:20:14 2024 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Wed Apr 17 11:20:14 2024 daemon.info dnsmasq[1]: read /tmp/hosts/odhcpd - 0 names
Wed Apr 17 11:20:14 2024 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses

It is easy to understand .
By default, if the ppp failed to get ipv4 address, the IPCP return and the pppd exit.

And you can set up ppp ipv6 data call.

Hi @Bean.Wang-Q

PPP Chat script used for both EC20 and EC200U, setting PDP to IPV6 only

ABORT "BUSY"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
TIMEOUT 30
"" AT
OK ATE0
OK ATI;+CSQ;+CPIN?;+COPS?;+CGREG?;&D2
OK AT+CGDCONT=1,"IPV6","jionet",,0,0
TIMEOUT 30
OK "ATD*99#"
CONNECT

EC200 gives an IPV4

Wed Apr 17 11:20:02 2024 daemon.debug pppd[2778]: rcvd [IPCP ConfReq id=0x1 <addr 192.168.0.1>]

EC20 gives a IPV6 Properly

Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [LCP DiscReq id=0x2 magic=0x2beccce9]**
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [LCP EchoRep id=0x0 magic=0x2beccce9 b0 0f b5 7a]
Wed Apr 17 11:20:00 2024 daemon.debug pppd[2654]: rcvd [IPV6CP ConfReq id=0x0 <addr fe80::0000:0000:0000:0000>]

thanks

quectel-pppd.sh

#!/bin/sh

#quectel-pppd devname apn user password
echo "quectel-pppd options in effect:"
QL_DEVNAME=/dev/ttyUSB3
QL_APN=internet
QL_USER=user
QL_PASSWORD=passwd
QL_PDP=1
QL_IP=IPV6  #IP, IPV4, IPV6, IPV4V6
if [ $# -ge 1 ]; then
	QL_DEVNAME=$1	
	echo "devname   $QL_DEVNAME    # (from command line)"
else
	echo "devname   $QL_DEVNAME    # (default)"
fi
if [ $# -ge 2 ]; then
	QL_APN=$2	
	echo "apn       $QL_APN    # (from command line)"
else
	echo "apn       $QL_APN    # (default)"
fi
if [ $# -ge 3 ]; then
	QL_USER=$3	
	echo "user      $QL_USER   # (from command line)"
else
	echo "user      $QL_USER   # (default)"
fi
if [ $# -ge 4 ]; then
	QL_PASSWORD=$4	
	echo "password  $QL_PASSWORD   # (from command line)"
else
	echo "password  $QL_PASSWORD   # (default)"
fi

CONNECT="'chat -s -v ABORT BUSY ABORT \"NO CARRIER\" ABORT \"NO DIALTONE\" ABORT ERROR ABORT \"NO ANSWER\" TIMEOUT 30 \
\"\" AT OK ATE0 OK ATI\;+CSUB\;+CSQ\;+CPIN?\;+COPS?\;+CGREG?\;\&D2 \
OK AT+CGDCONT=$QL_PDP,\\\"$QL_IP\\\",\\\"$QL_APN\\\",,0,0 OK ATD*99***$QL_PDP# CONNECT'"

OPTIONS="noauth debug defaultroute noipdefault novj novjccomp noccp ipcp-accept-local ipcp-accept-remote ipcp-max-configure 30 local lock modem dump nodetach nocrtscts usepeerdns"

if [ "$QL_IP" == "IPV6" ]; then
OPTIONS="$OPTIONS noip +ipv6"
fi
if [ "$QL_IP" == "IPV4V6" ]; then
OPTIONS="$OPTIONS +ipv6"
fi

pppd $QL_DEVNAME 115200 user "$QL_USER" password "$QL_PASSWORD" \
connect "'$CONNECT'" \
disconnect 'chat -s -v ABORT ERROR ABORT "NO DIALTONE" SAY "\nSending break to the modem\n" "" +++ "" +++ "" +++ SAY "\nGood bay\n"' \
$OPTIONS &




You can try it.

sh quectel-pppd.sh /dev/ttyUSB0

Hi @Bean.Wang-Q

We have tried the quectel-pppd.sh, Both on EC20 and EC200U, The observation is EC20 is able provide DNS to host, So Internet is working, But EC200U not able to provide DNS to host so internet is not working, I think this is the issue from the beginning.

it looks like EC200U is not providing DNS to host during IPCP negotiation, Can you please check EC200U-CN firmware,

Current firmware version:

EC200UCNAAR02A13M08

attached logs

EC20 pppd log :

pppd options in effect:
debug debug             # (from /etc/ppp/options)
nodetach                # (from command line)
logfile /tmp/ppp                # (from /etc/ppp/options)
maxfail 1               # (from command line)
ifname 3g-4gcellular            # (from command line)
dump            # (from /etc/ppp/options)
set AUTOIPV6=1          # (from command line)
set EXTENDPREFIX=1              # (from command line)
ip-up-script /lib/netifd/ppp-up         # (from command line)
ip-down-script /lib/netifd/ppp-down             # (from command line)
ipv6-up-script /lib/netifd/ppp6-up              # (from command line)
ipv6-down-script /lib/netifd/ppp-down           # (from command line)
noauth          # (from command line)
/dev/ttyUSB2            # (from command line)
115200          # (from command line)
lock            # (from command line)
connect USE_APN=jionet DIALNUMBER=*99***1# USE_PDP=IPV6 /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/3g.chat            # (from command line)
crtscts         # (from command line)
modem           # (from /etc/ppp/options)
noaccomp                # (from command line)
nopcomp         # (from command line)
lcp-echo-failure 5              # (from command line)
lcp-echo-interval 1             # (from command line)
lcp-echo-adaptive               # (from command line)
noip            # (from /etc/ppp/options)
novj            # (from command line)
novjccomp               # (from /etc/ppp/options)
ipcp-accept-local               # (from /etc/ppp/options)
ipcp-accept-remote              # (from /etc/ppp/options)
ipparam 4gcellular              # (from command line)
noipdefault             # (from /etc/ppp/options)
ipcp-max-configure 30           # (from /etc/ppp/options)
                # (from /etc/ppp/options)
nodefaultroute          # (from command line)
usepeerdns              # (from command line)
+ipv6           # (from command line)
noccp           # (from /etc/ppp/options)
nobsdcomp               # (from command line)
Script USE_APN=jionet DIALNUMBER=*99***1# USE_PDP=IPV6 /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/3g.chat finished (pid 4935), status = 0x0
Serial connection established.
using channel 1
Renamed interface ppp0 to 3g-4gcellular
Using interface 3g-4gcellular
Connect: 3g-4gcellular <--> /dev/ttyUSB2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xcab0f4ce>]
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth pap> <magic 0x30b7b8fa> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x0 <auth pap> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xcab0f4ce>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x30b7b8fa>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x30b7b8fa>]
sent [LCP EchoReq id=0x0 magic=0xcab0f4ce]
sent [IPV6CP ConfReq id=0x1 <addr fe80::ddbb:14e0:714f:9c1b>]
rcvd [LCP DiscReq id=0x2 magic=0x30b7b8fa]
rcvd [LCP EchoRep id=0x0 magic=0x30b7b8fa ca b0 f4 ce]
rcvd [IPV6CP ConfReq id=0x0 <addr fe80::0000:0000:0000:0000>]
sent [IPV6CP ConfNak id=0x0 <addr fe80::6df5:ffeb:c9cb:6e69>]
rcvd [IPV6CP ConfAck id=0x1 <addr fe80::ddbb:14e0:714f:9c1b>]
rcvd [IPV6CP ConfReq id=0x1 <addr fe80::6df5:ffeb:c9cb:6e69>]
sent [IPV6CP ConfAck id=0x1 <addr fe80::6df5:ffeb:c9cb:6e69>]
local  LL address fe80::ddbb:14e0:714f:9c1b
remote LL address fe80::6df5:ffeb:c9cb:6e69
Script /lib/netifd/ppp6-up started (pid 4964)
Script /lib/netifd/ppp6-up finished (pid 4964), status = 0x0
sent [LCP EchoReq id=0x1 magic=0xcab0f4ce]
rcvd [LCP EchoRep id=0x1 magic=0x30b7b8fa ca b0 f4 ce]
sent [LCP EchoReq id=0x2 magic=0xcab0f4ce]
rcvd [LCP EchoRep id=0x2 magic=0x30b7b8fa ca b0 f4 ce]
sent [LCP EchoReq id=0x3 magic=0xcab0f4ce]
rcvd [LCP EchoRep id=0x3 magic=0x30b7b8fa ca b0 f4 ce]
3g-4gcellular Link encap:Point-to-Point Protocol
          inet6 addr: fe80::ddbb:14e0:714f:9c1b/128 Scope:Link
          inet6 addr: 2409:40f2:39:b853:ddbb:14e0:714f:9c1b/64 Scope:Global
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:496 errors:0 dropped:0 overruns:0 frame:0
          TX packets:523 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:82793 (80.8 KiB)  TX bytes:55173 (53.8 KiB)

cat /tmp/resolv.conf.d/resolv.conf.auto

# Interface 4gcellular_6
nameserver 2405:200:800::11

EC200U pppd log

pppd options in effect:
debug debug             # (from /etc/ppp/options)
nodetach                # (from command line)
logfile /tmp/ppp                # (from /etc/ppp/options)
maxfail 1               # (from command line)
ifname 3g-4gcellular            # (from command line)
dump            # (from /etc/ppp/options)
set AUTOIPV6=1          # (from command line)
set EXTENDPREFIX=1              # (from command line)
ip-up-script /lib/netifd/ppp-up         # (from command line)
ip-down-script /lib/netifd/ppp-down             # (from command line)
ipv6-up-script /lib/netifd/ppp6-up              # (from command line)
ipv6-down-script /lib/netifd/ppp-down           # (from command line)
noauth          # (from command line)
/dev/ttyUSB5            # (from command line)
115200          # (from command line)
lock            # (from command line)
connect USE_APN=jionet DIALNUMBER=*99***1# USE_PDP=IPV6 /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/3g.chat            # (from command line)
crtscts         # (from command line)
modem           # (from /etc/ppp/options)
noaccomp                # (from command line)
nopcomp         # (from command line)
lcp-echo-failure 5              # (from command line)
lcp-echo-interval 1             # (from command line)
lcp-echo-adaptive               # (from command line)
noip            # (from /etc/ppp/options)
novj            # (from command line)
novjccomp               # (from /etc/ppp/options)
ipcp-accept-local               # (from /etc/ppp/options)
ipcp-accept-remote              # (from /etc/ppp/options)
ipparam 4gcellular              # (from command line)
noipdefault             # (from /etc/ppp/options)
ipcp-max-configure 30           # (from /etc/ppp/options)
                # (from /etc/ppp/options)
nodefaultroute          # (from command line)
usepeerdns              # (from command line)
+ipv6           # (from command line)
noccp           # (from /etc/ppp/options)
nobsdcomp               # (from command line)
Script USE_APN=jionet DIALNUMBER=*99***1# USE_PDP=IPV6 /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/3g.chat finished (pid 5498), status = 0x0
Serial connection established.
using channel 1
Renamed interface ppp0 to 3g-4gcellular
Using interface 3g-4gcellular
Connect: 3g-4gcellular <--> /dev/ttyUSB5
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x7717efb>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x3882feab> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth chap MD5> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x7717efb>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x3882feab>]
sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x3882feab>]
sent [LCP EchoReq id=0x0 magic=0x7717efb]
sent [IPV6CP ConfReq id=0x1 <addr fe80::04ff:af21:e6bd:da00>]
rcvd [LCP EchoRep id=0x0 magic=0x3882feab]
rcvd [IPV6CP TermAck id=0x1]
sent [LCP EchoReq id=0x1 magic=0x7717efb]
rcvd [LCP EchoRep id=0x1 magic=0x3882feab]
sent [IPV6CP ConfReq id=0x1 <addr fe80::04ff:af21:e6bd:da00>]
rcvd [IPV6CP ConfReq id=0x1 <addr fe80::812f:f981:936e:433d>]
sent [IPV6CP ConfAck id=0x1 <addr fe80::812f:f981:936e:433d>]
rcvd [IPV6CP ConfAck id=0x1 <addr fe80::04ff:af21:e6bd:da00>]
local  LL address fe80::04ff:af21:e6bd:da00
remote LL address fe80::812f:f981:936e:433d
Script /lib/netifd/ppp6-up started (pid 5705)
sent [LCP EchoReq id=0x2 magic=0x7717efb]
rcvd [LCP EchoRep id=0x2 magic=0x3882feab]
sent [LCP EchoReq id=0x3 magic=0x7717efb]
rcvd [LCP EchoRep id=0x3 magic=0x3882feab]
Script /lib/netifd/ppp6-up finished (pid 5705), status = 0x0
sent [LCP EchoReq id=0x4 magic=0x7717efb]
rcvd [LCP EchoRep id=0x4 magic=0x3882feab]
sent [LCP EchoReq id=0x5 magic=0x7717efb]
rcvd [LCP EchoRep id=0x5 magic=0x3882feab]
3g-4gcellular Link encap:Point-to-Point Protocol
          inet6 addr: fe80::4ff:af21:e6bd:da00/128 Scope:Link
          inet6 addr: 2409:40f2:38:f1dd:4ff:af21:e6bd:da00/64 Scope:Global
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:608 (608.0 B)  TX bytes:1738 (1.6 KiB)

cat /tmp/resolv.conf.d/resolv.conf.auto
file is empty

thanks

With pppd you cannot get the IPV6 DNS.
You have to set the DNS manually.

You can add google IPV6 DNS

2001:4860:4860::8888、2001:4860:4860::8844

as the DNS.

Hi @Bean.Wang-Q

EC20 able to give DNS to host with pppd on IPCP negotiation,

EC200U is not able to give DNS to host with pppd on IPCP negotiation,

More over google IPV6 DNS 2001:4860:4860::8888、2001:4860:4860::8844 is not solving the problem, but if I use 2405:200:800::11 which is provided by Operator , im able to ping domains.

This will resolve if EC200U able to give DNS to host during IPCP negotiation, like EC20

Thanks

OK.
In the proccess of the pppd data call, there will not ipv6 DNS from the operator will send to us.
And ipv4 will give us the ipv4 DNS.
Yes as you descibed, you can use the DNS from the operator. And you can get the ipv6 DNS from the AT command such as AT+CGCONTRDP=1.

And there is an useful tool dibbler-client that can help us to get the ipv6 DNS.

http://klub.com.pl/dhcpv6/

dibbler-client
dibbler-client run
dibbler-client satrt
dibbler-client stop
dibbler-client status

/etc/dibbler/client.conf


iface ppp0
{
    stateless
   option dns-server
}

dibbler-client restart