Skip to content

MikroTik Router & Network Commands

MikroTik Router & Network Commands

MikroTik Requires SmartCom Revisited 1.0.0 or newer

by Nathan Kirk · 81 downloads · MIT licence · revision 1 · published 13 Aug 2026

This bundle can change or destroy device state

  • Reboots or reloads the device (1 step) — Restarts the device. Any session on it drops, and anything not saved is lost.
  • Shuts down an interface (1 step) — Administratively disables an interface. If it is the interface you are connected over, you lose the session.
  • Factory resets the device (1 step) — Returns the device to factory settings, including management addressing. Expect to need console access afterwards.
Show exactly which steps matched
  • Reboot Router — Reboots or reloads the device (steps[0], sent text)

    /system reboot
  • Shut Down Router — Shuts down an interface (steps[0], sent text)

    /system shutdown
  • Reset Configuration — Factory resets the device (steps[0], sent text)

    /system reset-configuration no-defaults={{NO_DEFAULTS}} skip-backup={{SKIP_BACKUP}}

Flagged automatically by matching command text. It is a prompt to read the script, not a verdict — plenty of legitimate buttons reboot things on purpose.

Download

6 sets, 135 buttons, 135 steps · 143.9 KB

File format version 1 · exported by Smartcom Revisited

Download .buttons.json
SHA-256 89a37bcb97eaf9b9b49a572b2a75f2d1f271e45c7fb5c400291f8bc2d91f39f8

You get the exact file the uploader submitted, byte for byte — that checksum is what sha256sum will print. Import it from the button panel in SmartCom Revisited.

About this set

RouterOS commands for configuring interfaces, bridges, VLANs, IP addresses, routing, BGP, OSPF, firewall rules, NAT, DHCP, DNS, ARP, and network services.

Every button, in full

Exactly what gets sent

This is the complete script of the file below — nothing is summarised or hidden. Read it before you download it, the same way you would read a script someone emailed you.

MikroTik - System & Identity

17 buttons

Show RouterOS Resources

Run: /system resource print

1 step

  1. Send
    /system resource print

    Sends Enter afterwards.

Show RouterBOARD Information

Run: /system routerboard print

1 step

  1. Send
    /system routerboard print

    Sends Enter afterwards.

Show RouterOS Packages

Run: /system package print

1 step

  1. Send
    /system package print

    Sends Enter afterwards.

Show License

Run: /system license print

1 step

  1. Send
    /system license print

    Sends Enter afterwards.

Show Clock

Run: /system clock print

1 step

  1. Send
    /system clock print

    Sends Enter afterwards.

Set Router Identity

Run: /system identity set name="{{IDENTITY}}"

1 step · 1 input

  1. Send
    /system identity set name="{{IDENTITY}}"

    Sends Enter afterwards.

Set Time Zone

Run: /system clock set time-zone-name="{{TIME_ZONE}}"

1 step · 1 input

  1. Send
    /system clock set time-zone-name="{{TIME_ZONE}}"

    Sends Enter afterwards.

Show NTP Client

Run: /system ntp client print

1 step

  1. Send
    /system ntp client print

    Sends Enter afterwards.

Enable NTP Client

Run: /system ntp client set enabled=yes servers="{{NTP_SERVERS}}"

1 step · 1 input

  1. Send
    /system ntp client set enabled=yes servers="{{NTP_SERVERS}}"

    Sends Enter afterwards.

Disable NTP Client

Run: /system ntp client set enabled=no

1 step

  1. Send
    /system ntp client set enabled=no

    Sends Enter afterwards.

Show System Note

Run: /system note print

1 step

  1. Send
    /system note print

    Sends Enter afterwards.

Set System Note

Run: /system note set note="{{NOTE}}" show-at-login=yes

1 step · 1 input

  1. Send
    /system note set note="{{NOTE}}" show-at-login=yes

    Sends Enter afterwards.

Show Environment Health

Run: /system health print

1 step

  1. Send
    /system health print

    Sends Enter afterwards.

Show Reboot History

Run: /system history print

1 step

  1. Send
    /system history print

    Sends Enter afterwards.

Reboot Router

Run: /system reboot

1 step · asks for confirmation before it runs

  • Reboots or reloads the device
  1. Send
    /system reboot

    Sends Enter afterwards.

Shut Down Router

Run: /system shutdown

1 step · asks for confirmation before it runs

  • Shuts down an interface
  1. Send
    /system shutdown

    Sends Enter afterwards.

