[Ilugc] net.ipv4.ip_forward

  • From: mohan.tux@xxxxxxxxx (Mohan Sundaram)
  • Date: Tue Sep 1 09:05:17 2009

On Tue, Sep 1, 2009 at 8:58 AM, Mohan Sundaram<mohan.tux@xxxxxxxxx> wrote:

When a packet arrives to a box, if the destination is
not local, the packet should be forwarded. This forwarding will happen
only if the ip_forward flag is set to 1.

Rare for me to reply to my own msg. Missed adding something.

Lets say a system has 2 interfaces in 2 different subnets like what
the OP has - 192 subnet and 172 subnet. The IP address of the these
interfaces is local. Thus, any packet arriving with any of these
addresses as the destination, irrespective of the interface it comes
from is processed in the local path. A packet arriving via the 172
address interface with destination IP being that of the 192 address of
the other interface on  the same system will be processed locally and
does not need forwarding to be on.

Mohan Sundaram

Other related posts: