Skip to content
MikroTik RouterOS Docs

Reset Configuration

For the impatient: reset to factory defaults with one command.

/system/reset-configuration
# Confirm with 'y' when prompted

For a completely empty configuration (no defaults):

/system/reset-configuration no-defaults=yes skip-backup=yes

After reset, connect to 192.168.88.1 via any LAN port (not ether1/WAN).

What this does: Reset Configuration clears the router’s configuration and optionally restores factory defaults. This can be done via CLI command, GUI, or physical reset button.

When to use this:

  • Restoring a misconfigured router to a known good state
  • Preparing a router for a new deployment
  • Clearing all settings before selling or repurposing
  • Recovering from configuration mistakes that lock you out
  • Deploying custom configurations via run-after-reset scripts

Prerequisites:

  • CLI access (SSH, console, or WinBox terminal) OR physical access to reset button
  • Knowledge that this will disconnect your current session
  • Backup of current configuration if needed

Step 1: Backup Current Configuration (Optional)

Section titled “Step 1: Backup Current Configuration (Optional)”

Before resetting, save your current configuration:

/system/backup save name=before-reset

Check the backup file exists:

/file print where name~"before-reset"

Execute the reset command:

/system/reset-configuration

Confirmation prompt:

Dangerous! Reset anyway? [y/N]:

Type y and press Enter. The router will reboot with the default configuration.

Expected result after reboot:

  • Default IP: 192.168.88.1 on LAN interface (typically bridge)
  • Admin user: admin (password on sticker or empty on older devices)
  • DHCP server: Pool 192.168.88.10-254
  • Basic firewall and NAT on WAN interface (ether1)

After reset completes (~30-60 seconds for reboot):

  1. Connect your computer to any port except ether1 (which is WAN by default)
  2. Set your computer to obtain IP automatically (DHCP)
  3. Access 192.168.88.1 via browser or WinBox
  4. Login as admin with the password from the device sticker (or blank)

Remove all configuration without loading defaults. Useful for starting completely fresh:

/system/reset-configuration no-defaults=yes skip-backup=yes

After reset:

  • All interfaces disabled
  • No IP addresses assigned
  • No firewall rules
  • Access via MAC-WinBox or serial console only

Reset configuration but preserve user accounts and passwords:

/system/reset-configuration keep-users=yes

Useful when you want to clear the config but maintain admin access.

Deploy a custom configuration automatically after reset:

# First, upload your script to the router
# /file print should show restore.rsc
# Then reset with script execution
/system/reset-configuration no-defaults=yes run-after-reset=restore.rsc

Script template (restore.rsc):

# Add delay for interface initialization
:delay 15s
# Your configuration commands
/interface/bridge add name=bridge1
/ip/address add address=192.168.1.1/24 interface=bridge1
/ip/dhcp-server/network add address=192.168.1.0/24 gateway=192.168.1.1
:log info "Configuration restore complete"

Reset and configure as a CAPsMAN-controlled access point:

/system/reset-configuration caps-mode=yes

The router will boot as a CAP, looking for a CAPsMAN controller via DHCP option or broadcast.

Scenario: Physical Reset Button (Factory Reset)

Section titled “Scenario: Physical Reset Button (Factory Reset)”

When CLI access is unavailable:

  1. Power off the router
  2. Press and hold the reset button
  3. Power on while holding the button
  4. Wait for LED to start flashing (~5 seconds)
  5. Release the button immediately when LED flashes
  6. Router reboots with default configuration

Scenario: Physical Reset Button (Netinstall Mode)

Section titled “Scenario: Physical Reset Button (Netinstall Mode)”

For complete RouterOS reinstallation:

  1. Power off the router
  2. Press and hold the reset button
  3. Power on while holding the button
  4. Wait for LED to flash, then turn solid, then turn off (~15 seconds)
  5. Release button when LED turns off
  6. Router enters Netinstall mode (awaiting Netinstall server)
Hold DurationLED StateAction
~3 seconds (before power)-Load backup RouterBOOT bootloader
~5 secondsFlashingFactory reset (load default configuration)
~10 secondsSolidEnable CAPs mode
~15 secondsOffEnter Netinstall/Etherboot mode
Device TypeWAN InterfaceLAN ConfigurationFeatures
AP Routerether1 (DHCP client, firewall)Bridge (remaining ports + wireless), 192.168.88.1/24DHCP server, NAT, DNS
CPE Routerwlan1 (DHCP client, firewall)Bridge (Ethernet ports), 192.168.88.1/24DHCP server, NAT
LTE CPELTE (firewall)Bridge (Ethernet + wireless), 192.168.88.1/24DHCP server, NAT
Switch-Bridge (all ports), 192.168.88.1/24Layer 2 switching
CAPether1 (DHCP client)Bridge (remaining ports), CAPsMAN-managed wirelessControlled AP

