public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* routing between different subnets on same if.
@ 2001-01-27 17:50 Paul Jakma
  2001-01-27 18:39 ` patrick.mourlhon
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Jakma @ 2001-01-27 17:50 UTC (permalink / raw)
  To: linux-kernel

i'm trying to get linux to do routing between 2 different subnets that
are on the same physical interface, because windows hosts don't seem
to accept the redirects.

how do i do it? how do i get linux to fully route between these
subnets on behalf of clients? turn send_redirects off doesn't work,
and nothing obvious shows up with 'ip route help'... (and there's no
man page for it to tell me).

i'm using the RedHat 2.2.16 kernel.

regards,

--paulj

-
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: routing between different subnets on same if.
  2001-01-27 17:50 Paul Jakma
@ 2001-01-27 18:39 ` patrick.mourlhon
  0 siblings, 0 replies; 8+ messages in thread
From: patrick.mourlhon @ 2001-01-27 18:39 UTC (permalink / raw)
  To: linux-kernel

Hi

I just think you might look at aliasing on the linux box..

ifconfig eth0:0 ...

this might help you do the think,

regards,

patrick mourlhon

On Sat, 27 Jan 2001, Paul Jakma wrote:

> i'm trying to get linux to do routing between 2 different subnets that
> are on the same physical interface, because windows hosts don't seem
> to accept the redirects.
> 
> how do i do it? how do i get linux to fully route between these
> subnets on behalf of clients? turn send_redirects off doesn't work,
> and nothing obvious shows up with 'ip route help'... (and there's no
> man page for it to tell me).
> 
> i'm using the RedHat 2.2.16 kernel.
> 
> regards,
> 
> --paulj
> 
> -
> 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/
-
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: routing between different subnets on same if.
       [not found] ` <Pine.LNX.4.32.0101271839130.15191-100000@rossi.itg.ie>
@ 2001-01-27 18:46   ` patrick.mourlhon
  2001-01-27 19:31     ` Miquel van Smoorenburg
  2001-01-27 22:02     ` Paul Jakma
  0 siblings, 2 replies; 8+ messages in thread
From: patrick.mourlhon @ 2001-01-27 18:46 UTC (permalink / raw)
  To: Paul Jakma; +Cc: linux-kernel

did you install routed on the linux machine ?

On Sat, 27 Jan 2001, Paul Jakma wrote:

> On Sat, 27 Jan 2001 patrick.mourlhon@wanadoo.fr wrote:
> 
> > Hi Paul,
> >
> > I just think you might look for aliasing on your linux box.
> >
> 
> i have the aliasing, the aliased machine can ping IP's on both
> subnets. The machine is supposed to be a router though and clients on
> both subnets are setup to use it as their default router.. but it
> doesn't route... it notices that both IP's are on the same link and so
> just sends ICMP redirects. which doesn't help. :(
> 
> i need linux to completely route between 2 IP's even though they are
> on the same link.
> 
> regards,
> 
> --paulj
-
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: routing between different subnets on same if.
  2001-01-27 18:46   ` routing between different subnets on same if patrick.mourlhon
@ 2001-01-27 19:31     ` Miquel van Smoorenburg
  2001-01-27 22:13       ` Paul Jakma
  2001-01-27 22:02     ` Paul Jakma
  1 sibling, 1 reply; 8+ messages in thread
From: Miquel van Smoorenburg @ 2001-01-27 19:31 UTC (permalink / raw)
  To: linux-kernel

In article <20010127194659.A1326@MourOnLine.dnsalias.org>,
 <patrick.mourlhon@wanadoo.fr> wrote:
>On Sat, 27 Jan 2001, Paul Jakma wrote:
>
>> On Sat, 27 Jan 2001 patrick.mourlhon@wanadoo.fr wrote:
>> 
>> > Hi Paul,
>> >
>> > I just think you might look for aliasing on your linux box.
>> 
>> i have the aliasing, the aliased machine can ping IP's on both
>> subnets. The machine is supposed to be a router though and clients on
>> both subnets are setup to use it as their default router.. but it
>> doesn't route... it notices that both IP's are on the same link and so
>> just sends ICMP redirects. which doesn't help. :(
>> 
>> i need linux to completely route between 2 IP's even though they are
>> on the same link.

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

