Linux Routing Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:


More details about ip can be found here {{Internal|Linux ip|ip}}
More details about ip can be found here {{Internal|Linux ip|ip}}
The equivalent "route" command is:
<pre>
route add 224.0.0.0 netmask 240.0.0.0 dev <device-name>
<pre>


=Routing Configuration that Survives Reboot=
=Routing Configuration that Survives Reboot=

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

ip

The equivalent "route" command is:

route add 224.0.0.0 netmask 240.0.0.0 dev <device-name>
<pre>

=Routing Configuration that Survives Reboot=

Add the routing configuration to <tt>/etc/sysconfig/network-scripts/route-<device-name></tt>:

<pre>
default 192.168.9.10 dev eth0