Eventually I need wifi repeater for wifi devices(and this is working like a charm) and router for lan/eth devices via wlan2r interface, but looks like I am missing something
Code: Select all
# aug/09/2021 16:39:59 by RouterOS 6.43.4
# software id = NJLR-V2DA
#
# model = RB4011iGS+5HacQ2HnD
# serial number = A282096F16A1
/interface bridge
add comment="Bridge to network wirelessly extended" name=bridge1 \
protocol-mode=none
add comment="Bridge for local network" fast-forward=no name=bridge2
/interface wireless
set [ find default-name=wlan1 ] disabled=no mode=ap-bridge name=wlan5 ssid=\
mega254
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk mode=dynamic-keys \
supplicant-identity=MikroTik wpa2-pre-shared-key=pass1
add authentication-types=wpa2-psk mode=dynamic-keys name=\
wlan2-TP-Link_6B98-repeater supplicant-identity=MikroTik \
wpa2-pre-shared-key=pass2
/interface wireless
set [ find default-name=wlan2 ] band=2ghz-b/g/n channel-width=20/40mhz-eC \
disabled=no frequency=2462 mode=station-pseudobridge security-profile=\
wlan2-TP-Link_6B98-repeater ssid=TP-Link_6B98
add disabled=no mac-address=BA:69:F4:B2:47:55 master-interface=wlan2 name=\
wlan2r security-profile=wlan2-TP-Link_6B98-repeater ssid=megaex
/ip pool
add comment="Local DHCP Address Pool" name=dhcp ranges=\
10.254.0.100-10.254.0.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge2 lease-script=\
"Local DHCP server" name=dhcpserver
/interface bridge port
add bridge=bridge1 interface=wlan2r
add bridge=bridge1 interface=wlan2
add bridge=bridge2 interface=wlan5
add bridge=bridge2 interface=ether2
add bridge=bridge2 interface=ether3
add bridge=bridge2 interface=ether4
add bridge=bridge2 interface=ether5
add bridge=bridge2 interface=ether6
add bridge=bridge2 interface=ether7
add bridge=bridge2 interface=ether8
add bridge=bridge2 interface=ether9
add bridge=bridge2 interface=ether10
/interface bridge settings
set use-ip-firewall=yes
/ip address
add address=192.168.88.1/24 comment="default configuration" interface=ether1 \
network=192.168.88.0
add address=10.254.0.1/24 interface=bridge2 network=10.254.0.0
/ip dhcp-client
add comment="DHCP & DNS from remote network wirelessly extended" \
dhcp-options=hostname,clientid disabled=no interface=bridge1
/ip dhcp-server network
add address=10.254.0.0/24 dns-server=10.254.0.1 gateway=10.254.0.1 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=10.254.0.1 name=gw254.mega
add address=10.254.0.1 name=gw254
/ip firewall filter
add action=passthrough chain=forward log-prefix=firewall
add action=accept chain=forward connection-state=\
established,related,untracked log=yes log-prefix=firewall
/ip firewall nat
add action=masquerade chain=srcnat disabled=yes out-interface=ether1
add action=masquerade chain=srcnat out-interface=bridge1
add action=masquerade chain=srcnat disabled=yes out-interface=bridge2
/system identity
set name=gw254