Project

General

Profile

Routing IPTV with two NICs

Added by Kim Lindberg over 13 years ago

Hi, I'm new to tvheadend and linux routing!
I'm trying to setup a streaming TV server using two NICs.
so far I have tvheadend connect to multicast streams, and I have been able to watch TV on an XBMC client, but I'm unable to access the internet from the server????!!!!

if I ping some outside website (e.g. google.com), I don't get any DNS. I guess I have to setup some routes, and this is where I don't know what to do :(

my networks are as follows:

eth1: 192.168.1.11 (internal network)
eth0: 10.44.89.xxx (IPTV network)

I want tvheadend to connect to eth0 and stream TV on multicast group 233.139.xxx.yyy
the stream should be available on eth1 (htsp://192.168.1.11:9982)
Internet is available on eth1.

Internet is working fine, and IPTV is working fine, but not both at the same time :(

I guess some kind of route / gateway need to be setup.... but how??

Hope someone is able to help :)


Replies (5)

RE: Routing IPTV with two NICs - Added by Kim Lindberg over 13 years ago

I forgot to mention that eth1 has a static IP and eth0 is configured for dhcp...

RE: Routing IPTV with two NICs - Added by Mattias Wadman over 13 years ago

Maybe this is helpful http://www.lonelycoder.com/redmine/projects/tvheadend/wiki/TeliaIPTV
And if you want to make sure the default route to be out on eth0 i guess that the simplest solution is to make sure the DHCP client on eth1 does not request and configure one. Otherwise you probably need to remove it with some post-up script or do some ip route magic.

RE: Routing IPTV with two NICs - Added by Kim Lindberg over 13 years ago

Thanks, I've already tried this guide :( .....!

how do I make the DHCP client not request a gateway ???

Should I change someting in dhclient.conf?? If so, what??

RE: Routing IPTV with two NICs - Added by Mattias Wadman over 13 years ago

Try to use a dhclient config like this:

interface "eth1" {
vendor-class-identifier "TeliaSonera_VIP1910-9";
request subnet-mask, broadcast-address, domain-name, domain-name-servers, host-name;
}

Default "routers" is also requested and is usual used to set a default route

RE: Routing IPTV with two NICs - Added by Kim Lindberg over 13 years ago

This didn't work either :(

I've tried using static settings for the IPTV network, and then it works, but I'm afraid they will change the address or do something else in the future, so it would be best if the settings are provided via DHCP :)

I guess I will have to wait and see if it keeps working .....!!

    (1-5/5)