I have some more info. When the connection goes down, the two network adresses don’t seem to match:
ifconfig → 100.116.242.183
AT+CGPADDR → 100.72.42.193
When the internet connection is restorted these network adresses do match.
I seem to be able to restore the internet by doing:
ifdown modem_0001
ifup modem_0001
See the commands here below which show the mismatch in ip-adress when the internet via 5G is not working:
BusyBox v1.33.2 (2024-01-23 07:12:18 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 21.02-SNAPSHOT, r15812+879-46b6ee7ffc
-----------------------------------------------------
root@GL-X3000:~# ifconfig rmnet_mhi0
rmnet_mhi0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:100.116.242.183 Mask:255.255.255.240
inet6 addr: fe80::REMOVED_FOR_PRIVACY Scope:Link
UP RUNNING NOARP MTU:1500 Metric:1
RX packets:402666 errors:0 dropped:0 overruns:0 frame:0
TX packets:455135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4396034868 (4.0 GiB) TX bytes:301614968 (287.6 MiB)
root@GL-X3000:~# gl_modem -B 0001:01:00.0 AT AT+CGPADDR
AT+CGPADDR
+CGPADDR: 1,"100.72.42.193","42.2.24.8.0.1.28.238.0.0.0.0.0.0.0.1"
+CGPADDR: 2,"0.0.0.0","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0"
+CGPADDR: 3,"0.0.0.0","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0"
OK
root@GL-X3000:~#