Configure multicast network traffic to go over a specific network interface on linux

Posted by acidjunk on August 24, 2013

I’m using eth2 to connect to a seperate LAN with only some multicast video streams on it. On my linux comp I have to force listening for multicast to eth2; here is how to do it.

route add -net 224.0.0.0 netmask 240.0.0.0 dev eth2