# aug/04/2022 00:02:34 by RouterOS 6.47 # software id = # # # /interface bridge add name=br-vlan2 add name=br-vlan3 add name=br-vlan4 add name=bridge-trunk /interface ethernet set [ find default-name=ether1 ] disable-running-check=no name=ether1-wan set [ find default-name=ether2 ] disable-running-check=no set [ find default-name=ether3 ] disable-running-check=no set [ find default-name=ether4 ] disable-running-check=no set [ find default-name=ether5 ] disable-running-check=no name=ether5-trunk /interface vlan add interface=bridge-trunk name="vlan 2" vlan-id=2 add interface=bridge-trunk name="vlan 3" vlan-id=3 add interface=bridge-trunk name="vlan 4" vlan-id=4 /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik /ip pool add name=dhcp_pool0 ranges=10.0.2.2-10.0.2.254 add name=dhcp_pool1 ranges=10.0.3.2-10.0.3.254 add name=dhcp_pool2 ranges=10.0.4.2-10.0.4.254 /ip dhcp-server add address-pool=dhcp_pool0 disabled=no interface=br-vlan2 name=dhcp1 add address-pool=dhcp_pool1 disabled=no interface=br-vlan3 name=dhcp2 add address-pool=dhcp_pool2 disabled=no interface=br-vlan4 name=dhcp3 /interface bridge port add bridge=bridge-trunk interface=ether5-trunk add bridge=br-vlan2 interface="vlan 2" add bridge=br-vlan3 interface="vlan 3" add bridge=br-vlan4 interface="vlan 4" add bridge=br-vlan4 interface=ether4 add bridge=br-vlan3 interface=ether3 add bridge=br-vlan2 interface=ether2 /ip address add address=10.0.2.1/24 interface=br-vlan2 network=10.0.2.0 add address=10.0.3.1/24 interface=br-vlan3 network=10.0.3.0 add address=10.0.4.1/24 interface=br-vlan4 network=10.0.4.0 add address=10.100.0.1/24 interface=bridge-trunk network=10.100.0.0 /ip dhcp-client add disabled=no interface=ether1-wan /ip dhcp-server network add address=10.0.2.0/24 dns-server=10.0.2.1 gateway=10.0.2.1 add address=10.0.3.0/24 dns-server=10.0.3.1 gateway=10.0.3.1 add address=10.0.4.0/24 dns-server=10.0.4.1 gateway=10.0.4.1 /ip dns set allow-remote-requests=yes /ip firewall nat add action=masquerade chain=srcnat