in this section i am collecting interesting FAQ.just simply search for what you are looking for.
system package update check-for-updates
and if you want to update
system package update upgrade
- Disconnect the power cord from the unit.
- Hold the reset button and do not release.
- Plug the power cord in and wait until the ACT light starts flashing.
- Now release the button to clear configuration.
- Wait for a few minutes for the router to clear and restore the factory settings
just type this command in the terminal or goto tool profile. /tool profile
we have official way to restore password in mikrotik.if you try to reset mikrotik all configurations will be deleted.
enter following command and then type ip address
/tool traceroute
put [resolve google.com server 8.8.8.8]
after this command you need to reboot the system.
/system ntp client
set enabled=yes server-dns-names=time.google.com,0.pool.ntp.org
just [ctrl+x]
in command line.
There is no password recovery procedure in mikrotik devices.you will need to re-flash the board using NetInstall.
log onto the router and click on "System > Shutdown" or /system shutdown
disconnect it from power, completely, then reconnect a power source to it
Drag and drop lower version then got to System
--> Package List
1. Drag and drop Upper version then reboot
2. System
--> Package List
-->check for updates
1.run the command /system reset-configuration
from command line interface
2.do it from System
--> Reset Configuration
menu in the graphical user interface
- Configuring Mikrotik
- Configuring Mangle
- Configuring Policy-based routing
- Configuring NAT
/ip dhcp-client add interface=ether1 disabled=no
and to see if its working:
ip dhcp-client> print detail
/ip firewall filter
add action=drop chain=forward comment="Windows Update" content=windowsupdate.microsoft.com
add action=drop chain=forward comment="Windows Update" content=*.windowsupdate.microsoft.com
add action=drop chain=forward comment="Windows Update" content=*.update.microsoft.com
add action=drop chain=forward comment="Windows Update" content=*.windowsupdate.com
add action=drop chain=forward comment="Windows Update" content=download.windowsupdate.com
add action=drop chain=forward comment="Windows Update" content=download.microsoft.com
add action=drop chain=forward comment="Windows Update" content=*.download.windowsupdate.com
add action=drop chain=forward comment="Windows Update" content=wustat.windows.com
add action=drop chain=forward comment="Windows Update" content=ntservicepack.microsoft.com
add action=drop chain=forward comment="Windows Update" content=stats.microsoft.com
Note:if a user establish a vpn connection this rule is useless!!!
Note:you can also add more subdomains
check for updates just with one script and install it
after 6.31 version:
/system package update
Check-for-updates once
: delay 1s;
: If ([get status] = "New version is available") do= {install}
before 6.31 version:
System package update
Check-for-updates
: delay 1s;
: if ( [get current-version] != [get latest-version]) do={ upgrade }
save Configuration
/system backup save filename=[backup_filename.backup]
Load Configuration
/system backup load filename=[backup_filename.backup]
- Web Interface: Login > Files > Backup (optional: name & password).
- Winbox: Connect > Files > New > Backup (optional: name & password).
- Terminal: Upload backup file (if needed).
- Terminal: cd /files (navigate to backup location).
- Terminal: /system backup load filename=[backup_filename.backup].
- (Terminal & Winbox): Confirm & enter password (if needed).
- (Terminal & Winbox): Monitor restoration progress.
- (Terminal & Winbox): Download backup for safekeeping.
- (Terminal & Winbox): Reboot (unless using dont-reboot option in terminal).
- Store backup securely (separate from router).
- Access the MikroTik terminal.
- Upload backup file (if needed).
- Use /system backup load filename=[backup_filename.backup].
- Confirm and enter the password (if needed).
- Monitor the restoration process.
- Reboot (unless using dont-reboot option).
backup the config file without encryption.
/system backup save name=MikroTikBackup dont-encrypt=yes Saving system configuration
view config file in terminal
/export file= desired backup name.cfg
There are two main ways to reset the MikroTik configuration, using the command line:
- Software Reset (Preferred):
/system reset-configuration
- Hardware Reset Button: Less precise, consult your device’s manual for specific instructions