Linux Routing Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 26: Line 26:


<pre>
<pre>
# default route
default via 192.168.1.1 dev <device-name>
# default multicast route
# default multicast route
224.0.0.0 netmask 240.0.0.0 dev <device-name>
224.0.0.0/4 via dev <device-name>
</pre>
</pre>

Revision as of 17:50, 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

ip

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 route
default via 192.168.1.1 dev <device-name>

# default multicast route
224.0.0.0/4 via dev <device-name>