Re: [LARTC] Making packets be reflected in a router

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----- 
From: "BALU Frιdιric" <frederic.balu@xxxxxxxxxx>
To: <lartc@xxxxxxxxxxxxxxx>
Sent: Πέμπτη, 19 Ιουνίου 2003 10:20 πμ
Subject: [LARTC] Making packets be reflected in a router


> Hello,
>
>  I use a debian 2.2 server, with 2 ethernet cards.
>
>  For a course, I need to make packets from 192.168.1.0/24 to
192.168.2.0/24
> go through eth0:0(192.168.1.254), another internal IP, again another
> internal then out to 192.168.2.0/24 by eth1:0 (192.168.2.254/0).
>
>  Any idea on how to do this (I know this is NOT the mechanism a router may
> apply ...) ?
>
> eth0   : 192.168.1.1
> eth0:0 : 192.168.1.254
> eth0:1 : 192.168.3.254
> eth0:2 : 192.168.5.254
> eth1   : 192.168.2.1
> eth1:0 : 192.168.2.254
> eth1:1 : 192.168.3.254
> eth1:2 : 192.168.5.254

How many times are you going to send this e-mail, until you realize that
people in here don't know the answer? Anyways...
What you are trying to do, is somewhat impossible.
You CANNOT route traffic inside a linux box, between aliased interfaces. You
could, using some old kernels, but this feature was removed from the kernel
long ago. I remember seeing a patch somewhere but, if I remember correctly,
it us outdated.
Besides, when a subnet is connected directly on an interface, it is
automatically using a metric of 0, which automatically overrides any routing
command you may give. Any routing command uses the metric of 1 and above.
I wonder what EXACTLY were you supposed to do for the course, to imagine the
configuration you mentioned. I am curious...

- Giannis Stoilis



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux