[GL-MT300N-V2] wifi command without breaking gl-admin panel

Hi, I’d like to know if there’s a way to turn on and off the 2.4Ghz wifi using the command line without breaking the gl-admin-panel web interface.

ifconfig is the correct one you need to use

ifconfig xxx up
ifconfig xxx down

Here is a reference for you 15 Useful "ifconfig" Commands to Configure Network Interface in Linux

Thanks, but when I use the following commands:
ifconfig ra0 up
ifconfig ra0 down
the “Wireless” page of the admin panel is not coherently updated.
The commands work, it’s just the graphical interface which doesn’t show the correct wifi status.

you are correct. This only changes the wifi status, not wifi settings. On the UI it actually show the settings, i.e. enabled or disabled.