is there any chance to permanently specific APN-Profile when the device lost power, or unplug/plug the LTE
The power is not stable enough + i need to specificate my own APN rather the default (internet) one
is there any chance to permanently specific APN-Profile when the device lost power, or unplug/plug the LTE
The power is not stable enough + i need to specificate my own APN rather the default (internet) one
I’m not sure I understand the actual issue.
I’ve added an /interface lte apn row with a non-standard apn value, and configured the /interface lte to use that row. It survives both a restart of the LTE modem using /system routerboard usb power-reset and a reboot of the whole router.
What exact steps you take, and what exactly fails after power-on?
Maybe you’ve got multiple LTE modems in the same router? I’ve seen some inconsistencies in the export in this case (there was only [find] with no interface name on both set config rows under /interface lte, so both modems got the same setting unless there is something more under the hood).
this will explain more. I’m losing APN profile after reboot or unplug/plug


What does /interface lte export show before the reboot when it works and after the reboot when it doesn’t? And what is the RouterOS version?
everything is here

You probably use some a USB Modem or adapter.
What ever, this should be configures automaticaly, by using a default APN.
[marcin.przysowa@LDFR] > interface/lte/apn/print
Flags: * - DEFAULT
Columns: APN, ADD-DEFAULT-ROUTE, DEFAULT-ROUTE-DISTANCE
# APN ADD-DEFAULT-ROUTE DEFAULT-ROUTE-DISTANCE
0 * internet yes 2
If this default APN is not used, please be sure you use latest RouterOS and if it still not work proper then write to http://help.mikrotik.com
@SiB yes , im using 4g dongle
If this default APN is not used, please be sure you use latest RouterOS and if it still not work proper then write to http://help.mikrotik.com
the default is used, but that is not what i want. i want to specificate APN and stay there permanently.
v6.49.4
Ahh, then it’s just work proper.
For additional APN who is not default, you can type a scheduler / script etc. to assign your own APN to detected interface.
This is not existing feature, the default is used by default and for not default you must do change manual or do some detection&assign.
what you are saying make sense.
Have you got any script that i can push my own APN?
not as out-of-box.
Step1) How you want detect your lteX device and assign to it proper APN ? When you can do that, then you can write easy IF command to detect that type of interfaces who should be corrected.
Step2 ) Add a scheduler with 3-4 line script.
Done.
AD1).
You not give all info and I still guess that your APN default is used for other device, maybe with mPCIe slot… and that USB devices should have other APN but you have problem with assignation proper one.
In LIT.PNG you show I see that you add second one APN… but if you use only one LTE device then easier is ‘set’ command to modify default APN, not ‘add’ next one.
To me it seems that even though you tell the LTE interface to use the APN profile named telstra using Winbox, this setting has not made it to the configuration. So try setting it using the command line - /interface lte set lte1 apn-profiles=telstra, and see whether a subsequent export shows it, it should now read
/interface lte
set [ find ] apn-profiles=telstra name=lte1
If it does, try to reboot the modem by USB power cycle again; if it doesn’t, it is a bug of storing the configuration.
If the apn-profiles item is not there in the configuration export as above, do what @SiB has softly hinted - instead of adding a new APN profile named telstra, modify the contents of the existing APN profile default. As you only have that USB LTE modem in the system, you don’t need the default profile for any other purpose.
if i modificate the default one ,that is doing what i’m expecting.