Skip to content

Latest commit

 

History

History
201 lines (121 loc) · 5.97 KB

Mikrotik_FAQ.md

File metadata and controls

201 lines (121 loc) · 5.97 KB

How to ...?

in this section i am collecting interesting FAQ.just simply search for what you are looking for.

How to look for updates?

system package update check-for-updates

and if you want to update

system package update upgrade

How to Mikrotik Factory Reset Guide

  • 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

How to monitor CPU usage in Mikrotik?

just type this command in the terminal or goto tool profile. /tool profile

How to reset password in mikrotik?

we have official way to restore password in mikrotik.if you try to reset mikrotik all configurations will be deleted.

How to Traceroute an ip address?

enter following command and then type ip address

/tool traceroute

How to resolve a domain name in mikrotik shell:

put [resolve google.com server 8.8.8.8]

How to set ntp client using command line?

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

how to get out of safe mode?

just [ctrl+x] in command line.

how to recover forgotten passwords in RouterOS?

There is no password recovery procedure in mikrotik devices.you will need to re-flash the board using NetInstall.

how to shutdown mikrotik router board?

log onto the router and click on "System > Shutdown" or /system shutdown

how to turn ON mikrotik router board?

disconnect it from power, completely, then reconnect a power source to it

how to downgrade RouterOS version?

Drag and drop lower version then got to System--> Package List

how to upgradee RouterOS version?

1. Drag and drop Upper version then reboot

2. System--> Package List -->check for updates

how to reset a RouterOS device

1.run the command /system reset-configurationfrom command line interface

2.do it from System --> Reset Configuration menu in the graphical user interface

how to do load balancing and Link Redundancy in mikrotik?

  • Configuring Mikrotik
  • Configuring Mangle
  • Configuring Policy-based routing
  • Configuring NAT

How to add an interface to dhcp client interfaces?

/ip dhcp-client add interface=ether1 disabled=no

and to see if its working:

ip dhcp-client> print detail

how to block windows update ?

/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

How to update mikrotik?

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 }

How to backup RouterOS Configuration Files?

save Configuration

/system backup save filename=[backup_filename.backup]

Load Configuration

/system backup load filename=[backup_filename.backup]

How to Backup Mikrotik Settings?

  • 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).

How to Restore the Backup Mikrotik Terminal?

  • 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).

How to see RouterOs Configuartion in plain text?

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

How to Reset Mikrotik Configuration Command?

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