Linux Routing Configuration: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
=External= | |||
* https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/sec-Using_the_Command_Line_Interface.html#sec-Configuring_Static_Routes_in_ifcfg_files | |||
=Internal= | =Internal= | ||
Revision as of 17:46, 21 March 2017
External
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>