I got a couple of RB750 and want to reuse one as a switch with VLAN functionality.
Short version:
Main Router (any Brand) provides DHCP ---> MK RB750 (handles VLANs + VLAN DHCP)---> Client with VLAN-ID get DHCP from MK
Main Router (any Brand) provides DHCP ---> MK RB750 (handles VLANs + VLAN DHCP)---> Client with NO VLAN-ID get DHCP from MAIN Router
For all intensive purposes ether1 on the MK RB750 is the link/WAN port to the Main router.
I followed this tutorial: Turn your router into a network switch https://www.youtube.com/watch?v=XKYmgtVs9kc
Build the VLANs on the Bridge
Clients with no VLAN-ID gets internet access on ether 2 - 5
Clients with VLAN-ID gets DHCP IP on ether 2 - 5 but no internet access
Added a masquerade rule on the Bridge as ether1 is included within the Bridge to no avail.
Any input would be much appreciated to get this resolve to why the VLAN Clients do not have internet access.
Code: Select all
/interface bridge
add name=bridge_ALL
/interface vlan
add interface=bridge_ALL name=VLAN20 vlan-id=20
add interface=bridge_ALL name=VLAN30 vlan-id=30
add interface=bridge_ALL name=VLAN40 vlan-id=40
add interface=bridge_ALL name=VLAN50 vlan-id=50
/ip pool
add name=VLAN20Pool ranges=192.168.20.10-192.168.20.200
add name=VLAN30Pool ranges=192.168.30.10-192.168.30.200
add name=VLAN40Pool ranges=192.168.40.10-192.168.40.200
add name=VLAN50Pool ranges=192.168.50.10-192.168.50.200
/ip dhcp-server
add address-pool=VLAN20Pool disabled=no interface=VLAN20 name=VLAN20dhcp
add address-pool=VLAN30Pool disabled=no interface=VLAN30 name=VLAN30dhcp
add address-pool=VLAN40Pool disabled=no interface=VLAN40 name=VLAN40dhcp
add address-pool=VLAN50Pool disabled=no interface=VLAN50 name=VLAN50dhcp
/interface bridge port
add bridge=bridge_ALL interface=ether1
add bridge=bridge_ALL interface=ether2
add bridge=bridge_ALL interface=ether3
add bridge=bridge_ALL interface=ether4
add bridge=bridge_ALL interface=ether5
/ip address
add address=192.168.20.1/24 interface=VLAN20 network=192.168.20.0
add address=192.168.30.1/24 interface=VLAN30 network=192.168.30.0
add address=192.168.40.1/24 interface=VLAN40 network=192.168.40.0
add address=192.168.50.1/24 interface=VLAN50 network=192.168.50.0
/ip dhcp-server network
add address=192.168.20.0/24 gateway=192.168.20.1
add address=192.168.30.0/24 gateway=192.168.30.1
add address=192.168.40.0/24 gateway=192.168.40.1
add address=192.168.50.0/24 gateway=192.168.50.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface=bridge_ALL