/interface bridge
add name=Main vlan-filtering=yes
/interface bridge port
add bridge=Main interface=sfp-sfpplus1 pvid=99
add bridge=Main interface=ether5 pvid=20
/interface bridge vlan
add bridge=Main tagged=Main,sfp-sfpplus1 vlan-ids=30
add bridge=Main tagged=sfp-sfpplus1 untagged=ether5 vlan-ids=20
add bridge=Main tagged=Main untagged=sfp-sfpplus1 vlan-ids=99
/interface vlan
add interface=Main name=Internet vlan-id=30
add interface=Main name=GPON vlan-id=99
/ip address
add address=192.168.2.2/24 interface=GPON
This config does not suit me. I have thought about another choice in which I create two different bridges:You can try to connect it directly with ISP using bridge VLAN filtering. Then router wouldn't interfere in any way, it would be only as transparent switch, and there would be no need for IGMP proxy. Changes from your config would be something like following (with IPTV Box connected to ether5):
It's from top of my head, so don't try to apply it blindly without understanding it first.Code: Select all/interface bridge add name=Main vlan-filtering=yes /interface bridge port add bridge=Main interface=sfp-sfpplus1 pvid=99 add bridge=Main interface=ether5 pvid=20 /interface bridge vlan add bridge=Main tagged=Main,sfp-sfpplus1 vlan-ids=30 add bridge=Main tagged=sfp-sfpplus1 untagged=ether5 vlan-ids=20 add bridge=Main tagged=Main untagged=sfp-sfpplus1 vlan-ids=99 /interface vlan add interface=Main name=Internet vlan-id=30 add interface=Main name=GPON vlan-id=99 /ip address add address=192.168.2.2/24 interface=GPON
This config does not suit me.
I didn't understand the part with vlan 99. Why is it created? I should have explained that SFP module works only in bridge mode and its settings (it must be set up, because the provider uses PLOAM password authentication) can only be accessed on 192.168.2.1 (this is the local address of SFP module itself, it can be set up with telnet or web interface). I decided to set an IP address 192.168.2.2 for RB5009 on sfp port and created routes with src-nat rule, so that I can access SFP module settings via telnet in Winbox or with browser on a PC.This config does not suit me.
What in particular doesn't suite you in this config?
/ip dhcp-server lease
add server=dhcp1 address=192.168.1.X comment="reservation for IPTV Box" mac-address=XX:XX:XX:XX:XX:XX
/interface vlan
add interface=sfp-sfpplus1 name=IPTV vlan-id=20
/ip dhcp-client
add interface=IPTV default-route-distance=10
/routing table
add fib name=iptv
/ip route
add dst-address=0.0.0.0/0 gateway=<gateway> routing-table=iptv
/routing rule
add src-address=192.168.1.33/32 action=lookup table=iptv
/ip firewall nat
add action=netmap chain=dstnat dst-address=<address> to-addresses=192.168.1.X
add action=netmap chain=srcnat src-address=192.168.1.X to-addresses=<address>
I will try out your first config today. Also, after some experiments I found out, that I can watch any channel on TV Box without using VLAN 20. I connect it to the router like other devices, so VLAN20 is not even used. However, I can watch channels only for 10-15 minutes, after that I can only see black picture on any channel and I have to reboot the TV Box. Then I can watch any channel again, but only for 10-15 minutes. With the ISP provided router I can watch all channels on any of 4 Ethernet ports, but on port 4 TV Box gets IP directly from VLAN20 and on other 3 ports (which are used to connect devices that use normal Internet) it gets local IP from router and works without a problem.But if either IPTV Box or something on ISP's side is picky, you want connection between them as transparent as possible, i.e. not this second config.
I will try out your first config today. Also, after some experiments I found out, that I can watch any channel on TV Box without using VLAN 20. I connect it to the router like other devices, so VLAN20 is not even used. However, I can watch channels only for 10-15 minutes, after that I can only see black picture on any channel and I have to reboot the TV Box. Then I can watch any channel again, but only for 10-15 minutes. With the ISP provided router I can watch all channels on any of 4 Ethernet ports, but on port 4 (that I assume is in bridge mode with VLAN20) TV Box gets IP directly from VLAN20 and on other 3 ports (which are used to connect devices that use normal Internet) it gets local IP from router and works without a problem. The ISP's router doesn't have DHCP Client on VLAN20, only VLAN30.But if either IPTV Box or something on ISP's side is picky, you want connection between them as transparent as possible, i.e. not this second config.
Tried out that config. However there were some issues. First of all, as I found out ISP provides Internet two ways at the same time: untagged and tagged as VLAN 30. Secondly, with this config I couldn't make my router get IP from ISP using DHCP Client.You can try to connect it directly with ISP using bridge VLAN filtering. Then router wouldn't interfere in any way, it would be only as transparent switch, and there would be no need for IGMP proxy. Changes from your config would be something like following (with IPTV Box connected to ether5):
It's from top of my head, so don't try to apply it blindly without understanding it first.Code: Select all/interface bridge add name=Main vlan-filtering=yes /interface bridge port add bridge=Main interface=sfp-sfpplus1 pvid=99 add bridge=Main interface=ether5 pvid=20 /interface bridge vlan add bridge=Main tagged=Main,sfp-sfpplus1 vlan-ids=30 add bridge=Main tagged=sfp-sfpplus1 untagged=ether5 vlan-ids=20 add bridge=Main tagged=Main untagged=sfp-sfpplus1 vlan-ids=99 /interface vlan add interface=Main name=Internet vlan-id=30 add interface=Main name=GPON vlan-id=99 /ip address add address=192.168.2.2/24 interface=GPON
That is not the problem. I made changes to my config according with what you wrote. However, there I met an issue:It wasn't complete config, it just showed changes from yours, so you'd still need to keep your original "Internet" VLAN interface for example.
Using RouterOS to VLAN your network
/interface bridge port
add bridge=Main interface=ether5 pvid=99 comment="IPTV Box port"
/interface bridge vlan
add bridge=Main tagged=sfp-sfpplus1,ether5 vlan-ids=20
add bridge=Main tagged=Main untagged=sfp-sfpplus1,ether5 vlan-ids=99