A
A
Astlos1452020-02-28 10:45:39
Wi-Fi
Astlos145, 2020-02-28 10:45:39

How to set up Wifi on Mikrotik?

Set up in the Mikrotik Hap AC Lite office as a Wifi point. And over time, it turned out that when several devices are connected, it falls off and goes into a long reboot, and then reconnects the devices.
Here is the config on Mikrotik
/interface bridge
add admin-mac=B8:69:F4:DC:AD:CE auto-mac=no comment=defconf name=bridge
/interface wireless
set [ find default-name=wlan1 ] antenna-gain =0 band=2ghz-b/g/n channel-width=20/40mhz-Ce country=russia disabled=no \
frequency=auto frequency-mode=superchannel installation=indoor mode=ap-bridge radio-name=Rad34 ssid= Mikrotik-2
\wireless-protocol=802.11 wps-mode=disabled
set [ find default-name=wlan2 ] antenna-gain=0 band=5ghz-a/n/ac channel-width=20/40/80mhz-Ceee country=russia disabled=no \
distance=indoors frequency=auto frequency-mode=manual-txpower installation=indoor mode=ap-bridge ssid=Mikrotik-12
/interface wireless nstreme
set wlan1 enable-polling=no
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=dynamic-keys supplicant-identity=MikroTik \
wpa-pre-shared-key wpa2-pre-shared-key=
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
/ip dhcp-server
add address-pool=dhcp interface=bridge name=defconf
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
add bridge=bridge interface=ether1
/interface list member
add comment=defconf interface=ether1 list=WAN
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether4 list=LAN
add interface=ether5 list=LAN
add interface=wlan2 list=LAN
add interface=wlan1 list=LAN
/ip address
add address=192.168.2.0/24 comment=defconf interface=ether2 network=192.168.2.0
/ip dhcp-client
add comment=defconf interface=bridge
# DHCP client can not run on slave interface!
add disabled=no interface=ether1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.2.10 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=forward comment="defconf: accept in ipsec policy" disabled=yes ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" disabled=yes ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related disabled=\
yes
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=\
established,related,untracked disabled=yes
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid disabled=yes
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new disabled=yes in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
/ip upnp
set enabled=yes
/ip upnp interfaces
add interface=bridge type=internal
add interface=ether1 type=external
/system clock
set time-zone-name=Europe/Moscow
/system identity
set name=MikroTik-1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Ziptar, 2020-03-03
@Ziptar

/interface bridge port
add bridge=bridge interface=ether1
/interface list member
add comment=defconf interface=ether1 list=WAN
/ip upnp
set enabled=yes
/ip upnp interfaces
add interface=bridge type=internal
add interface=ether1 type=external

You have a wan interface in a bridge with lan interfaces, and even with all this with upnp enabled. I wouldn't be surprised by anything.

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question