Linux Routing Configuration: Difference between revisions
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
<pre> | <pre> | ||
route add 224.0.0.0 netmask 240.0.0.0 dev <device-name> | route add 224.0.0.0 netmask 240.0.0.0 dev <device-name> | ||
<pre> | </pre> | ||
=Routing Configuration that Survives Reboot= | =Routing Configuration that Survives Reboot= | ||
Line 22: | Line 22: | ||
<pre> | <pre> | ||
default | # default multicast route | ||
224.0.0.0 netmask 240.0.0.0 dev <device-name> | |||
</pre> | </pre> |
Revision as of 17:43, 21 March 2017
Internal
Adding Multicast Routing to a Specific Network Interface
ip route add 224.0.0.0/4 dev <device-name>
More details about ip can be found here
The equivalent "route" command is:
route add 224.0.0.0 netmask 240.0.0.0 dev <device-name>
Routing Configuration that Survives Reboot
Add the routing configuration to /etc/sysconfig/network-scripts/route-<device-name>:
# default multicast route 224.0.0.0 netmask 240.0.0.0 dev <device-name>