LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2005, 04:51 AM   #1
cspcom
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
Angry Two Interfaces on the same Network


I have two interfaces on my Red Hat linux AS 3.0 in the same network:

eth0 192.168.0.200 netmask 255.255.255.0
eth1 192.168.0.201 netmask 255.255.255.0

I found that in the same network, Linux only use one interface ( most likely the last one ) eth1 for outbound/inbound traffics no matter what. if I unplug eth1's wire, eth0 won't work too. If eth1 is connected and eth0 is not then both reply. ( strange but that is how my linux box is working )

Does anyone have the same issue on how to make two interfaces
work in the same network?

Searching for an answer, i found many people wondering if this can be done and none of them find a solution. I want only to manage my interfaces acting independently.
 
Old 06-15-2005, 02:48 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

It will always follow the rules in your routing table:
route -n

Take a look at "Documentation/networking/bonding.txt" within the kernel source for information about ethernet bonding.
 
Old 06-15-2005, 04:35 PM   #3
Ikebo
Member
 
Registered: Jun 2004
Location: Michigan, USA
Distribution: Ubuntu
Posts: 77

Rep: Reputation: 15
Interesting. So with ethernet bonding you could (ideally) increase the throughput of a node on the network with multiple ethernet devices?

Do any versions of Windows have support for this technology out of the box?
 
Old 06-15-2005, 04:59 PM   #4
zackarya
Member
 
Registered: Jul 2003
Distribution: OpenSuse 10, Debian
Posts: 152

Rep: Reputation: 30
In windows (and a lot of other OSs) you can bridge network connections.
So if I had a cable connection and a dsl connection I could bridge them to act as
one connection.

I just used cable and DSL for this example but it could be anything. I remember the old
days of bridging multiple modems to get the highest speed possible. Man was it slow.

Zack
 
Old 06-15-2005, 06:48 PM   #5
cspcom
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs down

I have tried bonding feature before i post my message but it behaves the same.
I also play around with the routing table and when i managed to add the eth0 to the routing table, then still acting the same but eth0 was my default ethernet.

Note that i want to connect the eth0 to a switch ( local PCs ) and the eth1 to another switch ( Server's and Routers ). I want to make my Linux box as a gateway between the two (same) networks ( Control the traffic.. etc )

Note that i can not change any of the existing network structure and i know that if i could manage to make the ethernets acting independent i could implement it.

I am working on linux server's more than 5 years now and i did not come accross to such a situation and i am wondering why linux by default have this option.
 
Old 06-16-2005, 03:36 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What do you mean by "( Control the traffic.. etc )"?

If I understand what you are looking for you should just need to set up forwarding between the networks with iptables and allow the box to work as an arp proxy (there are some control files in /proc to enable that).
 
Old 06-18-2005, 05:32 PM   #7
cspcom
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Control the traffic between PCs and Server/Routers. Anyway, I just want to know if i can make the two interfaces act independently. I have this issue for more than two weeks and i could not find any answer using the internet.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/etc/network/interfaces angel115 Linux - Networking 1 10-23-2005 05:29 AM
Network Interfaces aussben Linux - Wireless Networking 3 12-18-2004 03:35 AM
SuSE 9.1 and two network interfaces spyderusa11 Linux - Distributions 1 08-25-2004 08:44 AM
need help with /etc/network/interfaces littlemidget Linux - Networking 1 08-04-2004 08:00 PM
2 network interfaces with IpCop Lonix Linux - Hardware 0 05-12-2004 10:16 PM


All times are GMT -5. The time now is 04:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration