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 06-26-2006, 10:00 AM   #1
bkankur
LQ Newbie
 
Registered: Feb 2005
Posts: 22

Rep: Reputation: 15
Packet Mirroring


Hello friends,

I have three NIC on my pc, eth0,eth1 and eth2 respectively. The eth0 is directly connected with the internet.

I want the traffic that comes on eth0 will reach eth1 and also eth2 respectively.

For example, If Packet P1 comes to eth0, It duplicates itself and then should reach to eth1 and eth2.

So is there any way to do that please..

Thank You in Advance..

Have a Nice Time and Good Day ahead..

Regards
Ankur. :-)
 
Old 06-27-2006, 03:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
looks like you want to create a bridge interface? http://linux-net.osdl.org/index.php/Bridge
 
Old 06-27-2006, 06:44 AM   #3
bkankur
LQ Newbie
 
Registered: Feb 2005
Posts: 22

Original Poster
Rep: Reputation: 15
Hello Chris,

I want that the traffic that reaches to eth0 should also reach to eth1 and eth2 simaltaneously.

For that i have searched on the net and tryied Libipq library. By using "ipq_read" I can easily get the packets at user level but how to resend the packets back to eth1 and eth2 is not known.

So any one can through some light on this please..


Thank You..
Have a Nice time and good day ahead..

Regards
Ankur.
 
  


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
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
how do i read the data in the packet that i have captured after packet capture? gajaykrishnan Programming 23 04-19-2006 05:09 AM
dump packet data to file, but no packet header Nathanael Linux - Networking 3 02-08-2006 10:27 AM
packet fragmentation in packet forwarding code cranium2004 Linux - Networking 0 05-16-2005 04:05 AM
Suggestions for packet sniffer w/ packet viewing? TruckStuff Linux - Networking 5 05-31-2002 09:50 AM

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

All times are GMT -5. The time now is 06:24 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
Open Source Consulting | Domain Registration