LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to add a multicast static route in centOS4.4 (https://www.linuxquestions.org/questions/linux-networking-3/how-to-add-a-multicast-static-route-in-centos4-4-a-554444/)

dozer 05-16-2007 04:05 PM

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

osor 05-16-2007 08:39 PM

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
You also might want to consider using /etc/net.

avalonit 08-05-2011 03:09 PM

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.