[mythtv-users] IPTV and routing problems
Rob Susmilch
twosouls2gether at yahoo.com
Thu Oct 7 03:27:38 UTC 2010
Hello all, having a problem with routing and IPTV. I've done quite a bit of googling about multicast, IPTV, etc. I have it almost working, but not quite there. Sorry it's long winded, but I believe in supplying as much information up front as possible.
Setting up IPTV for mythtv on mythbuntu. I have fiber to the house which then splits to ethernet which feeds both TV and internet on the same line. I followed guides on iptv and mythtv, used wireshark to get all the dhcp address information for the cable box and can successfully receive any streaming show I want.
However, both IP addresses are dhcp as far as I know, on different subnets and gateways. I currently have two NIC's installed and simply connect both to a switch and all works for a bit. I can stream VLC to my hearts content, but mythtv has a weird problem. The first time I watch live tv it works correctly, if I change the channel it will sometimes lock on and stream the new channel correctly, but the third time it changes it locks up and seems to hang up the backend. If I kill the frontend I can neither stream with vlc or ping anything on the net. It seems that sometimes the internet will come back after a long while, but the backend locks up the tv ethernet. Restarting /etc/init.d/networking complains that it can't release or bring up eth0 (IPTV NIC).
The interesting part is if I disconnect the internet ethernet and restart networking I can stream and change channels to my hearts content, even up to three at a time so far. I believe I may have a routing problem. I did have issues receiving anything until I echoed 0 > rp_filter. I tried a 'route add 224.0.0.0 netmask 240.0.0.0 dev eth0' but it seemed to do little to nothing before I did the rp_filter. I would appreciate any help to get this to route the multicast and internet correctly.
ETH0 is the IPTV interface, ETH1 is meant for internet
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.27.254.200 0.0.0.0 255.255.255.248 U 0 0 0 eth1
172.19.152.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0
0.0.0.0 172.19.152.1 0.0.0.0 UG 100 0 0 eth0
0.0.0.0 172.27.254.201 0.0.0.0 UG 100 0 0 eth1
/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hwaddress ether 00:03:91:ba:27:65
auto eth1
iface eth1 inet dhcp
/etc/dhcp3/dhclient.conf
option private0 code 240 = text;
option private1 code 241 = text;
option private2 code 242 = text;
option private3 code 243 = text;
option private4 code 244 = text;
option private5 code 245 = text;
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
interface "eth0" {
request subnet-mask, routers, domain-name-servers, host-name, domain-name,
broadcast-address, nis-domain, nis-servers, ntp-servers, private0,
private1, private2, private3, private4, private5;
send vendor-class-identifier "udhcp_MRV3X_1_3800W(ADB)";
send dhcp-client-identifier 01:00:03:91:ba:27:65;
supersede domain-name-servers 208.67.222.222, 208.67.220.220;
}
interface "eth1" {
#send host-name "<hostname>";
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#send dhcp-lease-time 3600;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
}
ifconfig dump
eth0 Link encap:Ethernet HWaddr 00:03:91:ba:27:65
inet addr:172.19.154.106 Bcast:172.19.159.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:451175 errors:0 dropped:0 overruns:0 frame:0
TX packets:504 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:611867267 (611.8 MB) TX bytes:78558 (78.5 KB)
Interrupt:22 Base address:0xc000
eth1 Link encap:Ethernet HWaddr 00:13:d4:01:3c:98
inet addr:172.27.254.205 Bcast:172.27.254.207 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:171 errors:0 dropped:0 overruns:0 frame:0
TX packets:89 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18231 (18.2 KB) TX bytes:10161 (10.1 KB)
Interrupt:17 Base address:0xcc00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1031 errors:0 dropped:0 overruns:0 frame:0
TX packets:1031 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1612643 (1.6 MB) TX bytes:1612643 (1.6 MB)
I have lspci and lshw if needed.
More information about the mythtv-users
mailing list