LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   two network cards and multicast (https://www.linuxquestions.org/questions/linux-networking-3/two-network-cards-and-multicast-945009/)

qrange 05-15-2012 02:30 AM

two network cards and multicast
 
I have two network cards, eth0 and eth1.
please tell me how to configure it so that PC receives UDP from 224.0.0.1 on eth0 and sends UDP on 224.0.0.2 to eth1.
eth0 should not forward 224.0.0.2

thanks.

nikmit 05-15-2012 02:40 AM

This should do the job - provided that eth0 is your primary interface and a default route already exists in the main table.

ip route add default dev eth1 table 4
ip rule to 224.0.0.2 table 4

See http://linux-ip.net/gl/ip-cref/


All times are GMT -5. The time now is 08:45 AM.