RSC: Basic minimum configuration of an AP on a MikroTik

  1. For a successful configuration you need to plug into the MikroTik on port 4.
  2. Then paste the code below into the terminal.
  3. If everything has been pasted correctly then the last line should wait for you to press enter.
After the last command, if you press enter, you will be disconnected from the device, but there is nothing to fear after a while you will be able to reconnect.

Code to paste:

mt_ap_conf.rsc
/interface bridge
add name=bridge1
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n country=poland disabled=no \
    mode=ap-bridge ssid=<nazwa sieci wifi>
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk group-ciphers=\
    tkip,aes-ccm mode=dynamic-keys supplicant-identity=MikroTik \
    unicast-ciphers=tkip,aes-ccm wpa-pre-shared-key=<hasło do sieci wifi> \
    wpa2-pre-shared-key=<hasło do sieci wifi>
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=wlan1
/system identity
set name=<nazwa urządzenia>
/ip address
add address=<adres ip>/<ilość bitów w masce> interface=bridge1 network=<adres bazowy>
/ip route
add distance=1 gateway=<adres bramy>
/interface bridge port
add bridge=bridge1 interface=ether4

Parameters to be completed:

  1. <nazwa sieci wifi> - SSID
  2. <hasło do sieci wifi> - Passphrase
  3. <adres ip>/<ilość bitów w masce> - IP address in CIDR format
  4. <adres bazowy> - Network base address
  5. <adres bramy> - Gateway