View your device’s default configuration:

/system/default-configuration print

Confirm the reset completed successfully:

/ip/address print

Expected: Shows 192.168.88.1/24 on bridge or LAN interface.

Check 2: Verify Default Route (AP Routers)

Section titled “Check 2: Verify Default Route (AP Routers)”
/ip/route print

Expected: For AP routers, shows DHCP-assigned default route via ether1.

/file print where name~"backup"

Expected: Auto-backup file present (unless skip-backup=yes was used).

/ip/dhcp-server print

Expected: DHCP server enabled on bridge interface.

SymptomCauseSolution
Cannot connect after resetConnected to WAN port (ether1)Connect to any other port; ether1 is WAN by default
Cannot connect after resetIP not 192.168.88.xSet computer to DHCP or manually use 192.168.88.2/24
Run-after-reset script not executingScript errors or timingAdd :delay 15s at script start; test with /import first
Run-after-reset script timeoutScript exceeds 2-minute limitOptimize script; split into multiple scripts
”Interface not ready” in scriptInterfaces not initializedAdd delay or wait loop: :while ([/interface find name=wlan1] = "") do={:delay 1s}
Wrong reset mode (Netinstall instead of factory)Held button too longRelease button AS SOON AS LED starts flashing (~5 seconds)
CAPs mode instead of factory resetHeld button ~10 secondsRelease during flashing phase, not solid LED phase
Some settings persist after resetUsed reset without no-defaultsUse no-defaults=yes skip-backup=yes for complete clear
Reset button doesn’t workProtected Bootloader enabledMust use CLI reset or contact MikroTik support
Storage full with backup filesRepeated resets create backupsUse skip-backup=yes or periodically clean old backups

Common Mistakes

  • Don’t release the reset button too late - Different hold durations trigger different modes (factory reset vs CAPs vs Netinstall)
  • Don’t forget the 2-minute script timeout - Run-after-reset scripts must complete within 2 minutes
  • Don’t skip the delay in run-after-reset scripts - Interfaces need time to initialize; add :delay 15s at the start
  • Don’t connect to ether1 after reset - It’s configured as WAN by default; use other ports
  • Don’t use no-defaults without a plan - An empty configuration means no IP address; you’ll need MAC-WinBox or console access
AspectReset ConfigurationNetinstall
ConfigurationCleared or defaultedCleared completely
RouterOSPreservedReinstalled
LicensePreservedPreserved
FilesPreserved (unless format)Lost (drive formatted)
User Manager DBPreservedLost
Dude DBPreservedLost
SSH KeysPreserved (unless no-defaults)Lost
Access RequiredCLI/GUI/ButtonPhysical + Netinstall server
PropertyTypeDefaultDescription
no-defaultsyes/nonoClear configuration without loading defaults (empty config)
skip-backupyes/nonoSkip automatic backup file generation before reset
keep-usersyes/nonoPreserve existing user accounts during reset
run-after-resetfilename-Execute specified .rsc script file after reset
caps-modeyes/nonoEnable CAPs mode (CAPsMAN controlled AP) after reset
CommandDescription
/system/reset-configurationReset router configuration
/system/default-configuration printView default configuration template
/system/backup saveCreate binary backup before reset
/file printList files including backups and scripts
/importTest a script before using with run-after-reset

Reset Configuration restores your MikroTik router to factory defaults or a custom state:

  1. CLI reset - /system/reset-configuration with optional parameters
  2. Physical reset - Hold button ~5 seconds until LED flashes, then release
  3. Custom deployment - Use run-after-reset with a script for automated configuration

Key points:

  • Default IP after reset is 192.168.88.1 on LAN ports (not ether1)
  • Ether1 is WAN by default on AP routers; connect to other ports
  • Add :delay 15s at the start of run-after-reset scripts
  • Scripts have a 2-minute execution timeout
  • Button hold duration matters: ~5s = factory reset, ~10s = CAPs, ~15s = Netinstall
  • Use no-defaults=yes skip-backup=yes for a completely empty configuration
  • Netinstall reformats storage; use CLI reset to preserve files