Date: Wed, 30 Aug 2000 15:31:37 -0500 (CDT) From: BWS - Offwhite <brennan@offwhite.net> To: Michael Hughes <mhughes@logroad.bridge.com> Cc: freebsd-questions@freebsd.org, zach@staff.onmilwaukee.com Subject: Re: 3 NICs in 1 server Message-ID: <Pine.BSF.4.21.0008301505580.44358-100000@home.offwhite.net> In-Reply-To: <200008301947.OAA15435@logroad.bridge.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Michael, thanks for the offer to help. Here is the info you requested. http://marge.onmilwaukee.com/images/network-layout.jpg Here is the layout we have. We are going to use the fxp NIC cards to do all of the networking between the database and web server machines. mysql-fxp0 talks to apache-fxp0 (192.168.1.20 to 192.168.1.10) mysql-fxp1 talks to apache-fxp1 (192.168.1.21 to 192.168.1.11) These ports are connected with crossover cables. We believe due to that direct line it is not possible for mysql-fxp0 to talk directly to apache-fxp1. After we have been looking at it here are our initial ideas. On the apache side, where the client will talk to the database, we will route all traffic to mysql-fxp0 to talk over the apache-fxp0 device. We are seeing that this is done using route or routed. We just have to learn to do it. Then we can have the database handler randomly select an IP when it is creating new handles, essentially doing a 50/50 split between interfaces allowing us to use both 100mb ports. We think this will maximize the traffic over the two ports. On the mysql side we can use natd to do address redirection to the IP which mysql is using. That is something we are already doing for our private network. This redirection will simply be isolated to one machine. If you know the specifics of how this would work that information would be very helpful. And if you have a better way to do all this, that would be even better. Thanks for the help, Brennan Stehling - web developer and sys admin projects: www.greasydaemon.com | www.onmilwaukee.com | www.sncalumni.com On Wed, 30 Aug 2000, Michael Hughes wrote: > If the WEB server and DB server are the only two machines that need to > talk to each other, use a different sub-net for them. I am not sure > what you are trying to do, can you draw an ASCII base drawing of how > the machine connect and the IP address that you are going to use? > > BWS - Offwhite said in email to me: > > > > 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. > > > > 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? > > > > Brennan Stehling - web developer and sys admin > > projects: www.greasydaemon.com | www.onmilwaukee.com | www.sncalumni.com > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > -- > Michael Hughes email:mhughes@bridge.com > Bridge Information Systems, Inc. Pager pin:3142245953 > St Louis MO Pager email:3142245953@scout.pagemart.net > 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?Pine.BSF.4.21.0008301505580.44358-100000>