Linux router

George Toft plug-discuss@lists.plug.phoenix.az.us
Thu, 08 Aug 2002 07:44:11 -0400


Alaric Fox wrote:
> 
> 8/6/02 2:30:26 PM, "Dallas Helquist" <dallas@oldbrownjeep.net>
> wrote:
> 
> <snip>
> 
> >Are you going to put all 5 cards on different IP networks, or
> bridge them
> >together?
> >
> It's going to look something like this:
> 
>        +-------+
>    E1--|       |--E3
>        |gateway|
>    E2--|       |--E4
>        +-------+
>            |
>            |
>           E0
> 
> E0 will be the "real" network, E1 and E2 will be on one private
> network, and E3 and E4 will be on another private network.
> 
> --Alaric

Why not set up "E0" (eth0) as your public interface, and "E1" (eth1) as
your private interface, and bind one IP from each network onto "E1"? 
For example, if your private networks are 10.0.0.0/24 and 10.0.1.0/24,
you would have this:

      +---------+
  eth0|         |eth1 - 10.0.0.1    +--------+
------| gateway |-------------------| Switch |
  DHCP|         |eth1:0 - 10.0.1.1  +--------+
      +---------+

then plug in all of your computers to the switch.  The default gateway
for each network becomes 10.0.0.1 and 10.0.1.1, respectively, wheras
your way requires different default gateways depending on your segment. 
If you have a specific requirement to keep the segments physically
isolated, I would suggest subnetting rather than bridging.

George