Forums » Tutorial and setups »
using 2 or more network cards
Added by Brian Crawley over 5 years ago
Hello all, I have a tvheadend server (ubuntu 18.04 server) and have about 30 udp multicast streams via pipe:////usr/bin/ffmpeg . . . all is working good because the server and all subscribers are on the same network. can I add another network card bind the incoming udp streams to nic1 and have subscribers access the channels from nic1 and nic2 ? or just nic2 ? does the networking have to be setup before tvheadend install or can these changes be made after setup ? if this has been answered before please point me to the thread as all i found was multiple input card support not multiple network outputs. maybe alias multiple networks on 1 network card ? Thanks for all the help !
Replies (5)
RE: using 2 or more network cards - Added by saen acro over 5 years ago
There is no problem.
Most simple way is to use statically set ip without routing on input interfaces.
p.s.
Is UDPXY isn't better solution then PIPE for multicast?
RE: using 2 or more network cards - Added by Brian Crawley over 5 years ago
Thanks for replying. if 2 nic's is no problem then it must be my setup. i will try new install and config netplan before installing tvheadend. udpxy is designed to serve a small number of clients and is best suited for home usage so i did not try it and gigapxy is a paid program. pipe is working and cpu load on the server is ok. network first then tvheadend, thanks.
RE: using 2 or more network cards - Added by saen acro over 5 years ago
Brian Crawley wrote:
udpxy is designed to serve a small number of clients and is best suited for home usage so i did not try it and gigapxy is a paid program
Not true, work with 150 clients without any problems. on input interface ~850Mbps multicast 250 channels.
Good in scenario with UDPXY is that you can make playlist with all needed data to have channel names and EPG.
RE: using 2 or more network cards - Added by Brian Crawley over 5 years ago
got the 2 nic's working, it was issue with netplan. had to use routes and metrics instead of gateway. will install tvheadend next and test. I will try udpxy this time round, this server is for max 100 channels and around 130 clients. Thanks very much.
RE: using 2 or more network cards - Added by saen acro over 5 years ago
./udpxy -a lan0 -p 4022 -m lan1 -c 150 -B -M 60
try to use it with this command, protect port :4022 for internal usage.
Also can use Tomcast
to restream it to your clients if your structure is IGMP capable.
If not secret for what you use netplan for?
From https://netplan.io/ I see it's some semi routing option in OS.
if you try to use it as border router and re-streamer its not so good idea.