Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2000 12:59:37 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        BWS - Offwhite <brennan@offwhite.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: 3 NICs in 1 server
Message-ID:  <20000830125936.U18862@fw.wintelcom.net>
In-Reply-To: <Pine.BSF.4.21.0008301355470.44358-100000@home.offwhite.net>; from brennan@offwhite.net on Wed, Aug 30, 2000 at 02:14:20PM -0500
References:  <Pine.BSF.4.21.0008301355470.44358-100000@home.offwhite.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* BWS - Offwhite <brennan@offwhite.net> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000830125936.U18862>