LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-11-2008, 03:10 AM   #1
theVOID
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
Copying/routing data from eth0 to eth1 and eth2


Hi!

I have a question regarding using multiple network adapters in LINUX.

I want to take all data that comes in on eth0 and route that data out over eth1 and eth2.
The SAME data over both interfaces.

How can I accomplish this?
We have tried Iptables, TC, route etc and even looked at multilink PPP and multipath routing but all we can
get is some kind of balanxing that sends half of the data over one interface and the other half over another.

I want to route the same data out over two separate interfaces, for reduncandy.

Any tips on how to do this?

Many many thanks


Henrik
 
Old 04-11-2008, 09:58 AM   #2
stzein
Member
 
Registered: Mar 2004
Location: Antwerp, Belgium
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
What you are doing sounds like a bad idea to me. If you start sending duplicate packets your network will become a very confusing place.

The same thing you want is frequently used for another purpose though: monitoring. Usually you would configure this on the level of your network hardware, but I guess it can be done on a linux box too. Maybe with a network bridge without any of the learning features enabled?

An internet search for "port mirroring" or "port monitoring" on linux might give you some more clues.

EDIT:another option that migh be even easier: a network tap.

Last edited by stzein; 04-11-2008 at 10:06 AM.
 
Old 04-11-2008, 10:40 AM   #3
mpier
Member
 
Registered: Jan 2008
Location: Poland
Distribution: Slackware, Arch
Posts: 38

Rep: Reputation: 17
Hi,
Read /usr/src/linux/Documentation/networking/bonding.txt, maybe it was help. There is also ifenslave program.

Last edited by mpier; 04-11-2008 at 10:41 AM.
 
Old 04-14-2008, 06:30 AM   #4
theVOID
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Original Poster
Rep: Reputation: 0
The problem is now solved, thanks for the support everyone!

Last edited by theVOID; 04-29-2008 at 07:57 AM.
 
  


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
eth1 on second NIC stops routing on eth0 BethR Linux - Networking 9 01-30-2008 08:51 AM
[SOLVED] eth1 and eth2 keeps interchanging vharishankar Debian 6 03-08-2006 03:46 AM
eth0 - eth1 - eth2 and how to determine which driver they are using vharishankar Linux - Networking 7 06-02-2005 10:52 PM
Internal Routing eth1 to eth0 Dataforce Linux - Networking 3 04-02-2004 09:41 AM
eth0 eth1 and eth2 on boot sergiodemoura Linux - Newbie 4 12-03-2003 01:21 AM


All times are GMT -5. The time now is 03:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration