Code: Select all
/interface bridge
add admin-mac=2C:C8:1B:E2:67:7C auto-mac=no name=bridge vlan-filtering=yes
/interface vlan
add interface=bridge name=vlan1010 vlan-id=1010
/interface list
add name=Mgmt
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=bridge interface=ether1
add bridge=bridge interface=ether2
add bridge=bridge interface=ether3
add bridge=bridge interface=ether4
add bridge=bridge interface=ether5
add bridge=bridge interface=ether6
add bridge=bridge interface=ether7
add bridge=bridge interface=ether8
add bridge=bridge interface=ether9
add bridge=bridge interface=ether10
add bridge=bridge interface=ether11
add bridge=bridge interface=ether12
add bridge=bridge interface=ether13
add bridge=bridge interface=ether14
add bridge=bridge interface=ether15
add bridge=bridge interface=ether16
add bridge=bridge interface=ether17
add bridge=bridge interface=ether18
add bridge=bridge interface=ether19
add bridge=bridge interface=ether20
add bridge=bridge interface=ether21
add bridge=bridge interface=ether22
add bridge=bridge interface=ether23
add bridge=bridge interface=ether24
add bridge=bridge interface=sfp-sfpplus1 pvid=1010
/ip neighbor discovery-settings
set discover-interface-list=Mgmt
/interface bridge vlan
add bridge=bridge tagged=bridge,sfp-sfpplus1 vlan-ids=1010
/interface list member
add interface=vlan1010 list=Mgmt
/ip address
add address=10.10.10.1/26 interface=vlan1010 network=10.10.10.0
/system identity
set name=val-sw1
/system ntp client
set enabled=yes primary-ntp=10.10.10.62
/system routerboard settings
set boot-os=router-os
/tool romon
set enabled=yes
/tool romon port
add disabled=no interface=vlan1010
Code: Select all
/interface bridge
add admin-mac=DC:2C:6E:41:5B:37 auto-mac=no name=bridge pvid=1010 \
vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] comment="Uplink to val-sw1"
set [ find default-name=ether2 ] comment="Uplink to val-sw2"
set [ find default-name=ether3 ] comment="Uplink to val-sw3"
set [ find default-name=ether4 ] comment="Uplink to val-sw4"
set [ find default-name=ether5 ] comment="Uplink to val-sw5"
set [ find default-name=ether6 ] comment="Uplink to val-sw6"
set [ find default-name=ether7 ] comment="Uplink to val-sw7"
set [ find default-name=sfp-sfpplus1 ] comment=WAN1
set [ find default-name=sfp-sfpplus2 ] comment=WAN2
/interface vlan
add comment="Mgmt vlan" interface=bridge name=vlan1010 vlan-id=1010
add comment="Work vlan" interface=bridge name=vlan2001 vlan-id=2001
add comment="Guest wifi vlan" interface=bridge name=vlan2002 vlan-id=2002
add comment="CCTV and Access control" interface=bridge name=vlan2003 vlan-id=\
2003
add comment=Bots interface=bridge name=vlan2004 vlan-id=2004
/interface list
add name=Mgmt
/interface bridge port
add bridge=bridge interface=ether1 pvid=1010
add bridge=bridge interface=ether2 pvid=1010
add bridge=bridge interface=ether3 pvid=1010
add bridge=bridge disabled=yes interface=ether4 pvid=1010
add bridge=bridge disabled=yes interface=ether5 pvid=1010
add bridge=bridge disabled=yes interface=ether6 pvid=1010
add bridge=bridge interface=ether7 pvid=1010
/ip neighbor discovery-settings
set discover-interface-list=Mgmt
/interface bridge vlan
add bridge=bridge tagged=\
bridge,ether1,ether2,ether3,ether4,ether5,ether6,ether7 vlan-ids=1010
add bridge=bridge tagged=\
bridge,ether1,ether2,ether3,ether4,ether5,ether6,ether7 vlan-ids=2001
add bridge=bridge tagged=bridge,ether7 vlan-ids=2002
add bridge=bridge tagged=bridge,ether7 vlan-ids=2003
add bridge=bridge tagged=\
bridge,ether1,ether2,ether3,ether4,ether5,ether6,ether7 vlan-ids=2004
/interface list member
add interface=vlan1010 list=Mgmt
/system identity
set name=val-rtr1
/tool romon
set enabled=yes
/tool romon port
set [ find default=yes ] forbid=yes
add disabled=no interface=vlan1010