LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Packet Mirroring (https://www.linuxquestions.org/questions/linux-networking-3/packet-mirroring-458438/)

bkankur 06-26-2006 10:00 AM

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. :-)

acid_kewpie 06-27-2006 03:28 AM

looks like you want to create a bridge interface? http://linux-net.osdl.org/index.php/Bridge

bkankur 06-27-2006 06:44 AM

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.


All times are GMT -5. The time now is 11:18 AM.