>did you install routed on the linux machine ?

Routed is a daemon which speaks RIP to other routers. That isn't
needed at all in this case.

Mike.

-
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: routing between different subnets on same if.
  2001-01-27 18:46   ` routing between different subnets on same if patrick.mourlhon
  2001-01-27 19:31     ` Miquel van Smoorenburg
@ 2001-01-27 22:02     ` Paul Jakma
  1 sibling, 0 replies; 8+ messages in thread
From: Paul Jakma @ 2001-01-27 22:02 UTC (permalink / raw)
  To: patrick.mourlhon; +Cc: Paul Jakma, linux-kernel

On Sat, 27 Jan 2001 patrick.mourlhon@wanadoo.fr wrote:

> did you install routed on the linux machine ?

no i have my routes statically set, but that wouldn't make a
difference. Routed just adds/deletes entries from the kernel table as
neccessary and lets the kernel do the forwarding as neccessary. so
it'd make no difference.

regards,
-- 
Paul Jakma	paul@clubi.ie	paul@jakma.org
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
The greatest productive force is human selfishness.
		-- Robert Heinlein

-
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: routing between different subnets on same if.
  2001-01-27 19:31     ` Miquel van Smoorenburg
@ 2001-01-27 22:13       ` Paul Jakma
  2001-01-27 23:15         ` Miquel van Smoorenburg
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Jakma @ 2001-01-27 22:13 UTC (permalink / raw)
  To: Miquel van Smoorenburg; +Cc: linux-kernel

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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: routing between different subnets on same if.
  2001-01-27 22:13       ` Paul Jakma
@ 2001-01-27 23:15         ` Miquel van Smoorenburg
  2001-01-28  1:53           ` Paul Jakma
  0 siblings, 1 reply; 8+ messages in thread
From: Miquel van Smoorenburg @ 2001-01-27 23:15 UTC (permalink / raw)
  To: linux-kernel

In article <Pine.LNX.4.31.0101272202060.2119-100000@fogarty.jakma.org>,
Paul Jakma  <paul@clubi.ie> wrote:
>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.

What about /proc/sys/net/ipv4/conf/*/rp_filter ? Should be zero
for the 192.* interface(s), I think.

Mike.

-
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: routing between different subnets on same if.
  2001-01-27 23:15         ` Miquel van Smoorenburg
@ 2001-01-28  1:53           ` Paul Jakma
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Jakma @ 2001-01-28  1:53 UTC (permalink / raw)
  To: Miquel van Smoorenburg; +Cc: linux-kernel

On Sat, 27 Jan 2001, Miquel van Smoorenburg wrote:

> What about /proc/sys/net/ipv4/conf/*/rp_filter ? Should be zero
> for the 192.* interface(s), I think.
>

i already have that enabled for security purposes helaas.

> Mike.

regards,
-- 
Paul Jakma	paul@clubi.ie	paul@jakma.org
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
DISCLAIMER:
Use of this advanced computing technology does not imply an endorsement
of Western industrial civilization.

PS miquel, bitbucket will jouw email niet accepteren, komt terug met
error "550 <miquels@traveler.cistron-office.nl>... Domain has
no existing recipients"


-
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-01-28  1:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20010127193234.A1166@MourOnLine.dnsalias.org>
     [not found] ` <Pine.LNX.4.32.0101271839130.15191-100000@rossi.itg.ie>
2001-01-27 18:46   ` routing between different subnets on same if patrick.mourlhon
2001-01-27 19:31     ` Miquel van Smoorenburg
2001-01-27 22:13       ` Paul Jakma
2001-01-27 23:15         ` Miquel van Smoorenburg
2001-01-28  1:53           ` Paul Jakma
2001-01-27 22:02     ` Paul Jakma
2001-01-27 17:50 Paul Jakma
2001-01-27 18:39 ` patrick.mourlhon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox