From owner-freebsd-questions Wed Aug 30 12:59:46 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 0434C37B424 for ; Wed, 30 Aug 2000 12:59:42 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e7UJxb928799; Wed, 30 Aug 2000 12:59:37 -0700 (PDT) Date: Wed, 30 Aug 2000 12:59:37 -0700 From: Alfred Perlstein To: BWS - Offwhite Cc: freebsd-questions@FreeBSD.ORG Subject: Re: 3 NICs in 1 server Message-ID: <20000830125936.U18862@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from brennan@offwhite.net on Wed, Aug 30, 2000 at 02:14:20PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * BWS - Offwhite [000830 12:40] wrote: > I need to get 3 NICs running at once and the networking logic escapes me. > > I basically need to link a database server directly to the web > server. The database server it a dual PIII with a RAID drive and it will > act as the all powerful database. It is running mysql. Powerful.. mysql? :) > In it (A Dell PowerEdge 2450) there is one onboard NIC and card which is a > dual port NIC. So I have 3 NICs. They are running under the fxp device > as fxp0, fxp1, fxp2. I can set up them up to work just fine and here is > what I have set. > > fxp0 is 192.168.1.10 > fxp1 is 192.168.1.11 > fxp2 is 192.168.1.12 > > I have the gateway all set and I can ping inside the private network. I > also happen to have natd set up on the gateway to route public traffic to > these addresses in case I want to download source or pull files from a > remote server. > > Where I get confused is when I try to connect to another machine. I will > have a perl DBI script talking to the datbase server and the client > machine will have a very similar setup. It will have the same dual NIC > card in it running on another set of addresses. > > fxp0 is 192.168.1.20 > fxp1 is 192.168.1.21 > > So if there is a cross-over cable going from fxp0 to fxp0, logically .10 > to .20, will the mysql client be able to connect? I am not sure how I can > can tell the DBI to use a specific interface or how to tell mysql to > listen on multiple addresses. Before I determine that I need to know if > this way of networking will work. > > Is anyone else currently linking a database server directly to a web > server or other box? If so, could you give me some tips? The easiest solution would be to put the direct database links on a different subnet: webserver database outside 192.168.1.2 192.168.1.3 (netmask 255.255.255.0) inside 192.168.2.2 192.168.2.3 (netmask 255.255.255.0) Best of luck, -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message