Setting up IPTV behind a Fritzbox 7360 v2 running OpenWrt

Hi
I successfully installed OpenWrt and set up the internet connection on a Fritzbox 7412, but this device only has one physical LAN port, so I want to connect a Tp-Link AC1200 to the LAN port of the Fritzbox and to use the Fritzbox as a modem only, and the Tp-Link device as a switch, router, wireless device etc. My ISP uses vlan tagging, but when I set up the necessary settings on the Tp-link router, nothing happens on the STB. I've switched on IGMP snooping on the lan port of the fritzbox. And this is where I am stuck.

IPTV connection settings on my ISP provided router modem combo:
Jegyzet 2020-02-14 102709

How is the Fritzbox configured? Does it handle the VLANs properly? Does it just bridge all the traffic?

Yeah, I think it just bridges all the traffic, because I can't find any options in the fritzbox for VLANs (I guess it would be under the "switch" menu option in the "network' tab but it is not available on this device)

Well, I think it doesn't... or this would be working :wink:

Please, be more explicit, and explain how is each device configured.

Okay, I do not know, I messed up both devices properly so im going to start again. The only thing I am in sure is how to set up the VDSL2 connection. But what should I do after that? Im very confused about that.

I would first configure the modem, then post your config here.

1 Like

With the OpenWrt defaults, the Fritzbox is likely configured as a router, not a bridge.
Does the TP-Link router also use OpenWrt?
Please post /etc/config/network from both devices.

Apparently, the 7412 model has no built-in switch. This means VLANs can be created simply by mentioning a dotted interface name like eth0.1 in the network configuration.

How do you want to access the FritzBox itself when it is in DSL bridge mode - should the management interface be part of your LAN, or in a separate subnet and VLAN?

Does your ISP use separate VLANs for Internet access and IPTV?

1 Like

Thanks for the reply! I'll post my config file soon. Im not using the defaults by the way I (somewhat) followed an instruction for the BT homehub thing which uses the same lantriq chipset as this device.

The TP-Link is using the oem firmware because it is not supportes by OpenWrt.

My ISP uses seperate vlans, vlan 10 for internet and vlan 20 for iptv.

In that tutorial i've seen something like dsl.101 and I've created a dsl.10 interface and got a working internet connection on the LAN port, but yeah I'll post my config.

Which method would you suggest for accessing the fritzbox?

I also have a feeling that I'll have to disable dhcp on the bridge modem.

Does the TP-Link AC1200's vendor firmware support 802.1Q VLAN tagging at all?

Make the management interface part of your LAN for now, but not before you have a plan for the VLANs.

Yes, disable the DHCP server in bridge mode.

1 Like

Yes, it supports 802.1Q tagging.

Found it under Network -> Advanced -> IPTV.
This VLAN support is quite limited, but might be good enough. However, I don't see a way to extend the router's LAN to the Fritzbox for management, so I have to take this back:

Instead, I suggest:

Reset OpenWrt to factory defaults. Connect your PC to the Fritzbox and log in via SSH or LuCI.
Change interface wan to proto 'none' and create bridges for VLANs 10 and 20.
The result should look like this (untested):

config interface 'wan'
	option type 'bridge'
	list ifname 'dsl0.10'
	list ifname 'eth0.10'
	option proto 'none'

config interface 'iptv'
	option type 'bridge'
	list ifname 'dsl0.20'
	list ifname 'eth0.20'
	option proto 'none'

It should be OK to keep the lan interface at its default settings.
Activate the configuration and verify that the bridges are up.
Check that the DSL link is up: /etc/init.d/dsl_control status
Post the network config here if you have further questions.

Now unplug your PC from the Fritzbox and restore the previous network wiring.
You will lose access to the Fritzbox management, but the bridging should work.

On the TP-Link router, set up internet and IPTV with their respective VLAN IDs and check if both work.

1 Like

Thanks! I'll check and report back.

Hi,

I just had a little time to test this.

here's my config file for now:

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd4b:b8ef:2b25::/48'

config atm-bridge 'atm'
        option vpi '1'
        option vci '32'
        option encaps 'llc'
        option payload 'bridged'
        option nameprefix 'dsl'

config dsl 'dsl'
        option annex 'b'
        option tone 'av'
        option ds_snr_offset '0'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config device 'lan_eth0_dev'
        option name 'eth0'
        option macaddr '38:10:D5:9F:E5:6D'

config interface 'wan'
        option proto 'none'
        option type 'bridge'
        option ifname 'dsl0.10'
        option ifname 'eth0.10'

config interface 'iptv'
        option proto 'none'
        option type 'bridge'
        option ifname 'dsl0.20'
        option ifname 'eth0.20'

config device 'wan_dsl0_dev'
        option name 'dsl0'
        option macaddr '38:10:D5:9F:E5:71'

DSL is up, set up connection type on the router as PPPOE, set up the VLAN's but there's no internet connection.
Everything is seems to be messed up in Luci, all the interfaces are marked for deletion and can not restart them. Disabled DHCP so now cant access Luci but the setup is not working, there's no internet connection on the tplink router and the dsl led of the fritzbox is not blinking just indicating a dsl connection.

edit:oh im missing a C there. but don't know what that wan_dsl0_dev is
edit2: putting a c there solved the messed up interfaces problem, but have not solved the internet issue.

This is not correct. Use either

list ifname 'dsl0.10'
list ifname 'eth0.10'

or

option ifname 'dsl0.10 eth0.10'

and similar for VLAN 20.

In case it still doesn't work, post the status of the bridge interfaces:

  • brctl show
  • ip link ls dev br-wan
  • ip link ls dev br-iptv

Please use the preformatted text tool </> for config files and terminal output, not the blockquote.

