LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2011, 06:12 PM   #1
mbrose1994
LQ Newbie
 
Registered: May 2010
Location: Huntsville, AL
Distribution: Fedora, RHE 5
Posts: 16

Rep: Reputation: 0
Question Problem using 2 NIC cards, same subnet


I have a private network in our lab.

One particular node talks via CISCO switch to the other nodes on eth1. And, this node has to talk via crossover cable to one machine on eth0. All the nodes are configured in the same 192.168.50.x address scheme.

Of course when I toggle the NIC cards the active NIC works fine. The issue is when both are up, which ever NIC card came up first is the default. Then the other NIC card is somehow invisible, ie, does not work.

I have ip_forwarding on. I edited the network-scripts/cfg-eth[0,1] files as seemed correct. But no luck.

I did lots of google'ing looking for solutions, nothing addresses this issue so far. Most of the route and ip threads deal with NAT issues and separate subnets.

I thought eth1 could use the CISCO switch for its gateway. But, a wireshark capture shows NO ip address for the switch. The packet breakout only shows its MAC and a "mfg address" that is the first 3 bytes of the MAC. As best I can tell, does not have a dotted quad address.

Any guidance will be appreciated.

M
 
Old 03-10-2011, 06:38 PM   #2
timetraveler
Member
 
Registered: Apr 2010
Posts: 243
Blog Entries: 2

Rep: Reputation: 31
You want to have traffic destined for 192.168.50.x to go to both nics?
 
Old 03-10-2011, 08:28 PM   #3
hogar.strashni
Member
 
Registered: Dec 2007
Distribution: cp6
Posts: 44

Rep: Reputation: 2
I guess that layout of your network looks like this:
Code:
 _________                                   _________
|         |---------<CISCO switch>----------|         |
| machine |                                 | machine |
|    1    |---------------------------------|    2    |
|_________|         crossover cable         |_________|
I'm sorry if I'm underestimating your knowledge, but switch is by default second layer device. This means it is transparent for 3. layer => it doesn't have IP address. Unless it is IP switch. Is it? If I'm right that would be your first thing to fix. What did you mean, by "gateway" in "I thought eth1 could use the CISCO switch for its gateway."? It seems to me I'm not the only one who thinks you could be more verbose about what you are trying to accomplish with this network architecture.

Last edited by hogar.strashni; 03-10-2011 at 08:39 PM.
 
Old 03-11-2011, 12:00 AM   #4
mbrose1994
LQ Newbie
 
Registered: May 2010
Location: Huntsville, AL
Distribution: Fedora, RHE 5
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by timetraveler View Post
You want to have traffic destined for 192.168.50.x to go to both nics?
Not exactly.

Let me lay more details.

The node with 2 NIC cards has ip addresses: eth0 192.168.50.X5, eth1 192.168.50.X25.

I need traffic targeted to nodes 192.168.50.<X1-X4> via eth0 (192.168.50.X5).
Nodes X1-X5 all hang off the switch. It is not an ip switch, so no ip address (thanks hogar.strashni).

Traffic out the other NIC card, eth1 (192.168.50.X25), is targeted to a node with ip 192.168.50.X10.
Node X10 is connected via cross-over cable from node X25 NIC card.

_________
| eth0 X5>|--<switch>--|Nodes X1-X4|
| machine |
| 2 NICs |
|eth1 X25>|-crossover--|Node X10|
|_________|

Above is my situation to make work.

Thanks again for your responses.

M

Last edited by mbrose1994; 03-11-2011 at 12:12 AM. Reason: diagram error
 
Old 03-11-2011, 12:50 AM   #5
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

to get such a configuration work, you should split your network or configure a network brigde. You will not get it work if all nodes are part of the same subnet but requires routing to find one of the hosts.
 
1 members found this post helpful.
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding 2nd NIC diff subnet - looking for how to? tiger.woods Linux - Networking 2 04-11-2007 02:55 PM
configuration problem with two nic cards davimint Slackware 9 09-15-2006 09:56 PM
Network Problem with 2 network cards on the same subnet on Redhat seb.its Linux - Networking 6 12-24-2005 03:16 AM
Network Problem with 2 cards on the same subnet on Redhat seb.its Linux - Networking 1 12-23-2005 09:41 AM
2 network cards on same subnet. Is this ok? ForumKid Linux - Networking 5 01-14-2002 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration