EG95: Different IP-address in "ifconfig ppp0" and "AT+CGPADDR"

I using Quectel EG-95 modem, where I’m seeing this issue that, the IP-Address of the active interface (wwan0 or ppp0) with ifconfig it is different than the IP-Address we get with “AT+CGPADDR”. I have seen this same issue with BG-96 modem also.

following are the firmware details:
Quectel EG95
Revision: EG95EXGAR08A05M1G

Quectel BG-96
Revision: BG96MAR04A04M1G

following is the output:

# ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:  P-t-P:  Mask:
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:52 (52.0 B)  TX bytes:58 (58.0 B)

# mmcli -m any --command='AT+CGPADDR'
response: '+CGPADDR: 1,""
+CGPADDR: 2,""'
# ping -I ppp0
PING ( 56 data bytes
64 bytes from seq=0 ttl=115 time=212.077 ms
64 bytes from seq=1 ttl=115 time=106.216 ms
64 bytes from seq=2 ttl=115 time=145.908 ms
64 bytes from seq=3 ttl=115 time=105.358 ms
--- ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 105.358/142.389/212.077 ms

This situation is not ideal when I want to find the active CID from the available CIDs with “AT+CGDCONT?”, in case multiple CIDs are active. How can I fix this issue ?

Hello, I used EG95 module to test, the IP obtained is the same, can you give me the email? I will send you my PPP dialing script, you can try my script.

yes sure my email is

I send the script to you,pls check.