I have faced with the problem how to pass-through VLAN from ISP to internal Mikrotik (RB962) via new RB4011iGS+5HacQ2HnD-IN (diagram attached).
In my previous setup I have used RB2011 with VLAN filtering capable Switch chip. As per Mikrotik the new RB4011 should be able to do the same task using Bridge functionality.
Migration to new RB4011 went smoothly except VLAN part - have no ideas how to setup it.
VLAN used for IPTV traffic. It comes from ISP trunk port and gives IP for SetupBox via DHCP Client (DHCP server on ISP side).
My best attempt on RB4011 enables LAN and internet access on both routers, but no success with VLAN (standard parts were skipped):
Code: Select all
# RouterOS 6.48.4
# model = RouterBOARD RB4011iGS+5HacQ2HnD-IN
/ip dhcp-client
add comment="default configuration" disabled=no interface=ether1 use-peer-dns=no
/ip dhcp-server
add add-arp=yes address-pool=local-dhcp disabled=no interface=bridge-local lease-time=3d name=local
/ip dhcp-server network
add address=192.168.1.0/24 dns-server=192.168.1.1 gateway=192.168.1.1
/interface bridge
add name=local_bridge vlan-filtering=no
/interface bridge port
add bridge=local_bridge interface=ether2 pvid=1
add bridge=local_bridge interface=ether3 pvid=1
add bridge=local_bridge interface=ether4 pvid=6
add bridge=local_bridge interface=ether5 pvid=1
/interface bridge vlan
add bridge=local_bridge tagged=local_bridge,ether4 vlan-ids=6
add bridge=local_bridge untagged=local_bridge,ether2,ether3,ether5 vlan-ids=1
/interface bridge
set local_bridge vlan-filtering=yes
Simplified config on RB962 (worked successfully in pair with RB2011, therefore I didn't changed it):
Code: Select all
# RouterOS 6.46.4
# model = RouterBOARD 962UiGS-5HacT2HnT
/interface bridge
add comment="Bridge for local LAN (TV excluded)" name=bridge_local
/interface ethernet
set [ find default-name=ether1 ] comment="Port to RB4011 (main router)"
set [ find default-name=ether2 ] comment="Laptop2"
set [ find default-name=ether3 ] comment="XBox "
set [ find default-name=ether4 ] comment="TV SetupBox"
/interface ethernet switch port
set 0 vlan-mode=fallback
set 3 default-vlan-id=6 vlan-mode=check
/interface ethernet switch vlan
add independent-learning=no ports=ether1,ether4 switch=switch1 vlan-id=6
/interface bridge port
add bridge=bridge_local interface=ether1
add bridge=bridge_local interface=ether2
add bridge=bridge_local interface=ether3
Any help or advice would be appreciated.
-- A.