Dear community cellular experts,
I’m using a MikroTik device (D53G-5HacD2HnD) with an LTE modem (EG12-EA). The APN is configured with ip-type=auto.
Usually, after connecting, I receive both a public IPv4 address and an IPv6 /64 prefix. Example from the log:
15:01:02 lte1 mbim: processed by handler: connect
15:01:02 lte,info lte1 IPv4: 92.xxx.xxx.xxx, DNS: 10.xxx.xxx.xxx
15:01:02 lte,info lte1 IPv6: 2001:xxxx:xxxx::/64, DNS: fda1:xxxx::x
However, sometimes after a modem reconnect or reboot, I only get either an IPv4 or an IPv6 address. Only one of the two log lines appears. To fix this, I have to disable and re-enable the lte1 interface. Most of the time this brings back both IPv4 and IPv6, but sometimes it just switches from IPv4-only to IPv6-only or vice versa.
I couldn’t find any documentation on how exactly RouterOS receives these addresses - I assume it depends on what the modem reports. I also haven’t found another way to fix this issue besides toggling the interface.
Does anyone know how to solve this issue in a more permanent way?
Thanks in advance for any input!
Export of lte config:
/interface lte
set [ find default-name=lte1 ] allow-roaming=no band=""
/interface lte apn
set [ find default=yes ] ipv6-interface=bridge use-peer-dns=no