Project

General

Profile

TeliaIPTV » History » Version 17

matwad -, 2010-03-15 20:31
vendor option in interfaces does not work with dhclient

1 1 matwad -
2 17 matwad -
h1. Tvheadend with Telia IPTV
3
4
5 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.
6 1 matwad -
7
TODO: Not using Telia switch, VLAN ID 825?
8
9
10 17 matwad -
h2. Tvheadend
11
12
13 1 matwad -
TODO:  Add groups 239.16.16.1-255, link to file with channel names etc
14
15
16 17 matwad -
h2. Ubuntu and Debian
17
18
19
<pre>
20
<pre>
21 1 matwad -
iface eth1 inet dhcp
22
        vendor "TeliaSonera_VIP1910-9"
23 6 matwad -
        post-up echo 2 > /proc/sys/net/ipv4/conf/eth1/force_igmp_version
24 1 matwad -
        # rp_filter change is only needed if you have multiple network interfaces
25
        # and the default route is not routed out on the multicast interface
26 16 matwad -
        post-up echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
27 1 matwad -
        post-up echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
28 17 matwad -
</pre>
29
<pre>
30
<pre>
31 1 matwad -
interface "eth1" {
32
        vendor-class-identifier "TeliaSonera_VIP1910-9";
33
}
34 17 matwad -
</pre>
35 1 matwad -
36 17 matwad -
h2. DHCP
37 1 matwad -
38 17 matwad -
39
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".
40
41 1 matwad -
For dhclient this configuration line changes the vendor class identifier.
42 17 matwad -
<pre>
43 1 matwad -
vendor-class-identifier "TeliaSonera_VIP1910-9";
44 17 matwad -
</pre>
45 1 matwad -
46
47 17 matwad -
h2. IGMP
48
49
50
<pre>
51
<pre>
52 14 matwad -
echo 2 > /proc/sys/net/ipv4/conf/eth1/force_igmp_version
53 17 matwad -
</pre>
54 6 matwad -
55 1 matwad -
56 17 matwad -
h2. Setup with multiple network interfaces
57 11 matwad -
58 17 matwad -
59
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.
60
61
<pre>
62
<pre>
63 1 matwad -
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
64 15 matwad -
echo 0 > /proc/sys/net/ipv4/conf/$INTERFACE/rp_filter
65 17 matwad -
</pre>
66
<pre>
67 1 matwad -
68
If you instead want to have RPF enabled you can add a route to the source of the multicast stream.
69 17 matwad -
<pre>
70 1 matwad -
route add -host $STREAM_SOURCE_IP gw $INTERFACE_GW dev $INTERFACE
71 17 matwad -
</pre>