From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Giannis Stoilis" Date: Thu, 19 Jun 2003 07:55:00 +0000 Subject: Re: [LARTC] Making packets be reflected in a router Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org ----- Original Message -----=20 From: "BALU Fr=E9d=E9ric" To: Sent: =D0=DD=EC=F0=F4=E7, 19 =C9=EF=F5=ED=DF=EF=F5 2003 10:20 =F0=EC 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 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/