lkml.org 
[lkml]   [2001]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: routing between different subnets on same if.
On Sat, 27 Jan 2001, Miquel van Smoorenburg wrote:

> Did you enable forwarding with echo 1 > /proc/sys/net/ipv4/ip_forward ?
>

yes. the machine already routes correctly between the 2 subnets and
the internet which is on a seperate interface. i also disabled
/proc/sys/net/ipv4/conf/all/send_redirects, to no avail.

the setup is so:

eth1: public IP
eth0: 192.168.0/24 and 192.168.3/24

routing table has correct entries, the 2 private subnets are routed
out thru dev eth0 with appropriate src. eventually i just installed a
seperate NIC for 192.168.3/24 and it worked as i expected it to.

however, i still need to know how to get linux 2.2 to do complete
forwarding of packets between different logical subnets that share
the same link.(i still have a couple more logical subnets that this
machine has to route).

So do i need a seperate NIC for each logical subnet? i'm sure i
don't, but i don't see what i'm supposed to do with the 'ip' command?
different scope or realm? or ... ??
> Mike.

regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
"Nuclear war can ruin your whole compile."
-- Karl Lehenbauer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [from the cache]
©2003-2011 Jasper Spaans