Project

General

Profile

TeliaIPTV » History » Version 18

Mattias Wadman, 2011-02-23 12:22
Fix formatting after move from trac to redmine

1 17 matwad -
h1. Tvheadend with Telia IPTV
2
3
4 12 matwad -
This page will describe how to configure Tvheadend to receive multicast TV streams via your Telia broadband connection, note that you must be subscribed to the TV service or else the service is not provisioned to your customer port.
5 1 matwad -
6
TODO: Not using Telia switch, VLAN ID 825?
7
8
9 17 matwad -
h2. Tvheadend
10
11
12 1 matwad -
TODO:  Add groups 239.16.16.1-255, link to file with channel names etc
13
14
15 17 matwad -
h2. Ubuntu and Debian
16 1 matwad -
17 18 Mattias Wadman
Example configuration for @/etc/network/interfaces@ 
18 17 matwad -
<pre>
19 1 matwad -
iface eth1 inet dhcp
20
        vendor "TeliaSonera_VIP1910-9"
21 6 matwad -
        post-up echo 2 > /proc/sys/net/ipv4/conf/eth1/force_igmp_version
22 18 Mattias Wadman
        # rp_filter change is only needed if you have multiple network interfaces and the default route
23
        # is not routed to the interface receiving the multicast streams
24 1 matwad -
        post-up echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
25 16 matwad -
        post-up echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
26 1 matwad -
</pre>
27 18 Mattias Wadman
28
Example configuration for @/etc/dhcp3/dhclient.conf@ 
29 17 matwad -
<pre>
30 1 matwad -
interface "eth1" {
31
        vendor-class-identifier "TeliaSonera_VIP1910-9";
32 17 matwad -
}
33 1 matwad -
</pre>
34 17 matwad -
35 1 matwad -
h2. DHCP
36 17 matwad -
37
A vendor class identifier used by the Telia "STB":http://en.wikipedia.org/wiki/Set-top_box must be present in the "DHCP":http://en.wikipedia.org/wiki/DHCP request, a known working identifier is "!TeliaSonera_VIP1910-9".
38
39
For dhclient this configuration line changes the vendor class identifier.
40 1 matwad -
<pre>
41 17 matwad -
vendor-class-identifier "TeliaSonera_VIP1910-9";
42 1 matwad -
</pre>
43 17 matwad -
44
h2. IGMP
45
46
47
<pre>
48 14 matwad -
echo 2 > /proc/sys/net/ipv4/conf/eth1/force_igmp_version
49 17 matwad -
</pre>
50 6 matwad -
51 1 matwad -
52 17 matwad -
h2. Setup with multiple network interfaces
53
54
55
If the default route is not routed out on the interface used to receive the multicast stream you must disable "RPF":http://www.wlug.org.nz/ReversePathFiltering or add a route to the source IP used in the received stream otherwise the packets will be dropped by the kernel because of RPF and will not be passed on to Tvheadend.
56
57 1 matwad -
<pre>
58 15 matwad -
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
59 17 matwad -
echo 0 > /proc/sys/net/ipv4/conf/$INTERFACE/rp_filter
60
</pre>
61 1 matwad -
62
If you instead want to have RPF enabled you can add a route to the source of the multicast stream.
63 17 matwad -
<pre>
64 1 matwad -
route add -host $STREAM_SOURCE_IP gw $INTERFACE_GW dev $INTERFACE
65 17 matwad -
</pre>