my ISP is delivering Internet on native VLAN, and then IPTV and VOIP on specific 2 VLANs.
I created a lab environment to fine-tune the configuration before I go to the real network.
Goal is to split the traffic at router (will be RB4011, but for the Lab I am using CRS109) and then connect via separate cables the different VLANs to CRS125 switch, where traffic should be isolated from each other (ie. CRS125 will assume the role of 2 or 3 separate switches).
I have followed this guide: viewtopic.php?t=101586
and have two questions. But first the configuration.
1) I do not care about VOIP, so even that it is configured, let's focus on IPTV and Internet.
2) IPTV boxes expect tagged traffic, so the switch for IPTV should send tagged traffic on access ports.
ISP emulation (this device emulates the incoming connection from ISP on ether2, where there is native + 2 VLANs)
Code: Select all
# nov/08/2022 11:27:20 by RouterOS 6.47.9
# software id = 61H1-88Z3
#
# model = RBmAP2nD
# serial number = DE4F0E836163
/interface bridge
add name=bridgeISP vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] comment=\
"connect to home LAN to have internet access" name=e1-to-EDI-LAN
set [ find default-name=ether2 ] comment=\
"emulation of ISP WAN connection to router" name=e2-emulate-ISP-WAN \
poe-out=off
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface vlan
add interface=bridgeISP name=vlanIPTV3281 vlan-id=3281
add interface=bridgeISP name=vlanVOIP3282 vlan-id=3282
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp_pool5 ranges=10.20.30.2-10.20.30.254
add name=dhcp_pool6 ranges=10.32.81.2-10.32.81.254
add name=dhcp_pool7 ranges=10.32.82.2-10.32.82.254
/ip dhcp-server
add address-pool=dhcp_pool5 disabled=no interface=bridgeISP name=dhcp1
add address-pool=dhcp_pool6 disabled=no interface=vlanIPTV3281 name=dhcp2
add address-pool=dhcp_pool7 disabled=no interface=vlanVOIP3282 name=dhcp3
/interface bridge port
add bridge=bridgeISP hw=no interface=e2-emulate-ISP-WAN
add bridge=bridgeISP interface=vlanIPTV3281
add bridge=bridgeISP interface=vlanVOIP3282
/interface bridge vlan
add bridge=bridgeISP tagged=vlanIPTV3281,e2-emulate-ISP-WAN,bridgeISP \
vlan-ids=3281
add bridge=bridgeISP tagged=vlanVOIP3282,e2-emulate-ISP-WAN,bridgeISP \
vlan-ids=3282
/ip address
add address=10.32.81.1/24 interface=vlanIPTV3281 network=10.32.81.0
add address=10.32.82.1/24 interface=vlanVOIP3282 network=10.32.82.0
add address=10.20.30.1/24 interface=bridgeISP network=10.20.30.0
/ip dhcp-client
add disabled=no interface=e1-to-EDI-LAN
/ip dhcp-server network
add address=10.20.30.0/24 gateway=10.20.30.1
add address=10.32.81.0/24 gateway=10.32.81.1
add address=10.32.82.0/24 gateway=10.32.82.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface=e1-to-EDI-LAN
/ip route
add disabled=yes distance=1 gateway=e1-to-EDI-LAN
/system identity
set name=emulateISP
Router - CRS109
1) No firewall rules at the moment for LAB.
2) On eth8 I run management access network also connected to CRS125. It's not the proper plan management, it's only for the Lab purposes, no need to focus on it.
Code: Select all
# nov/09/2022 21:37:41 by RouterOS 6.49.7
# software id = 4N0Y-WMM0
#
# model = CRS109-8G-1S-2HnD
# serial number = 522D04C45082
/interface bridge
add name=bridge-iptv vlan-filtering=yes
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface ethernet
set [ find default-name=ether6 ] name=ether3-LANs
set [ find default-name=ether4 ] name=ether4-IPTV
set [ find default-name=ether5 ] name=ether5-VOIP
/interface vlan
add interface=ether1 name=iptv-vlan vlan-id=3281
add interface=ether1 name=voip-vlan vlan-id=3282
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool1 ranges=192.168.5.2-192.168.5.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=ether8 name=dhcp1
/interface bridge port
add bridge=bridge-iptv interface=iptv-vlan
add bridge=bridge-iptv interface=ether4-IPTV
/interface bridge vlan
add bridge=bridge-iptv tagged=ether1,bridge-iptv,iptv-vlan,ether4-IPTV \
vlan-ids=3281
/ip address
add address=192.168.5.1/24 interface=ether8 network=192.168.5.0
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.5.0/24 dns-server=192.168.5.1 gateway=192.168.5.1
Switch - CRS125
1) Goal here is to have separate groups of ports (currently separate bridges are used, I haven't been successful with port isolation for some reason) for IPTV and LANs.
2) IPTV group are eth9-eth16, where eth9 is uplink to router (tagged), eth10-eth15 are also tagged, and eth16 is untagged (for testing purposes, so that I can see if I get IP assigned).
3) eth23 & eth24 are for admin access (same as eth8 in router) - no need to take into consideration.
Code: Select all
# jan/01/2002 01:04:28 by RouterOS 6.49.1
# software id = 93ZN-U8NZ
#
# model = CRS125-24G-1S-2HnD
# serial number = 6232056FF060
/interface bridge
add name=bridge-admin
add name=bridge-iptv pvid=3281 vlan-filtering=yes
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=bridge-iptv interface=ether9
add bridge=bridge-iptv interface=ether10
add bridge=bridge-iptv interface=ether11
add bridge=bridge-iptv interface=ether12
add bridge=bridge-iptv interface=ether13
add bridge=bridge-iptv interface=ether14
add bridge=bridge-iptv interface=ether15
add bridge=bridge-iptv interface=ether16
add bridge=bridge-admin interface=ether24
add bridge=bridge-admin interface=ether23
/interface bridge vlan
add bridge=bridge-iptv tagged=\
ether9,bridge-iptv,ether10,ether11,ether12,ether13,ether14,ether15 \
untagged=ether16 vlan-ids=3281
/ip address
add address=192.168.5.2/24 interface=bridge-admin network=192.168.5.0
Question #1:
Is the router configuration the right one (I took it from the post mentioned at the beginning), considering what is written in "Layer2 misconfiguration" topic, specifically the section "VLAN in a bridge with a physical interface"?
To me it seems to be exactly the case.Code: Select all/interface vlan add interface=ether1 name=VLAN99 vlan-id=99 /interface bridge add name=bridge1 /interface bridge port add interface=ether2 bridge=bridge1 add interface=VLAN99 bridge=bridge1
But then what would be my configuration for ether1 with native VLAN and 2 other VLANs? Something like this?
Code: Select all
/interface bridge vlan
add bridge=bridge1 tagged=ether1 untagged=ether3 vlan-ids=1
add bridge=bridge1 tagged=ether1 untagged=ether4 vlan-ids=3281
add bridge=bridge1 tagged=ether1 untagged=ether5 vlan-ids=3282
Question #2:
When I want to use HW offload on CRS125, I have to go for Switch chip VLANs. When I applied the following configuration, I do not get an IP when I connect to ether16.
Code: Select all
# jan/01/2002 01:12:01 by RouterOS 6.49.1
# software id = 93ZN-U8NZ
#
# model = CRS125-24G-1S-2HnD
# serial number = 6232056FF060
/interface bridge
add name=bridge-admin
add name=bridge-iptv
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface ethernet switch
set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports=\
ether9,ether10,ether11,ether12,ether13,ether14,ether15,ether16
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=bridge-iptv interface=ether9
add bridge=bridge-iptv interface=ether10
add bridge=bridge-iptv interface=ether11
add bridge=bridge-iptv interface=ether12
add bridge=bridge-iptv interface=ether13
add bridge=bridge-iptv interface=ether14
add bridge=bridge-iptv interface=ether15
add bridge=bridge-iptv interface=ether16
add bridge=bridge-admin interface=ether24
add bridge=bridge-admin interface=ether23
/interface ethernet switch egress-vlan-tag
add tagged-ports=ether9,ether10,ether11,ether12,ether13,ether14,ether15 \
vlan-id=3281
/interface ethernet switch ingress-vlan-translation
add new-customer-vid=3281 ports=ether16
/interface ethernet switch vlan
add ports=ether9,ether10,ether11,ether12,ether13,ether14,ether15,ether16 \
vlan-id=3281
/ip address
add address=192.168.5.2/24 interface=bridge-admin network=192.168.5.0
If this is the reason, can you please provide some guidance how to achieve what I need on CRS125. As I mentioned, my first attempt (I did not save the config) with the port isolation did not work.Warning: Multiple hardware offloaded bridge configuration is designed as fast and simple port isolation solution, but it limits part of VLAN functionality supported by CRS switch-chip. For advanced configurations use one bridge within CRS switch chip for all ports, configure VLANs and isolate port groups with port isolation profile configuration.
Sorry for a long post, but I tried to include everything important.
Thanks.
B.