I'm trying to configure a fiber internet connection that uses VLAN 12 for internet, VoIP and IPTV (the ISP is Meo, Portugal).
I want to have my OpenWRT router connected to the ONT and handling the internet, and then I need to connect the ISP router to OpenWRT router to handle VoIP (I'm not using IPTV).
This setup should be possible, as I used to have it working on another router.
To get the internet working, I used the following configuration:
config device
option vid '12'
option type '8021q'
option name 'eth2.12'
option ifname 'eth2'
config interface 'wan'
option proto 'dhcp'
option broadcast '1'
option peerdns '0'
option delegate '0'
option device 'eth2.12'
I was also able to make the VoIP (and ISP router) work, by following the instructions from this post.
That is, I added the following interface:
config interface 'iptv'
option proto 'none'
option ifname 'lan4.12'
And then I ran the following commands:
ip link add name iptvbridge type bridge
ip link set iptvbridge up
ip link set eth2.12 master iptvbridge
ip link set lan4.12 master iptvbridge
lan4
is the port I'm using to connect the ISP router.
This allows me to get VoIP working. However, after this I loose the internet on the OpenWRT router.
Based on this other discussion, I assume that the issue is that I cannot have eth2.12
being used by wan
interface and iptvbridge
at the same time. But I could not figure out I to solve that.
In my latest attempt, I used the following configuration:
config interface 'wan'
option proto 'dhcp'
option broadcast '1'
option peerdns '0'
option delegate '0'
list dns '1.1.1.1'
list dns '1.0.0.1'
option device 'br-iptv.12'
config device
option vid '12'
option type '8021q'
option name 'eth2.12'
option ifname 'eth2'
config device
option type 'bridge'
option name 'br-lan'
list ports 'lan0'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
config device
list ports 'eth2'
list ports 'lan4'
option type 'bridge'
option name 'br-iptv'
option bridge_empty '1'
config bridge-vlan
option device 'br-iptv'
option vlan '12'
list ports 'eth2:t'
list ports 'lan4'
In this setup the OpenWRT internet works, but the VoIP (and ISP router) do not work.
Anybody can given some pointer about how to properly configure my network?
Thanks in advance!