hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Dedicated Server : 2 Servers, two network cards, one ethernet cable
Reply

Dedicated Server Current and past experiences with dedicated server providers, bandwidth, and server performance. Review managed and unmanaged dedicated web servers, discuss both Windows and Unix dedicated server solutions, and discuss dedicated hosting providers. If your service is unavailable, please click here.
Forum Jump

2 Servers, two network cards, one ethernet cable

Reply Post New Thread In Dedicated Server Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-09-2003, 01:10 PM
arn arn is offline
Junior Guru Wannabe
 
Join Date: Aug 2002
Posts: 45

2 Servers, two network cards, one ethernet cable


Hey...

Quick question...

Let's say I've got two servers (a and b), each with 2 network cards, both in the same hosting location.

One card in each connects to the internet, and the other cards connect to each other.

I want one server (Server B) to act as the mysql server for the other server (Server A).

Now... when writing code/scripts on Server A -- how do I ensure that I'm passing data through the direct network card? If I use Server B's IP address, is it smart enough to route directly via the direct ethernet cable... or will it go through the router --- which would still be fast, since it's all local anyhow - but would make the second network card unncesssry.

arn

Reply With Quote


Sponsored Links
  #2  
Old 05-09-2003, 01:15 PM
illogix illogix is offline
Web Hosting Master
 
Join Date: May 2001
Location: Montreal, Quebec
Posts: 589
Each server would have 2 ip addresses. One for each network card. In your script, if you connect to the ip which is bound to the network card which is connected locally, it will go throught the local network.

Reply With Quote
  #3  
Old 05-09-2003, 07:40 PM
demonmoo demonmoo is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: Ottawa
Posts: 959
just in case you can use route and tell it that its on the other network card . Since the two of them are directly connected why dont you give the secondary ethernet card on both of them a 10.*.*.*.* ip address and then eneter the route information and presto it should work :-)

Reply With Quote
Sponsored Links
  #4  
Old 05-10-2003, 05:00 AM
robinbalen robinbalen is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: UK
Posts: 1,040
Yes - just make sure you've used private IP addresses for the "internal" connection (such as 192.168.0.[1,2]). That way even if your script messes up and it's somehow sending the data over the Internet you'll know right away because those addresses won't be routable.

__________________
Robin Balen
Gyron Internet Ltd - http://gyron.net/
UK colocation, managed hosting and connectivity services with 100% uptime SLAs

Reply With Quote
  #5  
Old 05-10-2003, 09:11 AM
alilphsyc alilphsyc is offline
Account Suspended
 
Join Date: May 2003
Posts: 47
Why connect the MySQL server directly to the Internet anyway?

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Atlantic Metro Launches Cloud Tool for Businesses to Connect to Amazon Web Services Web Hosting News 2012-09-28 16:02:19
Lightower Fiber Networks Adds 100 Route Miles to New Jersey Network Web Hosting News 2012-05-07 14:34:37
Cable vs Telephone Companies - The Hosting Nexus Blog 2011-09-01 16:13:26
Telecom Cogeco Cable Acquires Data Center Firm Quiettouch Web Hosting News 2011-06-27 15:53:50
Colocation Firm US Signal Launches IaaS Cloud Offering Web Hosting News 2011-06-08 20:56:17


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?