Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-11-2008, 03:10 AM   #1
LQ Newbie
Registered: Feb 2008
Posts: 6

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


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

Old 04-11-2008, 09:58 AM   #2
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
Registered: Jan 2008
Location: Poland
Distribution: Slackware, Arch
Posts: 38

Rep: Reputation: 17
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
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.


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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:17 AM.

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