Skip to content

Instantly share code, notes, and snippets.

@Mossman1215
Created September 5, 2023 03:40
Show Gist options
  • Save Mossman1215/d9155c6fe52220bed28886eb922211ac to your computer and use it in GitHub Desktop.
Save Mossman1215/d9155c6fe52220bed28886eb922211ac to your computer and use it in GitHub Desktop.
Mikrotik bridge configuration
/interface bridge
add admin-mac=18:FD:74:4A:9F:43 auto-mac=no comment=defconf name=bridge
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name="WIFI SSID" supplicant-identity="" wpa2-pre-shared-key=PASSWORDHERE
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX disabled=no distance=indoors frequency=2447 installation=indoor mode=ap-bridge security-profile="WIFI SSID" ssid=\
"WIFI SSID" wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX country="new zealand" disabled=no distance=indoors frequency=5260 installation=indoor mode=ap-bridge security-profile=\
"WIFI SSID" ssid="WIFI SSID 5G" wireless-protocol=802.11
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
add bridge=bridge interface=ether1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/ip address
add address=192.168.1.145/24 comment="Ethernet 1 LAN" interface=ether1 network=192.168.1.0
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip route
add distance=1 dst-address=192.168.1.1/32 gateway=bridge
/system clock
set time-zone-name=Pacific/Auckland
/system identity
set name="Main AP"
/system routerboard mode-button
set enabled=yes on-event=dark-mode
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment