On Mon, 23 Jan 2006 18:13:43 +0100 Sonixxfx <[EMAIL PROTECTED]> wrote:
> Thanks Andrei, but I prefer to to try it first with the two lan cards I > have. If it can't work this way, I am going to buy a router later. > > Any other suggestions? > > Thanks, > > Ben > > p.s. sorry for mailing directly to you > > 2006/1/23, Sonixxfx <[EMAIL PROTECTED]>: > > > > Thanks Andrei, but I prefer to to try it first with the two lan cards I > > have. If it can't work this way, I am going to buy a router later. > > > > Any other suggestions? > > > > Thanks, > > > > Ben > > > > 2006/1/23, Andrei Popescu <[EMAIL PROTECTED]>: > > > > > > On Sun, 22 Jan 2006 19:22:15 +0100 > > > Sonixxfx <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > > > > > I have a linux box connected directly to the internet that has two lan > > > cards > > > > installed on it. I would like to connect two other computers to those > > > cards > > > > so that they can make use of the internet connection. Can someone tell > > > me > > > > how I should configure those cards to achive this? > > > > I actually already have a setup that makes it possible for one pc to > > > connect > > > > to the internet using one of those cards, but I do not no how to > > > configure > > > > the other. I have been thinking about a different subnet and bridging > > > but I > > > > didn't really came further than that. > > > > > > > > Thanks for your help, > > > > > > > > Ben > > > > > > Cleanest way would be to buy a switch. You connect that to the second > > > card of the gateway (the computer with the internet connection) and then > > > connect the two other computers to the switch. If you buy one with "auto > > > mdix" (some-times called auto cross-over) you don't even need to worry > > > about > > > the types of cables you use (straight/patch or cross-over). If you do it > > > like this, the set-up for the second client computer is almost identical > > > (identical if you use DHCP). One other advantage with this setup is that > > > the > > > third computer does not depend on the second in any way (if I understood > > > correctly what you were proposing). > > > > > > Andrei > > > -- > > > If you can't explain it simply, you don't understand it well enough. > > > (Albert Einstein) > > > > > > > > > -- > > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > > with a subject of "unsubscribe". Trouble? Contact > > > [EMAIL PROTECTED] > > > > > > > > Maybe I didn't understand correctly. Are the 2 lancards in the gateway free? How is the gateway connected to the internet? If one of the cards is used for the internet, the only other way I can think of would be to put a third card in the gateway. If you have two *free* lan cards in the gateway (one for each client), I think it can be done. I would try shorewall as a configurator for the firewall/masquerading. Andrei P.S. A switch is not a router. For your setup a router (which is also more expensive and possibly not enough) would not be necessary. Linux can do all that you need. -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]