basforge

Search titles, text and the “If it doesn’t work” cases.

    RU
    Cheat sheetHomelabMikroTik

    Everyday RouterOS: who’s on the network, who’s downloading, updates, backups

    RouterOS 7 commands for the Winbox, WebFig or SSH terminal. Menu paths take spaces or slashes: /ip address print and /ip/address/print are the same. The numbers in print output change, so use [find …] in set and remove.

    Which router this is

    Command What it does
    /system resource print version, model, CPU load, free memory, uptime
    /system routerboard print bootloader versions: current and available
    /system package print installed packages
    /system device-mode print which features the mode locks (RouterOS)
    /system health print temperature and voltage, if there are sensors
    /system identity set name=hap-home the router’s name in the prompt and in Winbox

    Who’s on the network

    Command What it does
    /ip dhcp-server lease print where status=bound who got an address and when
    /ip dhcp-server lease make-static [find address=192.168.88.20] pin an address to a device
    /interface wifi registration-table print Wi-Fi clients: signal, rate, connected for how long
    /ip arp print where interface=bridge everyone who answered on the home network, static addresses included
    /ip neighbor print neighbouring MikroTik devices and others with LLDP

    Who’s downloading and what’s slow

    Command What it does
    /tool torch interface=ether1 flows through the ISP right now: addresses, ports, speed
    /tool torch interface=bridge src-address=192.168.88.20 what one device is doing right now
    /interface monitor-traffic ether1 total interface speed, once a second
    /tool profile duration=10s what’s using the CPU
    /ip firewall connection print count-only how many connections are in the table
    /ip firewall filter print stats where action=fasttrack-connection is fasttrack working: the counter should grow

    Connectivity and diagnostics

    Command What it does
    /ping 1.1.1.1 count=5 does the router itself have internet
    /ping example.org src-address=192.168.88.1 ping from a home-network address: checks NAT too
    /tool traceroute 1.1.1.1 where packets get lost on the way
    /resolve example.org how the router’s DNS answers for a name
    /interface ethernet monitor ether1 once link speed and mode on a port
    /tool sniffer quick interface=ether1 port=53 packets on the fly: who talks to DNS
    /log print where topics~"error|critical" errors in the log
    /log print follow the log live; Ctrl+C to exit

    Firewall and NAT

    Command What it does
    /ip firewall filter print stats rules with counters: which ones fire
    /ip firewall filter print where chain=input rules for the router itself, in order
    /ip firewall filter move [find comment="guest: DNS"] destination=5 move a rule to position 5
    /ip firewall address-list add list=blocked address=198.51.100.66 timeout=1d put an address on a list for a day
    /ip firewall nat add chain=dstnat in-interface-list=WAN protocol=tcp dst-port=8443 action=dst-nat to-addresses=192.168.88.20 to-ports=443 forward a port to a server at home
    /ip firewall nat print stats does the port forward fire

    Updates

    Command What it does
    /system package update set channel=long-term the fixes-only channel
    /system package update check-for-updates is there a new version
    /system package update install download, install and reboot
    /system routerboard upgrade update the bootloader, then /system reboot (RouterBOOT update)
    /system routerboard settings set auto-upgrade=yes the bootloader catches up with the system on reboot

    Backups

    Command What it does
    /export the config as text on screen, without passwords
    /export file=hap-2026-10-19 the same to hap-2026-10-19.rsc in Files
    /export show-sensitive file=full with passwords: store such a file like a password
    /ip firewall export just one branch of the menu
    /system backup save name=hap password="…" a binary backup, for this router only (MikroTik config backup)
    /import file-name=hap-2026-10-19.rsc run the commands from a file
    /file print what’s in Files

    Terminal tricks

    Key or command What it does
    Tab, double Tab complete a command; list options
    ? help for the current position
    Ctrl+X Safe Mode: if the connection drops, changes roll back (Safe Mode)
    Ctrl+C stop ping, torch, print follow
    / and .. to the menu root and one level up
    print where …, print detail, print count-only filter, all fields, just the count
    /system history print what was changed in this and past sessions
    /undo undo the last change

    Reset and rescue

    Command or action What it does
    /system reset-configuration the factory config; all settings are lost
    /system reset-configuration no-defaults=yes keep-users=yes an empty config without the factory firewall; users stay
    reset while powering on, about 5 s, until it blinks the factory config by button
    reset while powering on: until it blinks plus ~5 s, until it’s steady access point mode for CAPsMAN
    reset while powering on for over 15 s, until the LED goes out network boot for Netinstall
    Winbox, Neighbors tab, connect by MAC get in when IP addresses are broken