Code: Select all
/interface bridge
add comment=defconf fast-forward=no name=bridge
/interface ethernet
set [ find default-name=ether1 ] name=01-WAN speed=100Mbps
set [ find default-name=ether2 ] name=02-main-switch speed=100Mbps
set [ find default-name=ether3 ] speed=100Mbps
set [ find default-name=ether4 ] speed=100Mbps
set [ find default-name=ether5 ] speed=100Mbps
set [ find default-name=ether6 ] name=ether6-master speed=100Mbps
set [ find default-name=ether7 ] speed=100Mbps
set [ find default-name=ether8 ] speed=100Mbps
set [ find default-name=ether9 ] speed=100Mbps
set [ find default-name=ether10 ] speed=100Mbps
set [ find default-name=sfp1 ] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
/interface vlan
add interface=02-main-switch name=02-vlan-lan vlan-id=10
/interface list
add exclude=dynamic name=discover
add name=mactel
add name=mac-winbox
add name=WAN
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp-pool-lan ranges=192.168.10.100-192.168.10.254
/ip dhcp-server
add address-pool=dhcp-pool-lan authoritative=after-2sec-delay interface=02-vlan-lan lease-time=23h59m59s name=dhcp-server-lan
/interface bridge port
add bridge=bridge comment=defconf ingress-filtering=no interface=02-main-switch
add bridge=bridge comment=defconf ingress-filtering=no interface=ether6-master pvid=10
add bridge=bridge comment=defconf hw=no ingress-filtering=no interface=sfp1
add bridge=bridge ingress-filtering=no interface=ether3 pvid=10
add bridge=bridge ingress-filtering=no interface=ether4 pvid=10
add bridge=bridge ingress-filtering=no interface=ether5 pvid=10
add bridge=bridge ingress-filtering=no interface=ether7 pvid=10
add bridge=bridge ingress-filtering=no interface=ether8 pvid=10
add bridge=bridge ingress-filtering=no interface=ether9 pvid=10
add bridge=bridge ingress-filtering=no interface=ether10 pvid=10
/interface bridge vlan
add bridge=bridge tagged=02-main-switch vlan-ids=1-4094
/interface list member
add interface=02-main-switch list=discover
add interface=ether3 list=discover
add interface=ether4 list=discover
add interface=ether5 list=discover
add interface=sfp1 list=discover
add interface=ether6-master list=discover
add interface=ether7 list=discover
add interface=ether8 list=discover
add interface=ether9 list=discover
add interface=bridge list=discover
add interface=bridge list=mactel
add interface=bridge list=mac-winbox
add interface=ether10 list=discover
add interface=01-WAN list=WAN
/ip address
add address=192.168.10.1/24 interface=02-vlan-lan network=192.168.10.0
/ip dhcp-server network
add address=192.168.10.0/24 dns-server=192.168.10.1 gateway=192.168.10.1 netmask=24