Reset Configuration

Run: /system reset-configuration no-defaults={{NO_DEFAULTS}} skip-backup={{SKIP_BACKUP}}

1 step · asks for confirmation before it runs · 2 inputs

  • Factory resets the device
  1. Send
    /system reset-configuration no-defaults={{NO_DEFAULTS}} skip-backup={{SKIP_BACKUP}}

    Sends Enter afterwards.

MikroTik - Interfaces, Bridges & VLANs

29 buttons

List Interfaces

Run: /interface print detail

1 step

  1. Send
    /interface print detail

    Sends Enter afterwards.

Show Interface Statistics

Run: /interface print stats

1 step

  1. Send
    /interface print stats

    Sends Enter afterwards.

Monitor Interface Once

Run: /interface monitor-traffic {{INTERFACE}} once

1 step · 1 input

  1. Send
    /interface monitor-traffic {{INTERFACE}} once

    Sends Enter afterwards.

Enable Interface

Run: /interface enable [find where name="{{INTERFACE}}"]

1 step · 1 input

  1. Send
    /interface enable [find where name="{{INTERFACE}}"]

    Sends Enter afterwards.

Disable Interface

Run: /interface disable [find where name="{{INTERFACE}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /interface disable [find where name="{{INTERFACE}}"]

    Sends Enter afterwards.

Set Interface Comment

Run: /interface set [find where name="{{INTERFACE}}"] comment="{{COMMENT}}"

1 step · 2 inputs

  1. Send
    /interface set [find where name="{{INTERFACE}}"] comment="{{COMMENT}}"

    Sends Enter afterwards.

Rename Interface

Run: /interface set [find where name="{{INTERFACE}}"] name="{{NEW_NAME}}"

1 step · 2 inputs

  1. Send
    /interface set [find where name="{{INTERFACE}}"] name="{{NEW_NAME}}"

    Sends Enter afterwards.

Set Interface MTU

Run: /interface set [find where name="{{INTERFACE}}"] mtu={{MTU}}

1 step · 2 inputs

  1. Send
    /interface set [find where name="{{INTERFACE}}"] mtu={{MTU}}

    Sends Enter afterwards.

List Ethernet Interfaces

Run: /interface ethernet print detail

1 step

  1. Send
    /interface ethernet print detail

    Sends Enter afterwards.

Monitor Ethernet Interface

Run: /interface ethernet monitor {{INTERFACE}} once

1 step · 1 input

  1. Send
    /interface ethernet monitor {{INTERFACE}} once

    Sends Enter afterwards.

Set Ethernet Speed

Run: /interface ethernet set [find where name="{{INTERFACE}}"] auto-negotiation=no speed={{SPEED}}

1 step · 2 inputs

  1. Send
    /interface ethernet set [find where name="{{INTERFACE}}"] auto-negotiation=no speed={{SPEED}}

    Sends Enter afterwards.

Enable Auto Negotiation

Run: /interface ethernet set [find where name="{{INTERFACE}}"] auto-negotiation=yes

1 step · 1 input

  1. Send
    /interface ethernet set [find where name="{{INTERFACE}}"] auto-negotiation=yes

    Sends Enter afterwards.

List Bridges

Run: /interface bridge print detail

1 step

  1. Send
    /interface bridge print detail

    Sends Enter afterwards.

Create Bridge

Run: /interface bridge add name="{{BRIDGE}}" protocol-mode={{PROTOCOL_MODE}} vlan-filtering={{VLAN_FILTERING}}

1 step · 3 inputs

  1. Send
    /interface bridge add name="{{BRIDGE}}" protocol-mode={{PROTOCOL_MODE}} vlan-filtering={{VLAN_FILTERING}}

    Sends Enter afterwards.

Remove Bridge

Run: /interface bridge remove [find where name="{{BRIDGE}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /interface bridge remove [find where name="{{BRIDGE}}"]

    Sends Enter afterwards.

List Bridge Ports

Run: /interface bridge port print detail

1 step

  1. Send
    /interface bridge port print detail

    Sends Enter afterwards.

Add Bridge Port

Run: /interface bridge port add bridge="{{BRIDGE}}" interface="{{INTERFACE}}" pvid={{PVID}}

1 step · 3 inputs

  1. Send
    /interface bridge port add bridge="{{BRIDGE}}" interface="{{INTERFACE}}" pvid={{PVID}}

    Sends Enter afterwards.

Remove Bridge Port

Run: /interface bridge port remove [find where bridge="{{BRIDGE}}" and interface="{{INTERFACE}}"]

1 step · asks for confirmation before it runs · 2 inputs

  1. Send
    /interface bridge port remove [find where bridge="{{BRIDGE}}" and interface="{{INTERFACE}}"]

    Sends Enter afterwards.

Set Bridge Port PVID

Run: /interface bridge port set [find where bridge="{{BRIDGE}}" and interface="{{INTERFACE}}"] pvid={{PVID}}

1 step · 3 inputs

  1. Send
    /interface bridge port set [find where bridge="{{BRIDGE}}" and interface="{{INTERFACE}}"] pvid={{PVID}}

    Sends Enter afterwards.

List Bridge VLANs

Run: /interface bridge vlan print detail

1 step

  1. Send
    /interface bridge vlan print detail

    Sends Enter afterwards.

Add Bridge VLAN

Run: /interface bridge vlan add bridge="{{BRIDGE}}" vlan-ids={{VLAN_ID}} tagged="{{TAGGED}}" untagged="{{UNTAGGED}}"

1 step · 4 inputs

  1. Send
    /interface bridge vlan add bridge="{{BRIDGE}}" vlan-ids={{VLAN_ID}} tagged="{{TAGGED}}" untagged="{{UNTAGGED}}"

    Sends Enter afterwards.

Remove Bridge VLAN

Run: /interface bridge vlan remove [find where bridge="{{BRIDGE}}" and vlan-ids={{VLAN_ID}}]

1 step · asks for confirmation before it runs · 2 inputs

  1. Send
    /interface bridge vlan remove [find where bridge="{{BRIDGE}}" and vlan-ids={{VLAN_ID}}]

    Sends Enter afterwards.

Create VLAN Interface

Run: /interface vlan add name="{{VLAN_NAME}}" interface="{{INTERFACE}}" vlan-id={{VLAN_ID}}

1 step · 3 inputs

  1. Send
    /interface vlan add name="{{VLAN_NAME}}" interface="{{INTERFACE}}" vlan-id={{VLAN_ID}}

    Sends Enter afterwards.

Remove VLAN Interface

Run: /interface vlan remove [find where name="{{VLAN_NAME}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /interface vlan remove [find where name="{{VLAN_NAME}}"]

    Sends Enter afterwards.

List Bonding Interfaces

Run: /interface bonding print detail

1 step

  1. Send
    /interface bonding print detail

    Sends Enter afterwards.

Create Bond

Run: /interface bonding add name="{{BOND}}" slaves="{{SLAVES}}" mode={{BOND_MODE}}

1 step · 3 inputs

  1. Send
    /interface bonding add name="{{BOND}}" slaves="{{SLAVES}}" mode={{BOND_MODE}}

    Sends Enter afterwards.

Show Interface Lists

Run: /interface list print

1 step

  1. Send
    /interface list print

    Sends Enter afterwards.

Add Interface List

Run: /interface list add name="{{LIST_NAME}}"

1 step · 1 input

  1. Send
    /interface list add name="{{LIST_NAME}}"

    Sends Enter afterwards.

Add Interface to List

Run: /interface list member add list="{{LIST_NAME}}" interface="{{INTERFACE}}"

1 step · 2 inputs

  1. Send
    /interface list member add list="{{LIST_NAME}}" interface="{{INTERFACE}}"

    Sends Enter afterwards.

MikroTik - IP Addresses, ARP & Neighbors

18 buttons

List IP Addresses

Run: /ip address print detail

1 step

  1. Send
    /ip address print detail

    Sends Enter afterwards.

Add IP Address

Run: /ip address add address={{IP_CIDR}} interface="{{INTERFACE}}" comment="{{COMMENT}}"

1 step · 3 inputs

  1. Send
    /ip address add address={{IP_CIDR}} interface="{{INTERFACE}}" comment="{{COMMENT}}"

    Sends Enter afterwards.

Disable IP Address

Run: /ip address disable [find where address="{{IP_CIDR}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ip address disable [find where address="{{IP_CIDR}}"]

    Sends Enter afterwards.

Enable IP Address

Run: /ip address enable [find where address="{{IP_CIDR}}"]

1 step · 1 input

  1. Send
    /ip address enable [find where address="{{IP_CIDR}}"]

    Sends Enter afterwards.

Remove IP Address

Run: /ip address remove [find where address="{{IP_CIDR}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ip address remove [find where address="{{IP_CIDR}}"]

    Sends Enter afterwards.

List ARP Entries

Run: /ip arp print detail

1 step

  1. Send
    /ip arp print detail

    Sends Enter afterwards.

Add Static ARP

Run: /ip arp add address={{IP_ADDRESS}} mac-address={{MAC_ADDRESS}} interface="{{INTERFACE}}"

1 step · 3 inputs

  1. Send
    /ip arp add address={{IP_ADDRESS}} mac-address={{MAC_ADDRESS}} interface="{{INTERFACE}}"

    Sends Enter afterwards.

Remove ARP Entry

Run: /ip arp remove [find where address={{IP_ADDRESS}}]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ip arp remove [find where address={{IP_ADDRESS}}]

    Sends Enter afterwards.

List IPv6 Addresses

Run: /ipv6 address print detail

1 step

  1. Send
    /ipv6 address print detail

    Sends Enter afterwards.

Add IPv6 Address

Run: /ipv6 address add address={{IPV6_CIDR}} interface="{{INTERFACE}}" advertise={{ADVERTISE}}

1 step · 3 inputs

  1. Send
    /ipv6 address add address={{IPV6_CIDR}} interface="{{INTERFACE}}" advertise={{ADVERTISE}}

    Sends Enter afterwards.

Remove IPv6 Address

Run: /ipv6 address remove [find where address="{{IPV6_CIDR}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ipv6 address remove [find where address="{{IPV6_CIDR}}"]

    Sends Enter afterwards.

Show MikroTik Neighbors

Run: /ip neighbor print detail

1 step

  1. Send
    /ip neighbor print detail

    Sends Enter afterwards.

Show MAC Neighbors

Run: /tool mac-scan interface="{{INTERFACE}}" duration={{DURATION}}

1 step · 2 inputs

  1. Send
    /tool mac-scan interface="{{INTERFACE}}" duration={{DURATION}}

    Sends Enter afterwards.

Ping Host

Run: /ping {{HOST}} count={{COUNT}}

1 step · 2 inputs

  1. Send
    /ping {{HOST}} count={{COUNT}}

    Sends Enter afterwards.

Ping from Source Address

Run: /ping {{HOST}} src-address={{SOURCE_IP}} count={{COUNT}}

1 step · 3 inputs

  1. Send
    /ping {{HOST}} src-address={{SOURCE_IP}} count={{COUNT}}

    Sends Enter afterwards.

Ping via Interface

Run: /ping {{HOST}} interface="{{INTERFACE}}" count={{COUNT}}

1 step · 3 inputs

  1. Send
    /ping {{HOST}} interface="{{INTERFACE}}" count={{COUNT}}

    Sends Enter afterwards.

Traceroute Host

Run: /tool traceroute {{HOST}}

1 step · 1 input

  1. Send
    /tool traceroute {{HOST}}

    Sends Enter afterwards.

Traceroute Using Source

Run: /tool traceroute {{HOST}} src-address={{SOURCE_IP}}

1 step · 2 inputs

  1. Send
    /tool traceroute {{HOST}} src-address={{SOURCE_IP}}

    Sends Enter afterwards.

MikroTik - Routing, BGP & OSPF

22 buttons

List IPv4 Routes

Run: /ip route print detail

1 step

  1. Send
    /ip route print detail

    Sends Enter afterwards.

List Active Routes

Run: /ip route print where active

1 step

  1. Send
    /ip route print where active

    Sends Enter afterwards.

Add Static Route

Run: /ip route add dst-address={{DESTINATION_CIDR}} gateway={{GATEWAY}} distance={{DISTANCE}} comment="{{COMMENT}}"

1 step · 4 inputs

  1. Send
    /ip route add dst-address={{DESTINATION_CIDR}} gateway={{GATEWAY}} distance={{DISTANCE}} comment="{{COMMENT}}"

    Sends Enter afterwards.

Add Blackhole Route

Run: /ip route add dst-address={{DESTINATION_CIDR}} type=blackhole distance={{DISTANCE}} comment="{{COMMENT}}"

1 step · 3 inputs

  1. Send
    /ip route add dst-address={{DESTINATION_CIDR}} type=blackhole distance={{DISTANCE}} comment="{{COMMENT}}"

    Sends Enter afterwards.

Disable Route

Run: /ip route disable [find where dst-address="{{DESTINATION_CIDR}}" and gateway="{{GATEWAY}}"]

1 step · asks for confirmation before it runs · 2 inputs

  1. Send
    /ip route disable [find where dst-address="{{DESTINATION_CIDR}}" and gateway="{{GATEWAY}}"]

    Sends Enter afterwards.

Enable Route

Run: /ip route enable [find where dst-address="{{DESTINATION_CIDR}}" and gateway="{{GATEWAY}}"]

1 step · 2 inputs

  1. Send
    /ip route enable [find where dst-address="{{DESTINATION_CIDR}}" and gateway="{{GATEWAY}}"]

    Sends Enter afterwards.

Remove Route

Run: /ip route remove [find where dst-address="{{DESTINATION_CIDR}}" and gateway="{{GATEWAY}}"]

1 step · asks for confirmation before it runs · 2 inputs

  1. Send
    /ip route remove [find where dst-address="{{DESTINATION_CIDR}}" and gateway="{{GATEWAY}}"]

    Sends Enter afterwards.

List Route Rules

Run: /routing rule print detail

1 step

  1. Send
    /routing rule print detail

    Sends Enter afterwards.

Add Route Rule

Run: /routing rule add src-address={{SOURCE_CIDR}} action=lookup table="{{ROUTING_TABLE}}"

1 step · 2 inputs

  1. Send
    /routing rule add src-address={{SOURCE_CIDR}} action=lookup table="{{ROUTING_TABLE}}"

    Sends Enter afterwards.

List Routing Tables

Run: /routing table print detail

1 step

  1. Send
    /routing table print detail

    Sends Enter afterwards.

Add Routing Table

Run: /routing table add name="{{ROUTING_TABLE}}" fib=yes

1 step · 1 input

  1. Send
    /routing table add name="{{ROUTING_TABLE}}" fib=yes

    Sends Enter afterwards.

List BGP Connections

Run: /routing bgp connection print detail

1 step

  1. Send
    /routing bgp connection print detail

    Sends Enter afterwards.

List BGP Sessions

Run: /routing bgp session print detail

1 step

  1. Send
    /routing bgp session print detail

    Sends Enter afterwards.

Create BGP Template

Run: /routing bgp template add name="{{TEMPLATE}}" as={{LOCAL_AS}} router-id={{ROUTER_ID}}

1 step · 3 inputs

  1. Send
    /routing bgp template add name="{{TEMPLATE}}" as={{LOCAL_AS}} router-id={{ROUTER_ID}}

    Sends Enter afterwards.

Create BGP Connection

Run: /routing bgp connection add name="{{BGP_NAME}}" remote.address={{REMOTE_ADDRESS}} remote.as={{REMOTE_AS}} local.role={{BGP_ROLE}} templates="{{TEMPLATE}}"

1 step · 5 inputs

  1. Send
    /routing bgp connection add name="{{BGP_NAME}}" remote.address={{REMOTE_ADDRESS}} remote.as={{REMOTE_AS}} local.role={{BGP_ROLE}} templates="{{TEMPLATE}}"

    Sends Enter afterwards.

Disable BGP Connection

Run: /routing bgp connection disable [find where name="{{BGP_NAME}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /routing bgp connection disable [find where name="{{BGP_NAME}}"]

    Sends Enter afterwards.

Enable BGP Connection

Run: /routing bgp connection enable [find where name="{{BGP_NAME}}"]

1 step · 1 input

  1. Send
    /routing bgp connection enable [find where name="{{BGP_NAME}}"]

    Sends Enter afterwards.

List OSPF Instances

Run: /routing ospf instance print detail

1 step

  1. Send
    /routing ospf instance print detail

    Sends Enter afterwards.

List OSPF Neighbors

Run: /routing ospf neighbor print detail

1 step

  1. Send
    /routing ospf neighbor print detail

    Sends Enter afterwards.

List OSPF Interfaces

Run: /routing ospf interface-template print detail

1 step

  1. Send
    /routing ospf interface-template print detail

    Sends Enter afterwards.

Add OSPF Interface Template

Run: /routing ospf interface-template add interfaces="{{INTERFACE}}" area="{{OSPF_AREA}}" networks={{NETWORK_CIDR}}

1 step · 3 inputs

  1. Send
    /routing ospf interface-template add interfaces="{{INTERFACE}}" area="{{OSPF_AREA}}" networks={{NETWORK_CIDR}}

    Sends Enter afterwards.

List IPv6 Routes

Run: /ipv6 route print detail

1 step

  1. Send
    /ipv6 route print detail

    Sends Enter afterwards.

MikroTik - Firewall, NAT & Address Lists

25 buttons

List Filter Rules

Run: /ip firewall filter print detail

1 step

  1. Send
    /ip firewall filter print detail

    Sends Enter afterwards.

List Filter Rule Statistics

Run: /ip firewall filter print stats

1 step

  1. Send
    /ip firewall filter print stats

    Sends Enter afterwards.

Add Accept Input Rule

Run: /ip firewall filter add chain=input action=accept protocol={{PROTOCOL}} dst-port={{PORT}} src-address={{SOURCE_CIDR}} comment="{{COMMENT}}"

1 step · 4 inputs

  1. Send
    /ip firewall filter add chain=input action=accept protocol={{PROTOCOL}} dst-port={{PORT}} src-address={{SOURCE_CIDR}} comment="{{COMMENT}}"

    Sends Enter afterwards.

Add Drop Input Rule

Run: /ip firewall filter add chain=input action=drop src-address={{SOURCE_CIDR}} comment="{{COMMENT}}"

1 step · 2 inputs

  1. Send
    /ip firewall filter add chain=input action=drop src-address={{SOURCE_CIDR}} comment="{{COMMENT}}"

    Sends Enter afterwards.

Add Established Related Rule

Run: /ip firewall filter add chain=input action=accept connection-state=established,related,untracked comment="Accept established and related"

1 step

  1. Send
    /ip firewall filter add chain=input action=accept connection-state=established,related,untracked comment="Accept established and related"

    Sends Enter afterwards.

Disable Filter Rule by Comment

Run: /ip firewall filter disable [find where comment="{{COMMENT}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ip firewall filter disable [find where comment="{{COMMENT}}"]

    Sends Enter afterwards.

Enable Filter Rule by Comment

Run: /ip firewall filter enable [find where comment="{{COMMENT}}"]

1 step · 1 input

  1. Send
    /ip firewall filter enable [find where comment="{{COMMENT}}"]

    Sends Enter afterwards.

Remove Filter Rule by Comment

Run: /ip firewall filter remove [find where comment="{{COMMENT}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ip firewall filter remove [find where comment="{{COMMENT}}"]

    Sends Enter afterwards.

Move Filter Rule

Run: /ip firewall filter move [find where comment="{{COMMENT}}"] destination={{POSITION}}

1 step · 2 inputs

  1. Send
    /ip firewall filter move [find where comment="{{COMMENT}}"] destination={{POSITION}}

    Sends Enter afterwards.

List NAT Rules

Run: /ip firewall nat print detail

1 step

  1. Send
    /ip firewall nat print detail

    Sends Enter afterwards.

Add Masquerade Rule

Run: /ip firewall nat add chain=srcnat action=masquerade out-interface="{{INTERFACE}}" comment="{{COMMENT}}"

1 step · 2 inputs

  1. Send
    /ip firewall nat add chain=srcnat action=masquerade out-interface="{{INTERFACE}}" comment="{{COMMENT}}"

    Sends Enter afterwards.

Add Source NAT Rule

Run: /ip firewall nat add chain=srcnat action=src-nat src-address={{SOURCE_CIDR}} to-addresses={{TO_ADDRESS}} comment="{{COMMENT}}"

1 step · 3 inputs

  1. Send
    /ip firewall nat add chain=srcnat action=src-nat src-address={{SOURCE_CIDR}} to-addresses={{TO_ADDRESS}} comment="{{COMMENT}}"

    Sends Enter afterwards.

Add Destination NAT Rule

Run: /ip firewall nat add chain=dstnat action=dst-nat protocol={{PROTOCOL}} dst-port={{PORT}} to-addresses={{TO_ADDRESS}} to-ports={{TO_PORT}} comment="{{COMMENT}}"

1 step · 5 inputs

  1. Send
    /ip firewall nat add chain=dstnat action=dst-nat protocol={{PROTOCOL}} dst-port={{PORT}} to-addresses={{TO_ADDRESS}} to-ports={{TO_PORT}} comment="{{COMMENT}}"

    Sends Enter afterwards.

Disable NAT Rule by Comment

Run: /ip firewall nat disable [find where comment="{{COMMENT}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ip firewall nat disable [find where comment="{{COMMENT}}"]

    Sends Enter afterwards.

Enable NAT Rule by Comment

Run: /ip firewall nat enable [find where comment="{{COMMENT}}"]

1 step · 1 input

  1. Send
    /ip firewall nat enable [find where comment="{{COMMENT}}"]

    Sends Enter afterwards.

Remove NAT Rule by Comment

Run: /ip firewall nat remove [find where comment="{{COMMENT}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ip firewall nat remove [find where comment="{{COMMENT}}"]

    Sends Enter afterwards.

List Mangle Rules

Run: /ip firewall mangle print detail

1 step

  1. Send
    /ip firewall mangle print detail

    Sends Enter afterwards.

List Raw Rules

Run: /ip firewall raw print detail

1 step

  1. Send
    /ip firewall raw print detail

    Sends Enter afterwards.

List Address Lists

Run: /ip firewall address-list print detail

1 step

  1. Send
    /ip firewall address-list print detail

    Sends Enter afterwards.

Add Address List Entry

Run: /ip firewall address-list add list="{{ADDRESS_LIST}}" address={{IP_OR_CIDR}} timeout={{TIMEOUT}} comment="{{COMMENT}}"

1 step · 4 inputs

  1. Send
    /ip firewall address-list add list="{{ADDRESS_LIST}}" address={{IP_OR_CIDR}} timeout={{TIMEOUT}} comment="{{COMMENT}}"

    Sends Enter afterwards.

Remove Address List Entry

Run: /ip firewall address-list remove [find where list="{{ADDRESS_LIST}}" and address="{{IP_OR_CIDR}}"]

1 step · asks for confirmation before it runs · 2 inputs

  1. Send
    /ip firewall address-list remove [find where list="{{ADDRESS_LIST}}" and address="{{IP_OR_CIDR}}"]

    Sends Enter afterwards.

Flush Connection Tracking

Run: /ip firewall connection remove [find]

1 step · asks for confirmation before it runs

  1. Send
    /ip firewall connection remove [find]

    Sends Enter afterwards.

List Connections

Run: /ip firewall connection print detail

1 step

  1. Send
    /ip firewall connection print detail

    Sends Enter afterwards.

List IPv6 Filter Rules

Run: /ipv6 firewall filter print detail

1 step

  1. Send
    /ipv6 firewall filter print detail

    Sends Enter afterwards.

Export Firewall Configuration

Run: /ip firewall export show-sensitive=no

1 step

  1. Send
    /ip firewall export show-sensitive=no

    Sends Enter afterwards.

MikroTik - DHCP, DNS & Services

24 buttons

List DHCP Servers

Run: /ip dhcp-server print detail

1 step

  1. Send
    /ip dhcp-server print detail

    Sends Enter afterwards.

List DHCP Leases

Run: /ip dhcp-server lease print detail

1 step

  1. Send
    /ip dhcp-server lease print detail

    Sends Enter afterwards.

Show Bound DHCP Leases

Run: /ip dhcp-server lease print where status=bound

1 step

  1. Send
    /ip dhcp-server lease print where status=bound

    Sends Enter afterwards.

Make DHCP Lease Static

Run: /ip dhcp-server lease make-static [find where address={{IP_ADDRESS}}]

1 step · 1 input

  1. Send
    /ip dhcp-server lease make-static [find where address={{IP_ADDRESS}}]

    Sends Enter afterwards.

Add Static DHCP Lease

Run: /ip dhcp-server lease add server="{{DHCP_SERVER}}" address={{IP_ADDRESS}} mac-address={{MAC_ADDRESS}} comment="{{COMMENT}}"

1 step · 4 inputs

  1. Send
    /ip dhcp-server lease add server="{{DHCP_SERVER}}" address={{IP_ADDRESS}} mac-address={{MAC_ADDRESS}} comment="{{COMMENT}}"

    Sends Enter afterwards.

Remove DHCP Lease

Run: /ip dhcp-server lease remove [find where address={{IP_ADDRESS}}]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ip dhcp-server lease remove [find where address={{IP_ADDRESS}}]

    Sends Enter afterwards.

Create DHCP Pool

Run: /ip pool add name="{{POOL_NAME}}" ranges={{IP_RANGE}}

1 step · 2 inputs

  1. Send
    /ip pool add name="{{POOL_NAME}}" ranges={{IP_RANGE}}

    Sends Enter afterwards.

Create DHCP Network

Run: /ip dhcp-server network add address={{NETWORK_CIDR}} gateway={{GATEWAY}} dns-server={{DNS_SERVERS}} domain="{{DOMAIN}}"

1 step · 4 inputs

  1. Send
    /ip dhcp-server network add address={{NETWORK_CIDR}} gateway={{GATEWAY}} dns-server={{DNS_SERVERS}} domain="{{DOMAIN}}"

    Sends Enter afterwards.

Create DHCP Server

Run: /ip dhcp-server add name="{{DHCP_SERVER}}" interface="{{INTERFACE}}" address-pool="{{POOL_NAME}}" disabled=no

1 step · 3 inputs

  1. Send
    /ip dhcp-server add name="{{DHCP_SERVER}}" interface="{{INTERFACE}}" address-pool="{{POOL_NAME}}" disabled=no

    Sends Enter afterwards.

List DHCP Clients

Run: /ip dhcp-client print detail

1 step

  1. Send
    /ip dhcp-client print detail

    Sends Enter afterwards.

Add DHCP Client

Run: /ip dhcp-client add interface="{{INTERFACE}}" add-default-route=yes use-peer-dns={{USE_PEER_DNS}} disabled=no

1 step · 2 inputs

  1. Send
    /ip dhcp-client add interface="{{INTERFACE}}" add-default-route=yes use-peer-dns={{USE_PEER_DNS}} disabled=no

    Sends Enter afterwards.

Release DHCP Client

Run: /ip dhcp-client release [find where interface="{{INTERFACE}}"]

1 step · 1 input

  1. Send
    /ip dhcp-client release [find where interface="{{INTERFACE}}"]

    Sends Enter afterwards.

Renew DHCP Client

Run: /ip dhcp-client renew [find where interface="{{INTERFACE}}"]

1 step · 1 input

  1. Send
    /ip dhcp-client renew [find where interface="{{INTERFACE}}"]

    Sends Enter afterwards.

Show DNS Settings

Run: /ip dns print

1 step

  1. Send
    /ip dns print

    Sends Enter afterwards.

Set DNS Servers

Run: /ip dns set servers={{DNS_SERVERS}} allow-remote-requests={{ALLOW_REMOTE}}

1 step · 2 inputs

  1. Send
    /ip dns set servers={{DNS_SERVERS}} allow-remote-requests={{ALLOW_REMOTE}}

    Sends Enter afterwards.

List DNS Cache

Run: /ip dns cache print

1 step

  1. Send
    /ip dns cache print

    Sends Enter afterwards.

Flush DNS Cache

Run: /ip dns cache flush

1 step

  1. Send
    /ip dns cache flush

    Sends Enter afterwards.

Add Static DNS Record

Run: /ip dns static add name="{{DNS_NAME}}" address={{IP_ADDRESS}} ttl={{TTL}}

1 step · 3 inputs

  1. Send
    /ip dns static add name="{{DNS_NAME}}" address={{IP_ADDRESS}} ttl={{TTL}}

    Sends Enter afterwards.

Remove Static DNS Record

Run: /ip dns static remove [find where name="{{DNS_NAME}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ip dns static remove [find where name="{{DNS_NAME}}"]

    Sends Enter afterwards.

List IP Services

Run: /ip service print detail

1 step

  1. Send
    /ip service print detail

    Sends Enter afterwards.

Set SSH Allowed Address

Run: /ip service set ssh address={{ALLOWED_CIDR}} port={{PORT}} disabled=no

1 step · 2 inputs

  1. Send
    /ip service set ssh address={{ALLOWED_CIDR}} port={{PORT}} disabled=no

    Sends Enter afterwards.

Disable IP Service

Run: /ip service disable [find where name="{{SERVICE}}"]

1 step · asks for confirmation before it runs · 1 input

  1. Send
    /ip service disable [find where name="{{SERVICE}}"]

    Sends Enter afterwards.

Enable IP Service

Run: /ip service enable [find where name="{{SERVICE}}"]

1 step · 1 input

  1. Send
    /ip service enable [find where name="{{SERVICE}}"]

    Sends Enter afterwards.

Set Service Port

Run: /ip service set [find where name="{{SERVICE}}"] port={{PORT}}

1 step · 2 inputs

  1. Send
    /ip service set [find where name="{{SERVICE}}"] port={{PORT}}

    Sends Enter afterwards.

Version history

  • Revision 1 current

    First published version.

    13 Aug 2026 · 143.9 KB · needs 1.0.0+ · 89a37bcb97eaf9b9…

Something wrong with this set?

Sign in to report it, or email abuse@smartcomrevisited.com.