Reputation: 97
I'm trying to edit /etc/sysconfig/network-scripts/route-eth0
to make all multicast packets sent to device eth0 on RedHat 6.3
, following this guide.
I tried writing like:
224.0.0.0/4 dev eth0
but it never works.... How can I specify multicast routing on this file?
Upvotes: 0
Views: 17626
Reputation: 17467
I think you should add route in /etc/sysconfig/static-routes
One more alternative solution to save permanent route is add your route command in following file.
/etc/rc.local
also Enable MC routing in kernel
sysctl -w net.ipv4.conf.all.mc_forwarding=0
Make sure you have MC routing support in kernel. for example.
# cat /boot/config-`uname -r` | grep IP_MROUTE
CONFIG_IP_MROUTE=y
Netstat also tell you whether it enable or not
netstat -g
Upvotes: 0