For a first-time MikroTik setup, plug a computer into a LAN port and open WinBox. Use the router’s MAC address if its IP address is unreachable. Keep the factory edge-router defaults if they fit, then back up the configuration, verify a new admin login and check WAN protection before connecting the ISP cable. Finish by checking a client’s lease, internet access and DNS after reboot.
MikroTik router setup: the first-hour checklist
| Task | Pass check |
|---|---|
| Log in locally and inspect the defaults | WinBox opens over the router’s LAN IP |
| Save a backup and secure management | You have an off-router backup and a fresh admin session over IP |
| Check WAN policy and configure the ISP handoff | The uplink stays outside the LAN and the router gets a working default route |
| Update RouterOS and check RouterBOOT | You can log in locally after each required restart |
| Verify LAN and configure Wi-Fi if present | Clients receive the intended address, gateway and DNS |
| Reboot and repeat the client checks | Management and client connectivity return without reapplying settings |
Inspect the board and connect locally
With the ISP cable unplugged, connect a computer directly to a LAN port. On the usual AP Router profile, use a port such as ether2 and leave ether1 for the uplink. Switch, LTE and other profiles can differ. MikroTik default configurations
Get a working IP login
- Open WinBox and choose Neighbors under Select from. Select the router’s IP address if reachable. On the usual AP Router defaults, the LAN address is
192.168.88.1. - If the IP is unreachable, select the router’s MAC address from the same list. This needs a local Ethernet path and MAC WinBox enabled on the connected interface. If no router appears, check the cable and reconnect to a LAN port.
- Sign in as
adminwith the factory password on the device label. Leave the password blank if the model’s factory login instructions specify that. - If you started by MAC, run
/ip/address/printto find the LAN bridge address. Open a second WinBox session to that IP and keep the original session open until the second works. If no LAN address is configured, follow the manual setup linked below. First Time Configuration, MAC server
Keep a coherent starting configuration
When WinBox offers to remove the default configuration, keep it for a typical home or small-office edge router. The AP Router profile provides a LAN bridge, DHCP server, firewall and WAN masquerade. Run /system/default-configuration/print to see the factory script. Check the running configuration too before adding another bridge, DHCP server or NAT rule. Default configurations
If the device is blank or its profile lacks the LAN and firewall you need, leave the uplink unplugged. Set up local IP access and DHCP with MikroTik’s manual network setup, then verify the WAN policy with the RouterOS firewall guide.
Set credentials and save a recovery point
Save an encrypted binary backup and a readable export before making changes. Replace the quoted password placeholder with a unique backup password.
/system/backup/save name=before-setup password="REPLACE_WITH_BACKUP_PASSWORD"
/export file=before-setup
Download both files with WinBox and store them securely. Restore the binary backup on the same device and RouterOS version. The export is plain text, so review it before sharing. Backup, Configuration Management
Create a new administrator with a unique username and password. Replace both quoted placeholders, then open a separate WinBox session by LAN IP and sign in with the new account. From that working session, disable the factory account.
/user/add name="REPLACE_WITH_ADMIN_NAME" password="REPLACE_WITH_ADMIN_PASSWORD" group=full
/user/disable admin
Open one more fresh IP session as the new administrator before moving on. MikroTik hardening guidance, First Time Configuration
Restrict management before connecting the WAN
Keep a wired IP session open and enable Safe Mode in WinBox. Make changes in small batches. After each batch, open a fresh IP session before releasing Safe Mode to keep the changes. An interrupted Safe Mode session rolls back its changes. Configuration Management
Review /ip/service and turn off management services you do not use. This example keeps WinBox reachable from the stock LAN subnet. Substitute your actual management prefix before applying it.
/ip/service/disable telnet,ftp,www,api
/ip/service/set winbox available-from=192.168.88.0/24
If your version uses the older property name, use address in place of available-from. Apply source restrictions to any other management services you keep and use the firewall to block untrusted traffic. RouterOS hardening manual, Services CLI reference
After fresh IP login succeeds, disable MAC Telnet and neighbor discovery. If you want MAC WinBox as a fallback, use LAN in its command only after checking that the list contains trusted interfaces. The commands below turn off all three.
/tool/mac-server/set allowed-interface-list=none
/tool/mac-server/mac-winbox/set allowed-interface-list=none
/ip/neighbor/discovery-settings/set discover-interface-list=none
Save the router’s LAN IP so you can connect directly with discovery off. MikroTik hardening guidance, MAC server
Before plugging in the ISP, run /interface/list/member/print and /ip/firewall/filter/print. Confirm the local bridge is in LAN and the ISP-facing interface is in WAN and outside LAN. Run /interface/bridge/port/print to check that the physical uplink port is outside the LAN bridge. Look for the input drop rule for traffic outside LAN and check that no earlier rule allows WAN management. Review the forward chain for the rule that drops new WAN connections without a destination NAT match. Check /ipv6/firewall/filter separately if using IPv6. Keep the uplink unplugged if the policy is missing or unclear. MikroTik firewall filter, Bridging and Switching, RouterOS firewall rules
Configure the WAN connection your ISP supplies
Ask the ISP whether it uses DHCP, static IPv4 or PPPoE, and which interface or VLAN the handoff requires. The examples use ether1 as the physical WAN. Apply only the matching setup while the ISP cable is unplugged. For static or PPPoE, run /ip/dhcp-client/print detail first. If it shows a default DHCP client on ether1, disable it with /ip/dhcp-client/set [find interface=ether1] disabled=yes. Change the interface name if your WAN port differs. First Time Configuration, DHCP Client
DHCP or dynamic IP
Run /ip/dhcp-client/print detail. Reuse the existing client on the WAN interface. If it is disabled or its route setting needs changing, use the first command below. Use the second only when there is no client for that interface.
/ip/dhcp-client/set [find interface=ether1] disabled=no add-default-route=yes
/ip/dhcp-client/add interface=ether1 disabled=no add-default-route=yes
After connecting the uplink, rerun /ip/dhcp-client/print detail. Pass when it shows status=bound with an address and /ip/route/print shows an active default route through the ISP. DHCP Client
Static IPv4
Replace each placeholder with the ISP’s address and prefix, gateway and DNS server. Add the address on the WAN interface and use the ISP’s gateway for the default route.
/ip/address/add address=ISP_ADDRESS/PREFIX interface=ether1
/ip/route/add gateway=ISP_GATEWAY
/ip/dns/set servers=ISP_DNS_SERVER
Connect the uplink. Pass when /ip/address/print shows the supplied WAN address and /ip/route/print where dst-address=/0 shows an active IPv4 default route via the supplied gateway. The A flag means active. Verify IP and DNS using the checks below. First Time Configuration, Routing Decision
PPPoE
Use the ISP’s credentials and the required handoff interface. If the ISP specifies a VLAN, use that VLAN interface as the PPPoE parent. The MikroTik PPPoE setup guide walks through the VLAN and client settings.
/interface/pppoe-client/add name=pppoe-out1 interface=ether1 user="ISP_USERNAME" password="ISP_PASSWORD" disabled=no add-default-route=yes use-peer-dns=yes
Run /interface/list/member/print and add the logical interface to the existing WAN list if absent.
/interface/list/member/add list=WAN interface=pppoe-out1
Check that WAN firewall policy covers pppoe-out1. In /ip/firewall/nat, look for a srcnat rule with action masquerade and an outgoing match on pppoe-out1 or the WAN list. After connecting the uplink, run /interface/pppoe-client/monitor pppoe-out1 once. Pass when it reports status: connected and the active default route uses pppoe-out1. First Time Configuration, PPPoE
Check the uplink from RouterOS
For a private IPv4 LAN, confirm the existing source NAT rule masquerades traffic on the active WAN interface or the WAN list. In the terminal, run /ping 8.8.8.8 to check IP reachability and :put [:resolve mikrotik.com] to check DNS. If the router passes and clients fail, check LAN forwarding, masquerade and the DHCP settings handed to clients. First Time Configuration, DNS
Update RouterOS, then check RouterBOOT
With the backup stored and WAN working, open System → Packages → Check for Updates in WinBox. Select the intended channel and read the changelog. If an update is offered, Download&Install downloads it and reboots the router. Reconnect locally and check the installed version in the same window. RouterOS upgrade manual
On RouterBOARD hardware, run /system/routerboard/print and compare current-firmware with upgrade-firmware. If a newer bootloader is available, run /system/routerboard/upgrade, confirm the upgrade and then run /system/reboot to apply it. Reconnect and check that current-firmware now matches the target. RouterBOOT
Check LAN addresses, DHCP and DNS
Check the LAN bridge address, DHCP pool and DHCP network entry together. Use a LAN range distinct from the upstream network. The pool must exclude the router’s address. The network entry should advertise the router’s LAN address as the gateway and the intended resolver as DNS. DHCP Server, Quick Set
If clients use the router as their DNS server, keep allow-remote-requests=yes and restrict DNS access to trusted clients in the firewall. If clients use another resolver and the router serves no DNS clients, set allow-remote-requests=no. DNS, RouterOS hardening manual
Plan VLANs before changing the bridge
Finish the basic setup before changing VLAN membership. Use the bridge VLAN filtering guide for access and trunk ports and the CAPsMAN setup guide for centrally managed access points.
Configure Wi-Fi if your router has radios
Use the menu that shows your installed radios. Devices with the modern Wi-Fi stack use /interface/wifi. Devices with the legacy wireless package use /interface/wireless. Some Wi-Fi 5 models support either package. Set up the installed driver for first boot and check model compatibility before switching. Wi-Fi manual, Wi-Fi 5 driver guide
Stay connected by Ethernet while changing Wi-Fi. Replace the example country with the country where the router operates, choose the SSID and set a unique Wi-Fi passphrase.
Modern Wi-Fi
For a typical dual-band setup, configure a radio as an AP with WPA2/WPA3 personal security and WPS disabled. Repeat for each radio you want to use, replacing wifi1 with its actual name. For a 6 GHz radio, use wpa3-psk by itself in this example. First Time Configuration, Wi-Fi manual
/interface/wifi/set wifi1 disabled=no configuration.mode=ap configuration.country=Latvia configuration.ssid="Home-WiFi" security.authentication-types=wpa2-psk,wpa3-psk security.passphrase="REPLACE_WITH_WIFI_PASSPHRASE" security.wps=disable
Legacy Wireless
Create a WPA2 security profile once and apply it to each intended radio. Use the radio’s actual name and leave its existing band and channel settings in place.
/interface/wireless/security-profiles/add name=home-wifi mode=dynamic-keys authentication-types=wpa2-psk wpa2-pre-shared-key="REPLACE_WITH_WIFI_PASSPHRASE"
/interface/wireless/set wlan1 disabled=no mode=ap-bridge country=latvia frequency-mode=regulatory-domain ssid="Home-WiFi" security-profile=home-wifi wps-mode=disabled
First Time Configuration, Wireless Interface, VLANs on Wireless
Join from a client
Run /interface/bridge/port/print and check that the radio belongs to the LAN bridge. Factory defaults usually include it. If it is missing, use /interface/bridge/port/add interface=wifi1 bridge=bridge1 with your actual radio and LAN bridge names. First Time Configuration, Bridging and Switching
On a Wi-Fi client, select the new SSID, connect with the new passphrase and verify it receives a LAN lease. Disconnect Ethernet on that client for the internet check so the result reflects Wi-Fi. Microsoft’s Wi-Fi connection steps
Verify from a client and save the finished configuration
Start with a wired client and disconnect it from Wi-Fi during these checks. On Windows, ipconfig /renew renews its lease and ipconfig /all displays the adapter settings. Microsoft’s network checks
| Check from the client | What should work |
|---|---|
| Reconnect Ethernet or renew the DHCP lease | The client gets the intended LAN address, mask, gateway and DNS server. DHCP Server |
Ping the router’s LAN IP, then a reachable public IP such as 8.8.8.8 | Both addresses respond. If the router can reach the public IP and the client cannot, check LAN forwarding and NAT. First Time Configuration, Microsoft’s ping check |
Run nslookup mikrotik.com 192.168.88.1, replacing the example IP with the client’s assigned DNS server | The resolver returns an address and an HTTPS page loads in the browser. DNS |
| Open a new IP WinBox session with the new account | Login succeeds from the intended LAN. If you have a separate untrusted subnet you control, try a fresh connection from there and confirm it is blocked. Check IPv6 separately when deployed. Firewall Filter |
Run /system/reboot during your setup window. After the router returns, repeat the wired checks and rejoin Wi-Fi if configured. When they pass, repeat the backup and export commands with a new file name and download the finished copies. RouterBOOT, Backup
Evidence and limits. The procedure is based on MikroTik’s RouterOS 7.26 manual and its hardening guidance. The steps were not run on hardware for this guide.