You can still access LuCI with a static IPv4 address on your PC such as 192.168.1.2, netmask 255.255.255.0.

Thanks for the reply!

So I got a Fritzbox 7360 v2 for extremly cheap and decided to pass on the previous config. But I hoped that it'll be easier but of course I have not succeeded yet on the IPTV thing. In this post I'll post all the info I have on the ISP's Combo box. Internet is set up and works great.

That's the IP addres of the STB:
lan3
IGMP Snooping is on


I have no idea about this:

Here's my network file:

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fdf5:32af:4c43::/48'

config atm-bridge 'atm'
        option vpi '1'
        option vci '32'
        option encaps 'llc'
        option payload 'bridged'
        option nameprefix 'dsl'

config dsl 'dsl'
        option annex 'b'
        option tone 'av'
        option ds_snr_offset '0'
        option xfer_mode 'ptm'

config interface 'lan'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option igmp_snooping '1'
        option ifname 'eth0.10 eth0.20'

config interface 'wan'
        option proto 'pppoe'
        option ipv6 '1'
        option username 'username'
        option password 'pass'
        option igmp_snooping '1'
        option type 'bridge'
        option ifname 'dsl0.10 dsl0.20'

config device 'wan_dsl0_dev'
        option name 'dsl0'
        option macaddr '38:10:d5:d9:0e:18'

config interface 'wan6'
        option ifname '@wan'
        option proto 'dhcpv6'

I also tried to set up a static route but it neither works nor set up on the ISP's device. Maybe I have to set up igmpproxy for this?

There are actually three networks going through the Fritzbox, they need to be kept separate.
lan : Used only to log into OpenWrt for administration, Ethernet VLAN 30
wan : Internet modem via DSL VLAN 10, Ethernet VLAN 10
TV: IPTV service via DSL VLAN 20, Ethernet VLAN 20

config interface 'lan'
    option proto static
    ....
    option ifname 'eth0.30'

config interface 'wan'
    option type 'bridge' 
    list ifname 'dsl0.10'
    list ifname 'eth0.10' 
    option proto 'none' 

config interface 'iptv'
    option type 'bridge'
    list ifname 'dsl0.20' 
    list ifname 'eth0.20'
    option proto 'none'

The device on the other end of the Ethernet cable needs to be configured to switch these VLANs to their destinations. VLAN 20 could hardware switch direct to the IPTV box. It's a pure bridge. Your router(s) should not need to examine or process TV packets at all.

1 Like

OK, you swapped the Fritzbox for a different model. I will change the title of this thread.

The Fritzbox 7360 v2 has a VDSL2 modem and 4 ethernet ports. You configured it as a router, which means it could replace the TP-Link AC1200, at least during experiments. I suggest to disconnect the TP-Link router for now if you have not done this yet.

I suspect the ethernet ports of the Fritzbox 7360 are connected to an internal switch, but I see no switch section in your network config. Could you please back up your config, reset the device to factory defaults, and post the initial OpenWrt network config (without your changes)?

Please run these commands and also post their output:

swconfig list
swconfig dev switch0 help
swconfig dev switch0 show
ip link ls

The ifnames on the lan and wan interfaces are mixed up. Since the Fritzbox is running pppoe itself, wan should only be on dsl0.10 without a bridge. lan is not right either, but I would like to see the default network config before I can give further comments.

At the moment, I don't see a need for a static route nor igmpproxy. This is based on the assumption that the IPTV VLAN is bridged to the STB as shown in this picture, not routed:

MLD is for IPv6 what IGMP is for IPv4, they both manage multicast listeners.

1 Like

Thank you for your reply,

I do not want to use the TP-Link device any more at all, and I have not used it in my experiments. I'll test these thing and report back when I'll have some time.

Hi,

these are the results of the commands on a fresh, unmolested config

**swconfig list** 

switch0 - eth0

**swconfig dev switch0 help**  

switch0: eth0(Lantiq XRX200 Switch), ports: 7 (cpu @ 6), vlans: 64
     --switch
        Attribute 1 (int): enable_vlan (Enable VLAN mode)
        Attribute 2 (none): apply (Activate changes in the hardware)
        Attribute 3 (none): reset (Reset the switch)
     --vlan
        Attribute 1 (int): vid (VLAN ID (0-4094))
        Attribute 2 (int): enable (Enable VLAN)
        Attribute 3 (ports): ports (VLAN port mapping)
     --port
        Attribute 1 (int): uvr (Unknown VLAN Rule)
        Attribute 2 (int): vsr (VLAN Security Rule)
        Attribute 3 (int): vinr (VLAN Ingress Tag Rule)
        Attribute 4 (int): tvm (Transparent VLAN Mode)
        Attribute 5 (int): pvid (Primary VLAN ID)
        Attribute 6 (unknown): link (Get port link information)

**swconfig dev switch0 show**

Global attributes:
        enable_vlan: 1
Port 0:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:0 link:down
Port 1:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:1 link:down
Port 2:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:2 link:down
Port 3:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:3 link:down
Port 4:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:4 link:up speed:1000baseT full-duplex auto
Port 5:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:5 link:down
Port 6:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:6 link:up speed:1000baseT full-duplex auto
VLAN 1:
        vid: 1
        enable: 1
        ports: 0 1 2 4 6t
 
**ip link ls**

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
    link/ether 38:10:d5:d9:0e:15 brd ff:ff:ff:ff:ff:ff
3: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 38:10:d5:d9:0e:15 brd ff:ff:ff:ff:ff:ff
4: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
    link/ether 38:10:d5:d9:0e:15 brd ff:ff:ff:ff:ff:ff

At the end of /etc/config/network there should be the default switch configuration that sets up the one VLAN with all 4 ports in it. You can VLANs there and move ports out of the default VLAN 1.

1 Like