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

Re: 1 LAN, 2 IPs (Routing Problems)



Hello

> I have 1 router, 1 HUB, and 4 linux workstations (Not including the router).
> I want the network to be set up so that, requests to 1.1.1.20 go to the
> router, and reuqests for 1.1.1.21 go to my primary workstation (suffix).

A bit tricky but what about this:

a) if several workstations share on ip you need masquerading and a linux
   box to do it, assuming that "router" was a DSL<->eth "bridge/router" who
   cannot do anything further.
b) you only have one HUB so lets plug everything in it (warning:
   insecure!) We need two logical IP nets on this ethernet

       DSL ------- HUB -------WORKSTATIONS
   10.0.2.254       |        10.0.1.[1-253]
		  Linux
             *10.0.2.2 *10.0.1.254
	     *10.0.2.1

c) configuration:
   * all workstations send their packages to the default gateway 10.0.1.254.
   * This (the linux box) masquerades as 10.0.2.2.
   * The linux box itself has all services like web-server etc bound on
     10.0.2.1. Since .1 is the eth0 and not the aliased eth0:0 interface
     outgoing packets from the linux box should use this IP. (Do they?)
   * Every packet from the linux box goes to 10.0.2.254.  

bye,

 -christian-

-- 
Linux - the choice of the GNU generation.          Join the Debian Project 
                                                     http://www.debian.org 
Christian Hammers * Oberer Heidweg 35 * D-52477 Alsdorf * Tel: 02404-25624
50 3C 52 26 3E 52 E7 20  D2 A1 F5 16 C4 C9 D4 D3  1024/925BCB55 1997/11/01


Reply to: