Setting up a linux switch
- by Shahmir Javaid
I have a C++ Program to sniff each and every packet that crosses my linux box. However i need to now get my linux box to listen to every traffic in my network. I could buy a managed switch and set up port spanning, but i aint paying 200+ £'s for a switch and plus gives me a chance to learn.
My Network
+---------Computer A
|
Internet-----Router------Switch-------------+---------Linux Box
|
+---------Computer B
Proposed Network
+---------Computer A
|
Internet-----Router------Linux Box--------Switch
eth0^ ^eth1 |
+---------Computer B
How would i setup this in linux. Do i just configure both the ethernet on different IP Address on the same network. Or am i completelly on the wrong track
My System
Fedora 13.
Thanks