[Gllug] networking problem
james.dutton at gmail.com
Fri Jul 15 09:18:45 UTC 2011
On 15 July 2011 08:46, t.clarke <tim at seacon.co.uk> wrote:
> we have a small problem at work which I am hoping might be solved with a small
> Linux box made up from an old PC (coyote floppy distribution or similar would
> be good!) :-
> The problem is we have a device which is very old, unsupported now by the
> manufacturer and no manuals available it seems, which 'talks' to the host
> on another network via a gateway of 184.108.40.206 programmed-in (we assume) as
> its default gateway. It looks very much like we are not going to be able to
> change this routing, and the gateway of 220.127.116.11 will be disappearing shortly
> (to be replaced by another with address 18.104.22.168); don't ask me why - not my
> doing!). I believe the original decision was made before it was discovered
> that re-programming the device with a new gateway was going to be problematical
> So, assuming re-programming the gateway on the device IS impossible, can we
> cheat and shove a linux box on the LAN with an IP of 22.214.171.124 and a default
> gateway of 126.96.36.199, so that the device will send its packets to the linux
> box which will then forward (over the same eth0 interface) to 188.8.131.52, for
> ultimate delivery to the far end? It would seem this will work in theory, but
> am I missing something??
You don't give us enough information, but I will assume the subnet
mask is 255.255.255.0
First I would explore whether or not you can give the new GW device 2
IP addresses. Both 184.108.40.206 and 220.127.116.11
This will save you setting up a new box.
It would help if you gave the make and model of the old box and the
new GW device.
In answer to your question. Adding a Linux box will work.
Lets call the old box with GW 18.104.22.168 is Box A.
The new linux box with IP address 22.214.171.124 is Box B
The new router is IP address 126.96.36.199 is Box C.
What happens is this (Skipping the detailed ARP and MAC address stuff):
Box A will send its first packet to Box B.
Box B will forward it onto box C.
Box B will also send an ICMP redirect to Box A.
If Box A understands ICMP redirects, the next packet Box A sends to
the same destination IP address will be sent directly to Box C.
The nice result of this is that Box B will therefore see very little
traffic. Only the first IP packet of a new destination IP address.
Gllug mailing list - Gllug at gllug.org.uk
More information about the GLLUG