IP Forwarding: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-in-linux/ =Internal= * Linux Network Concepts echo 1 > /proc/...")
 
No edit summary
Line 7: Line 7:
* [[Linux Network Concepts#Subjects|Linux Network Concepts]]
* [[Linux Network Concepts#Subjects|Linux Network Concepts]]


=Overview=


"IP forwarding" is a synonym for "routing." It is called "kernel IP forwarding" because it is implemented in the Linux kernel.
A host that acts as a router has multiple network interfaces. If traffic comes in on one interface and its target subnet is serviced by another network interface, the kernel may forward the packet between interfaces, if it is configured to do so.
<pre>
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/ip_forward
</pre>

Revision as of 19:39, 21 March 2017

External

Internal

Overview

"IP forwarding" is a synonym for "routing." It is called "kernel IP forwarding" because it is implemented in the Linux kernel.

A host that acts as a router has multiple network interfaces. If traffic comes in on one interface and its target subnet is serviced by another network interface, the kernel may forward the packet between interfaces, if it is configured to do so.

echo 1 > /proc/sys/net/ipv4/ip_forward