
MikroTik, part 1: first setup — access, update, LAN, DHCP, and internet
🌐 Machine-translated from Russian. Show original
In this part:
Connection and reset#
- Connect to the router via Winbox (locates the router by MAC address) or browser.
- For the office, it's convenient to start with a clean configuration:
/system reset-configuration no-defaults=yes— but then access will only be through Winbox via MAC. If unsure — keep the default configuration and change it.
Immediate access security#
/user add name=admin2 password="сложный-пароль" group=full
# после проверки входа под admin2:
/user remove admin
/ip service disable telnet,ftp,www,api,api-ssl
/ip service set winbox address=192.168.88.0/24
/ip service set ssh address=192.168.88.0/24
/tool mac-server set allowed-interface-list=LAN
/tool mac-server mac-winbox set allowed-interface-list=LAN
Access to management is only from the local network. Never leave Winbox open on the internet.
Update#
/system package update check-for-updates
/system package update install
# обновить загрузчик, затем перезагрузить роутер
/system routerboard upgrade
Use the stable channel, update regularly.
Local Area Network#
/interface bridge add name=bridge-lan
/interface bridge port add bridge=bridge-lan interface=ether2
/interface bridge port add bridge=bridge-lan interface=ether3
/ip address add address=192.168.10.1/24 interface=bridge-lan
/interface list add name=LAN
/interface list add name=WAN
/interface list member add list=LAN interface=bridge-lan
/interface list member add list=WAN interface=ether1
DHCP server#
/ip pool add name=lan-pool ranges=192.168.10.100-192.168.10.200
/ip dhcp-server network add address=192.168.10.0/24 gateway=192.168.10.1 dns-server=192.168.10.1
/ip dhcp-server add name=lan-dhcp interface=bridge-lan address-pool=lan-pool
For servers, printers, and loggers — static bindings (lease → Make Static) or out-of-pool addresses.
Internet#
The provider issues the address via DHCP:
/ip dhcp-client add interface=ether1 use-peer-dns=yes add-default-route=yes
Or PPPoE:
/interface pppoe-client add name=pppoe-isp interface=ether1 user=логин password=пароль add-default-route=yes use-peer-dns=yes
/interface list member add list=WAN interface=pppoe-isp
NAT for internet access:
/ip firewall nat add chain=srcnat out-interface-list=WAN action=masquerade
DNS for clients:
/ip dns set allow-remote-requests=yes servers=1.1.1.1,8.8.8.8
Time and backup#
/system clock set time-zone-name=Asia/Almaty
/system ntp client set enabled=yes servers=pool.ntp.org
/system backup save name=after-basic
/export file=after-basic
.backup is a binary copy for the same router, export is a text config that is convenient to read and store in git. Don't forget to immediately close the router with a firewall — part 2.
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.