Console keys 24
Safe mode does not cover commands that need a reboot, such as resetting the configuration or restoring a backup.
| Shortcut | What it does |
|---|---|
| F1 | Show context helpExplains what can be typed at the cursor position; the login banner points to this key. |
| Tab | Complete the current wordFinishes a command, argument or item name; with several matches it fills in only their shared beginning. |
| TabthenTab | List possible completionsOnce the shared part is typed, another press prints every match in compact form. |
| F3orCtrl+R | Search command historyOpens the console search prompt, which also looks through the RouterOS menus. |
| F4orCtrl+X | Toggle safe modeThe prompt shows SAFE; changes are rolled back if the session ends abnormally. |
| Ctrl+XthenCtrl+X | Clear safe mode action listWorth doing between batches, because safe mode switches itself off when history cannot hold every change. |
| F5orCtrl+L | Repaint the screenThe terminal is reset before it is drawn again. |
| F7 | Toggle HotLock modeCommands complete themselves while you type; a doubled > in the prompt marks the mode. |
| F8 | Show whole multiline inputExpands a multiline command that was recalled from history. |
| Ctrl+C | Interrupt the running commandReturns to the prompt; on a half-typed line it cancels the input and leaves the line empty. |
| Ctrl+D | Log outWorks only on an empty prompt, and leaving this way undoes safe mode changes. |
| Ctrl+K | Delete to end of lineRemoves everything from the cursor rightwards. |
| Ctrl+U | Delete to start of lineRemoves everything in front of the cursor. |
| Ctrl+T | Switch to background task |
| Ctrl+\ | Split line at cursorStarts a new input line at that point; afterwards the cursor sits at the line end. |
| Ctrl+BorLeft | Move back one character |
| Ctrl+ForRight | Move forward one character |
| Ctrl+PorUp | Previous line or history entryInside multiline input it moves up a line; from the top line it recalls the earlier command. |
| Ctrl+NorDown | Next line or history entryInside multiline input it moves down a line; from the bottom line it recalls the following command. |
| Ctrl+AorHome | Go to start of linePressed again at the start, it jumps to the first line of a multiline input. |
| Ctrl+EorEnd | Go to end of linePressed again at the end, it jumps to the last line of a multiline input. |
| Delete | Delete character at cursor |
| Ctrl+HorBackspace | Delete previous character |
| # | Send a chat messageType the text after the symbol; every administrator logged in at that moment sees it. |
General item commands 19
Item numbers are assigned by print and last only for the session. The manual tells script writers to select items with find instead.
| Shortcut | What it does |
|---|---|
add | Add an itemTakes the same properties as set; copy-from clones an existing entry and place-before chooses its position. |
set | Change item propertiesNames the item by number or name, then one or more property=value pairs. |
set 0 !port | Unset a propertyAn exclamation mark in front of the name clears that value on item 0. |
/interface set 0,1,2 mtu=1460 | Change several items at onceA comma-separated list of item numbers applies one change to all of them. |
remove | Remove an item |
enable | Enable an item |
disable | Disable an item |
comment | Comment an itemThe text can later be matched in find and print where expressions. |
move | Reorder list itemsFirst comes what to move, then the entry it lands before; without a target it goes last. |
find | Find matching itemsGives back internal numbers that set, remove and similar commands accept in square brackets. |
/ip route remove [find comment="WAN1"] | Remove items found by commentThe bracketed find runs first and hands its result to remove. |
get | Read a property valueNothing is shown on screen unless the call is wrapped in :put. |
:put [/system resource get version] | Print the RouterOS versionThe pattern for showing a single property: get wrapped in :put. |
edit | Edit a property in an editorMeant for long values such as scripts; a full-screen or one-line editor opens, depending on the terminal. |
reset | Reset properties to defaultsNew values may follow on the same line, so an item is reset and configured together. |
export | Export this menuCovers the current menu with its sub-menus; with a file name the output becomes an .rsc file. |
/undo | Undo the last changeReverses the newest action recorded in system history, whether it came from the CLI or a GUI. |
/redo | Redo an undone changeApplies once more the action that undo just reversed. |
/system history print | List recorded changesEach entry is flagged undoable, redoable or floating-undo; detail shows the exact commands. |
Print and filtering 15
| Shortcut | What it does |
|---|---|
print | Print menu itemsLists everything at the current level and gives items the numbers other commands refer to. |
print detail | Show every propertyHarder to read than the table form, but no parameter is left out. |
print brief | Show the short tableA table holding just the parameters needed most often. |
print count-only | Count the itemsOutputs a single number instead of the list. |
print terse | Print compact outputA machine-friendly layout meant for parsing more than for reading. |
print without-paging | Print without pausingLong output arrives in one piece instead of halting at every screenful. |
/ip route print where interface="ether1" | Filter by property valueOnly entries for which the expression holds are listed. |
/ip arp print order-by=address | Sort the outputA minus before the name sorts descending; three sort properties is the maximum. |
/ip service print proplist=name,port,available-from where !dynamic | Choose the columnsproplist names the properties to show; the where part leaves out dynamic entries. |
/user print from=admin | Print one named itemRestricts the output to the item given, here the admin user. |
/interface print interval=2 | Refresh output periodicallyReprints the list every two seconds, for changes that follow cannot track. |
/log print follow | Print and keep watchingShows what is stored, then every new entry as it appears, until Ctrl + C. |
/log print follow-only | Watch new entries onlySkips what is already stored and waits for fresh entries until Ctrl + C. |
:put [/ip address print as-value] | Return output as an arrayFor scripts: the items come back as arrays of names and values, not as screen text. |
/ip route print count-only interval=1 where interface="ether1" | Combine print parametersSeveral parameters may follow print; this one recounts the ether1 routes each second. |
Export and import 14
An export never contains system user passwords, installed certificates or SSH keys, with or without show-sensitive.
| Shortcut | What it does |
|---|---|
/export | Export the whole configurationFrom the root menu it prints every menu as a script; user passwords, certificates and SSH keys are never included. |
/export file=backup-step3 | Export everything to a fileThe script is stored with the .rsc extension among the router files instead of being printed. |
/ip address export file=address | Export one menu to a fileAn export run inside a menu covers just that menu and whatever lies below it. |
/export path=/ip/firewall,!/ip/firewall/nat | Export selected menusLists the menus to include; an exclamation mark excludes one, here the NAT rules. |
ip firewall address-list export where list=mylist | Export part of a menuFrom RouterOS 7.13 a where clause limits the export to matching entries. |
export compact | Export changed settings onlyAlready the default behaviour, so a plain export gives identical output. |
export verbose | Export including defaultsEvery parameter and item is written, not just what was changed. |
export terse | Export one command per lineEach line is a full command that carries its own menu path. |
export show-sensitive | Include passwords and keysWithout this parameter sensitive values stay out of the output. |
import address.rsc | Run a script fileRoot-menu command that executes every console command found in the .rsc file. |
import test.rsc verbose=yes dry-run | Test a script without applyingErrors are reported with their line and the configuration stays untouched; dry-run needs verbose mode. |
import verbose=yes | Import line by lineEach line is executed on its own and the import halts at the first problem, showing where it is. |
import from-line | Start at a given lineTakes a line number and, like dry-run, works in verbose mode only. |
import file-name | Name the script fileParameter for the .rsc script; the manual example passes the name directly after import. |
Backup and reset 9
| Shortcut | What it does |
|---|---|
/system backup save name=test | Save a binary backupCreates test.backup among the router files; the manual example also sets a password. |
/system backup load name=test | Restore a binary backupAsks for the password and a confirmation, then restores the configuration and reboots. |
/file print | List files on the routerWhere saved backups and exports show up with their type, size and creation time. |
/system reset-configuration | Reset to default configurationWipes everything including the login, reboots and loads the factory defaults; a backup file is stored first. |
/system reset-configuration no-defaults=yes | Reset to an empty configurationThe step the manual prescribes before importing a script that replaces an existing setup. |
/system reset-configuration no-defaults=yes skip-backup=yes | Reset without automatic backupA hard reset: no default settings come back and no backup file is written beforehand. |
reset-configuration keep-users | Keep users during resetExisting accounts stay in place while everything else is cleared. |
reset-configuration run-after-reset | Run a script after resetLoads your own .rsc file once the wipe is done; it has to finish within two minutes. |
reset-configuration caps-mode | Reset into CAPs modeStarts the caps-mode script as soon as the reset has finished. |
Addresses, routes and DNS 9
| Shortcut | What it does |
|---|---|
/ip address print | List IP addressesShows each address with its network and interface, flagged when disabled, invalid or dynamic. |
/ip address add address=192.168.88.1/24 interface=bridge1 | Add an IP addressAssigns the address with its prefix length to the named interface, here the LAN bridge. |
/ip route print | Show the routing tableFlags mark every route as active, dynamic, static or connected. |
/ip route add gateway=1.2.3.1 | Add a default routeThe static-IP setup creates its default route through the ISP gateway this way. |
/ip dns set servers=1.1.1.1,9.9.9.9 | Set upstream DNS serversThe router tries these before the dynamic servers it received from the ISP. |
/ip dns set allow-remote-requests=yes | Answer DNS queries from clientsOpens port 53 on every router address, so block it from the internet side. |
/ip dns static add name=nas.lan address=192.168.88.20 | Add a local DNS nameA static entry is answered by the router itself, handy for devices in your network. |
/ip dns cache print | Show cached DNS answersAnswers stay cached for their time to live. |
/ip dns cache flush | Empty the DNS cacheRun it after changing a record so old answers are not served. |
DHCP 8
| Shortcut | What it does |
|---|---|
/ip dhcp-client add interface=ether1 | Add a DHCP clientTypical for the port facing the ISP: address and network settings arrive from the upstream server. |
/ip dhcp-client print detail | Show the DHCP client leaseDisplays the lease that was obtained and the settings that came with it. |
/ip dhcp-server setup | Run the DHCP server wizardPrompts for each setting in turn and proposes values to confirm or change. |
/ip pool add name=dhcp_pool0 ranges=192.168.88.2-192.168.88.254 | Create an address poolHolds the addresses to hand out; leave the router address outside the range. |
/ip dhcp-server network add address=192.168.88.0/24 dns-server=192.168.88.1 gateway=192.168.88.1 | Define DHCP network settingsClients in this subnet are told the gateway and DNS server given here. |
/ip dhcp-server add address-pool=dhcp_pool0 interface=bridge1 name=dhcp1 | Add a DHCP serverLast manual step: the server runs on the interface and leases from the pool. |
/ip dhcp-server lease print | List DHCP leasesThe D flag marks dynamic leases, and the status column shows which are bound. |
/ip dhcp-server lease make-static 0 | Make a lease staticConverts dynamic lease number 0; a rate limit can be set on static leases only. |
Firewall and NAT 14
| Shortcut | What it does |
|---|---|
/ip firewall filter print | List firewall filter rulesNumbers each rule and flags the disabled, invalid and dynamic ones. |
/ip firewall filter add action=accept chain=input connection-state=established,related | Accept established connectionsThe manual opens every rule set with it, so known connections are accepted first. |
/ip firewall address-list add address=192.168.88.2-192.168.88.254 list=allowed_to_router | Create an address listPuts an address range under one name that filter rules can match. |
/ip firewall filter add action=accept chain=input src-address-list=allowed_to_router | Accept a trusted address listOnly sources on the named list may open new connections to the router. |
/ip firewall filter add action=accept chain=input protocol=icmp | Accept ICMP to the routerKeeps ping to the router working from any address. |
/ip firewall filter add action=drop chain=input | Drop all other inputGoes last: whatever the earlier input rules did not accept is discarded. |
/ip firewall filter add chain=input in-interface-list=WAN protocol=udp dst-port=53 action=drop | Drop DNS queries from WANKeeps the router from being an open resolver; a second rule does it for protocol=tcp. |
/ip firewall filter add chain=forward action=fasttrack-connection connection-state=established,related | FastTrack established connectionsBelongs at the top of the filter, and needs the matching accept rule after it. |
/ip firewall filter add chain=forward action=accept connection-state=established,related | Accept established forwardingThe companion that the FastTrack rule requires. |
/ip firewall filter add chain=forward place-before=[find where comment=CommentX] | Insert a rule before anotherLooks the target up by its comment and puts the new rule in front of it. |
/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade | Masquerade outgoing trafficPrivate source addresses are replaced by the public one; name the real WAN interface, such as a PPPoE or LTE one. |
/ip firewall nat add chain=srcnat out-interface-list=WAN ipsec-policy=out,none action=masquerade | Masquerade by interface listUses the WAN list in place of one port name, which the manual calls more flexible. |
/ip firewall nat add chain=srcnat src-address=10.0.0.0/24 action=src-nat to-addresses=172.16.16.1 out-interface=WAN | Source NAT to a fixed addressHides the 10.0.0.0/24 network behind one public IP; masquerade suits addresses that change. |
/ip firewall nat add chain=dstnat action=dst-nat protocol=tcp dst-port=3389 to-addresses=192.168.88.254 to-ports=3389 | Port-forward to a LAN hostSends incoming TCP 3389 to the internal PC; a strict filter must also allow it in the forward chain. |
Interfaces and bridges 14
| Shortcut | What it does |
|---|---|
/interface print | List interfacesShows name, type and MTU with flags for disabled, dynamic and running. |
/interface print stats | Show interface countersByte and packet totals per interface, plus transmit queue drops. |
/interface print stats-detail | Show detailed interface countersAdds link-down counts and the times of the last link changes. |
/interface monitor-traffic [find] | Watch live traffic ratesPacket and bit rates of every interface side by side, refreshed in real time. |
/interface set X disabled=yes | Disable an unused interfaceX stands for the number the interface has in the print output. |
/interface list add name=WAN | Create an interface listA named group of interfaces that NAT and firewall rules can refer to. |
/interface list member add list=WAN interface=ether1 | Add an interface to a listEvery external interface goes into the WAN list. |
/interface bridge add name=bridge1 | Create a bridgeFirst step of a manual setup, before ports and an IP address are attached. |
/interface bridge port add interface=ether2 bridge=bridge1 | Add a port to a bridgeMakes ether2 a member; wireless interfaces need the same step to give LAN access. |
/interface bridge port print | List bridge portsFlags show which ports are inactive, dynamic or hardware-offloaded. |
/interface bridge port move 3 0 | Move a bridge port entryEntry 3 is placed in front of entry 0. |
/interface bridge host print where !local | Show learned MAC addressesThe host table without local entries; with VLAN filtering on, each address also shows its VLAN ID. |
/interface bridge vlan print | Show the bridge VLAN table |
/interface bridge set bridge1 vlan-filtering=yes | Enable VLAN filteringDo it last, once every VLAN setting is in place. |
System 23
| Shortcut | What it does |
|---|---|
/system resource print | Show system resourcesUptime, RouterOS version, memory and disk usage in one overview. |
/system identity set name=Riga-Office-GW | Set the router nameThe name appears in the prompt, in neighbor discovery and as the SNMP system name; 64 characters at most. |
/system identity print | Show the router name |
/system clock print | Show date and timeAlso reports the time zone, the GMT offset in use and whether daylight saving is active. |
/system clock set date=2026-10-01 | Set the date manuallySet the date first; the time goes in a command of its own. |
/system clock set time=10:00:00 | Set the time manuallyRun it after the date command, never combined with it. |
/system clock set time-zone-autodetect=no time-zone-name=Europe/Riga | Set the time zoneSwitches automatic detection off and selects a named zone, the choice the manual prefers. |
/system ntp client set enabled=yes servers=192.168.88.1 | Enable the NTP clientThe router clock is then synchronized with the listed server or servers. |
/system package print | List installed packagesFlags mark disabled packages and those available on the server but not downloaded. |
/system package update set channel=stable | Choose the update channelThe same command sets the download protocol, IP version and certificate check. |
/system package update check-for-updates | Check for a new versionQueries the MikroTik upgrade servers on the configured channel. |
/system package update install | Install the available updateThe scheduled script from the manual runs it when the status reports a new version. |
/system package update install ignore-missing | Update despite missing packagesSkips a package whose upgrade file is no longer available. |
/system package enable gps,zerotier,container | Enable extra packagesOnly scheduled at first; apply-changes carries it out. |
/system package uninstall gps,container | Uninstall packagesScheduled like other package changes and carried out by apply-changes. |
/system package unschedule container | Cancel a scheduled package changeWithdraws a pending uninstall or disable before it is applied. |
/system package apply-changes | Apply package changesAsks for confirmation, then reboots to carry out everything that was scheduled. |
/system routerboard upgrade | Upgrade the bootloaderRecommended after each RouterOS update; a reboot completes it. |
/system reboot | Reboot the routerAsks for confirmation; uploaded package files are installed during the restart. |
/system scheduler add name=nightly-backup start-time=03:00:00 interval=1d on-event=nightly-backup | Schedule a daily scriptRuns the script called nightly-backup every day at 03:00. |
/system scheduler print detail | List scheduled tasksnext-run tells when an entry fires next, and run-count how often it ran since startup. |
/system sup-output | Create a supout.rif fileWrites the diagnostic file for MikroTik support and reports progress in percent. |
/tool fetch url=https://download.mikrotik.com/routeros/7.16.1/routeros-7.16.1-arm.npk | Download a file to the routerFetch can pull packages from the MikroTik site, for example ahead of a local upgrade. |
Users and services 19
| Shortcut | What it does |
|---|---|
/user add name=myname password=mypassword group=full | Add an administratorCreate an account with a name of your own before retiring the default admin. |
/user disable admin | Disable the default adminOne of two ways the manual retires the default account once a custom one exists. |
/user remove admin | Delete the default adminBest done after the replacement administrator has been verified to work. |
/user group add name=managers policy=ssh,read,write,password | Create a user groupLists the policies its members get; users are then added to the group. |
/user set john password="NewStrongPass456" | Change another user passwordThe administrator route; users change their own with the password command. |
/password | Change your own passwordRuns interactively or on one line; the group needs the password policy. |
/user expire-password john | Force a password changeThe user must choose a new password at the next login. |
/user set john address=192.168.88.0/24 | Restrict a user by source addressLogins for this account are accepted from the given prefix only. |
/user ssh-keys import public-key-file=mykey.pub user=john | Import an SSH public keyOnce a key is assigned, SSH stops accepting the password for that user. |
/user active print | Show logged-in sessionsLists who is connected, from which address and through which service. |
/user active remove [find name=john-remote] | Close a user sessionfind selects the sessions of that user and remove ends them. |
/ip service print where dynamic | Show listening portsDynamic entries are the ports that features listen on and the open connections to services. |
/ip service disable telnet,ftp,www,api | Disable unused servicesSeveral management services can be named in one comma-separated list. |
/ip service set ssh port=2200 | Change the SSH portA non-default port reduces exposure to automated brute-force attempts. |
/ip service set winbox available-from=192.168.88.0/24 | Limit a service by sourceFirewall rules remain the preferred control, since they stop a connection before it reaches the service. |
/ip ssh set strong-crypto=yes | Require strong SSH cryptoThe server stops offering the weaker ciphers, MACs and SHA-1 key exchanges. |
/tool mac-server set allowed-interface-list=none | Close MAC server accessFirst of three commands the manual gives for shutting MAC-Telnet, MAC-WinBox and MAC-Ping in production. |
/ip neighbor discovery-settings set discover-interface-list=none | Turn off neighbor discoveryStops the MikroTik discovery protocol on all interfaces. |
/system ssh 192.168.88.1 user=lala | Open SSH to another hostWithout user= the router logs in under the name of the current session. |
Diagnostics 19
| Shortcut | What it does |
|---|---|
/ping 8.8.8.8 | Ping an addressThe first connectivity test after WAN setup; a ping to a name then checks DNS. |
/ping 1.1.1.1 count=3 | Send a fixed number of pingsStops after three requests and sums up sent, received, loss and round-trip times. |
/tool ping address=159.148.147.251 | Ping with the full tool pathThe form the upgrade guide uses to check that the update server answers. |
/ping 198.51.100.10 size=1500 do-not-fragment count=2 | Test the path MTUsize counts the whole IP packet; with do-not-fragment an oversized packet is refused, not split. |
/ping 192.168.2.10 src-address=192.168.88.1 count=3 | Ping from a chosen sourceFor tests that must come from a LAN address, for example through an IPsec tunnel. |
/ping 192.168.88.20 arp-ping=yes interface=bridge count=2 | ARP ping a local hostFinds hosts that drop ICMP: the reply shows the MAC address that answered. |
/tool traceroute 198.51.100.10 count=3 | Trace the path to a hostThree rounds of probes with loss and round-trip statistics for each hop. |
/tool traceroute server.example.com count=3 use-dns=yes | Trace with host namesEach hop appears under its reverse DNS name where a record exists. |
/tool traceroute 198.51.100.10 size=1500 do-not-fragment count=1 | Find the hop with smaller MTUThe router that cannot pass the full-size probe replies with a fragmentation error. |
/tool traceroute 198.51.100.10 src-address=192.168.88.1 | Trace from a chosen sourceShows the path as traffic from that network sees it, routing rules included. |
/tool torch bridge | Watch traffic on an interfaceLive flows grouped by address, protocol and port with their rates, until Ctrl + C. |
/tool torch bridge src-address=192.168.88.21/32 | Watch one hostOn a LAN interface, select hosts with src-address, the far side of the interface. |
/tool torch bridge ip-protocol=tcp port=443 | Watch one protocol or portport matches source or destination and takes a single value, not a list. |
/tool sniffer quick interface=ether1 port=bootps,bootpc duration=10s | Watch packets livePrints matching packets as they arrive without touching the sniffer settings; Q ends it early. |
/tool sniffer start interface=bridge ip-address=192.168.88.50/32 | Start a packet captureAlways give a filter: an unfiltered capture takes everything and quickly fills the memory. |
/tool sniffer stop | Stop the captureCaptured packets stay in memory for ten minutes or until the next start. |
/tool sniffer save file-name=capture.pcap | Save the capture to a fileThe file is pcapng whatever its extension, ready for Wireshark. |
:put [:resolve mikrotik.com] | Resolve a name on the routerTests the DNS lookup of the router itself. |
/system telnet 159.148.147.251 port=443 | Test a TCP portA Connected line means the port is reachable; here it checks the update server. |
Logs 10
| Shortcut | What it does |
|---|---|
/log print | Show the logEntries held in memory, oldest first; the default buffer keeps the newest 1000. |
/log print where topics~"interface|dhcp" | Filter the log by topicThe pattern after topics~ is matched against the topics of each entry; message~ does that for the text. |
/log print follow-only where topics~"critical" | Watch for failed loginsOnly new critical entries are printed, as they arrive. |
| Space | Print a separator lineAvailable while a followed log print is running; Ctrl + C stops the watch. |
/log print with-extra-info where message~"login failure" | Show extra log fieldsAdds user, service and source address to login and firewall entries. |
/log print without-paging | Print the whole log at onceThe upgrade guide uses it to look for errors after a failed upgrade. |
/log print where buffer=dhcpdebug file=dhcp-debug | Save log entries to a fileWrites the entries of one buffer to a file before the debug rule is removed. |
/log warning "syslog test" | Write a test log entryCreates an entry yourself, for example to check that a syslog server receives the log. |
/system logging add topics=info action=disk | Keep the log on diskThe memory log is lost at reboot; add one such rule for each topic worth keeping. |
/system logging add topics=dhcp,debug action=dhcpdebug | Log debug messages of a topicSelects DHCP debug messages only and sends them to a separate memory buffer. |
No row on this page matches that filter.
Notes
Paths, help and safe mode
RouterOS commands live in a menu tree. /ip route typed alone moves into that menu, .. goes up one level and / returns to the root; a full path such as /ip route print runs from anywhere. The v7 manual writes the same paths with slashes (/ip/route/print), and both spellings are accepted. Tab completes commands, arguments and item names, and F1 shows what can be typed at the cursor. Before a change that could cut your own connection, press F4 / Ctrl + X: in safe mode every change is undone if the session ends abnormally. Safe mode keeps about 100 actions and does not protect commands that reboot the router.
Exporting the configuration
/export prints the configuration as a script of RouterOS commands, readable and portable in a way a binary backup is not. export compact is the default and leaves out settings that match the defaults; export verbose writes every parameter and export terse writes each item as one full command per line. A file= argument saves an .rsc file on the router instead of printing, path= limits the export to chosen menus, and export show-sensitive includes the sensitive values that are hidden otherwise. System user passwords, installed certificates and SSH keys are never exported, so they must be set again after a restore.
Importing and resetting
import address.rsc runs a saved .rsc script from the root menu. Adding verbose=yes executes it line by line, and import test.rsc verbose=yes dry-run only simulates the run, which catches syntax errors in a hand-edited export; from-line starts at a given line and also needs verbose mode. /system reset-configuration takes the reset parameters: no-defaults=yes leaves the router empty instead of loading the default configuration, keep-users preserves the accounts, skip-backup=yes avoids writing an automatic backup first, and run-after-reset runs an .rsc file after the reset, which has to finish within two minutes.
Reading the current state
/interface print, /ip address print and /ip route print are the first three commands on an unfamiliar router; /ip firewall filter print lists the filter rules with their numbers and flags, and /system resource print shows uptime, memory, disk usage and the RouterOS version. Any print command accepts where for filtering, print detail for every property and print count-only for a plain count. Item numbers shown by print are valid only for the current session.
Questions
What is the difference between export and backup?
export writes a readable command script (.rsc) that can be edited and imported on another router; a backup is a binary file that also holds the MAC addresses and is meant to be loaded on the same device, on the same RouterOS version.
Why are passwords missing from my export?
Sensitive values are hidden by default; export show-sensitive includes them. System user passwords, installed certificates and SSH keys are never exported at all, so recreate them after an import.
How do I test an .rsc file before applying it?
Run the import with verbose=yes and dry-run, for example import test.rsc verbose=yes dry-run. The script is parsed, errors are reported with their line, and nothing is changed. dry-run works in verbose mode only.
How do I reset a router and apply my own configuration?
Upload the .rsc file, then run /system reset-configuration with no-defaults=yes and the run-after-reset parameter naming that file. The script must finish within two minutes or it fails with a runtime limit error.
Which key shows help in the RouterOS v7 console?
F1. It shows what can be typed at the cursor position, with explanations; pressing Tab twice gives the same choices in compact form. The login banner of v7 reads "Press F1 for help".
Is /ip address print the same as /ip/address/print?
Yes. The manual states that each word in a path can be separated by a space or by a slash. Its v7 pages print mostly the slash form, while this page uses spaces.
What does safe mode do in the RouterOS console?
F4 or Ctrl+X turns it on and the prompt shows SAFE. If the session then ends abnormally, for example because a change cut your connection, every change made in safe mode is undone. Leaving with Ctrl+D also undoes them, /quit does not.
Sources and checks
- MikroTik RouterOS Manual (v7) — Console Menu navigation, the list of console keys, safe mode, HotLock mode, completion and abbreviations
- MikroTik RouterOS Manual (v7) — Scripting Common commands of every menu (add, set, remove, find, get, move ...) and the print parameters
- MikroTik RouterOS Manual (v7) — DHCP Client Adding a DHCP client and reading its lease
- MikroTik RouterOS Manual (v7) — Configuration Management Undo and redo, export parameters, import parameters, configuration reset parameters
- MikroTik RouterOS Manual (v7) — Services Management services and listening ports
- MikroTik RouterOS Manual (v7) — First Time Configuration Users, WAN address, default route, masquerade, port forwarding, interface lists
25 more source pages
- MikroTik RouterOS Manual (v7) — Backup Saving and loading binary backups
- MikroTik RouterOS Manual (v7) — Manual Network Setup Creating a bridge, adding ports and assigning the LAN address
- MikroTik RouterOS Manual (v7) — DNS Resolver settings, cache, static names, DNS filter rule
- MikroTik RouterOS Manual (v7) — DHCP Server Setup wizard, pool, network, server and leases
- MikroTik RouterOS Manual (v7) — Firewall Filter Basic input-chain rule set and address lists
- MikroTik RouterOS Manual (v7) — Connection tracking FastTrack rule pair
- MikroTik RouterOS Manual (v7) — NAT Source NAT to a fixed address
- MikroTik RouterOS Manual (v7) — Interface stats and monitor-traffic Interface counters and live traffic rates
- MikroTik RouterOS Manual (v7) — Securing your router Admin account, management services, SSH, MAC server, neighbor discovery, unused interfaces
- MikroTik RouterOS Manual (v7) — Bridging and Switching Bridge ports, host table, VLAN table and VLAN filtering
- MikroTik RouterOS Manual (v7) — Resource System resource overview
- MikroTik RouterOS Manual (v7) — Identity Router name
- MikroTik RouterOS Manual (v7) — Clock Date, time and time zone
- MikroTik RouterOS Manual (v7) — NTP NTP client
- MikroTik RouterOS Manual (v7) — Packages Listing, enabling, uninstalling and unscheduling packages
- MikroTik RouterOS Manual (v7) — Upgrade
- MikroTik RouterOS Manual (v7) — Scheduler Scheduled scripts
- MikroTik RouterOS Manual (v7) — Supout.rif Support output file
- MikroTik RouterOS Manual (v7) — User Users, groups, passwords, SSH keys, active sessions
- MikroTik RouterOS Manual (v7) — SSH SSH client
- MikroTik RouterOS Manual (v7) — Ping Ping options: count, size, source address, ARP ping
- MikroTik RouterOS Manual (v7) — Traceroute Traceroute options
- MikroTik RouterOS Manual (v7) — Torch Live traffic by flow
- MikroTik RouterOS Manual (v7) — Packet Sniffer Capturing and watching packets
- MikroTik RouterOS Manual (v7) — Log Reading, filtering, following and saving the log
Every row on this page was matched to a line in the documentation above on . A binding that could not be found there is not listed.
Found a wrong or missing key? Tell us and it gets checked against the source. How we verify describes the process and its limits.