* Home :: Get a random password :: Get a multi-word password :: What is my IP? (v4 | v6)
* My projects

How to change the APN on ZTE MF286D running OpenWRT

Tags: howto,mobile,lte

Date: 20230510


I have a ZTE MF286D cat12 LTE router and installed OpenWRT on it. The software is nice, however I had troubles setting the telco operator's APN properly.

The problem lies with this being a 3UK "locked" device and even though we have changed the OS with OpenWRT the modem device still has the old settings.

This can be sorted by interacting with the modem and setting the APN using AT commands.


root@MF286D:~# opkg install picocom # minicom also works, screen too
root@MF286D:~# picocom /dev/ttyUSB1
picocom v3.1
port is        : /dev/ttyUSB1
.
.
.

AT+CGDCONT=1,"IP","new-APN-name" # this is the command you need, replace with your own APN
OK
AT+CGDCONT? # run this command to verify the APN has been set
+CGDCONT: 1,"IP","new-APN-name","0.0.0.0",0,0,0,0
+CGDCONT: 2,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 3,"IPV4V6","hos","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 4,"IPV4V6","sos","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,1

# ctrl-a then ctrl-x to exit picocom
# reboot
        

That's it. Enjoy!

(c)The Nux(tm) ;-)

No CSS, no Javascript, no some HTML.
No ads, no tracking, no cookies.