Solved

2 NICs, 2 subnets, 2 paths: can I do this?

Posted on 2004-08-09
5
248 Views
Last Modified: 2010-04-11
I have two machines, each with 2 NICs, connected to the same two subnets (192.168.1. & 192.168.2.). I was thinking of setting up my host tables like this:

On machineA:
192.168.1.11 machineA
192.168.1.12 machineB   # machineA looks for machineB on subnet 1

On machineB:
192.168.2.11 machineA
192.168.1.12 machineB   # machineB looks for machineA on subnet 2

to spread the traffic between these machines over the two subnets.  Am I setting myself up for trouble doing this?  Will it work?

I doubt it matters, but I'm running Linux (FC1).
0
Comment
Question by:jwolter
5 Comments
 
LVL 27

Expert Comment

by:pseudocyber
Comment Utility
I don't think this will work - you want traffic to travel in a circle?!?!?  

You might be able to get funky with host files, but if A initiates a conversation to B over subnet1, B will learn A's physical address and rember it (ARP cache) and use it to repy to A over subnet1, not subnet 2.

Are these machines only going to talk to each other?  So you won't have any default gateway?  Or would you put it on one subnet on one and vice versa?

I assume you're doing this as a learning experiment - if you're trying to load balance your connections and improve throughput, it won't work.
0
 
LVL 3

Expert Comment

by:fatlad
Comment Utility
You maybe able to configure some sort of FastEtherChannel link, whereby they will share a virtual MAC and then load balance traffic, never seen it done back to back and it is not possible with two different subnets!
0
 
LVL 4

Assisted Solution

by:Kooroo
Kooroo earned 25 total points
Comment Utility
Do you mean:

On machineA:
192.168.2.11 machineA <----I changed this line
192.168.1.12 machineB   # machineA looks for machineB on subnet 1

On machineB:
192.168.2.11 machineA
192.168.1.12 machineB   # machineB looks for machineA on subnet 2

I'm not sure what you're trying to accomplish here, but it looks to me like you want to reduce the load on the switches?

It looks to me like you're trying for:
Machine A makes requests to Machine B via 192.168.1 subnet
Machine B makes requests to Machine A via the 192.168.2 subnet

Of course, this is done after a name resolution, so lower level apps which don't use hostnames would use the routing table instead.

You might have to tweak your routing tables, but it should work. The problem is, there's really no point to it beyond you having an overloaded switch. And, let's face it, if 2 workstations are generating too much traffic for your swtich, it's time to buy a new switch.
0
 
LVL 11

Accepted Solution

by:
PennGwyn earned 25 total points
Comment Utility
> It looks to me like you're trying for:
> Machine A makes requests to Machine B via 192.168.1 subnet
> Machine B makes requests to Machine A via the 192.168.2 subnet

That's it exactly.  And responses will go back over the same leg as the original request.  In effect, he's got a full channel for connections initiated by A, and one for connections initiated by B.

It's crude, but it will work just fine.  Each NIC will have its own MAC address, so neither machine will "know" that both the partners it's talking to are the same machine.
0
 
LVL 1

Author Comment

by:jwolter
Comment Utility
Since people were wondering what I'm trying to do here, I've actually got a whole cluster of machines, and I happen to have two switches and two NIC's on each machine.  So I thought it might be a cheap way to spread some of the load out.  Thanks for the comments everyone.

John
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The DSL Parameters part of this article is valid and can be considered with any brand of internet router and modem (Dlink, 3com, Alcatel, Usrobotics, Parks), by accessing the configuration interface available by the manufacturer eg: http://10.1.1.1 …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now