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 ...).
Regards,
Signature · 1 line
M. BALU Frederic.
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 ...).
Regards,
Signature · 1 line
M. BALU Frederic.
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 ...).
Regards,
Signature · 1 line
M. BALU Frederic.
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 ...).
Regards,
Signature · 1 line
M. BALU Frederic.
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 ...).
Regards,
Signature · 1 line
M. BALU Frederic.
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
Regards,
Signature · 1 line
M. BALU Frederic.
----- Original Message -----
From: "BALU Frédéric" <[email protected]>
To: <[email protected]>
Sent: ÐÝìðôç, 19 Éïõíßïõ 2003 10:20 ðì
Subject: [LARTC] Making packets be reflected in a router
Quoted 5 lines
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
Quoted 6 lines
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 ...) ?
Quoted 8 lines
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/