How to add a multicast static route in centOS4.4
Hi,
I would like to know how to add a static route to /etc/sysconfig/network-scripts/route-eth0? I know how to do it manually via the route command. e.g. route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 which give you the following route. Destination Gateway Genmask Flags Metric Ref Use Iface 224.0.0.0 * 240.0.0.0 0 0 0 eth 0 But i would like to add the route to route-eth0 so i don't need to apply it manually everytime the server reboots. I've seen an example format for the file as 192.168.0.0/24 via 152.3.182.5 But i don't know what the equivalent is for the following route route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 What do i put after 'via' for the above multicast route. eg. 224.0.0.0/4 via ??? Cheers |
I think you want to use /etc/sysconfig/static-routes instead. You would use syntax like this (I think):
Code:
eth0 net 224.0.0.0 netmask 240.0.0.0 |
For these having similar question:
Code:
224.0.0.0/4 dev eth0 |
All times are GMT -5. The time now is 04:20 AM. |