Setting up a linux switch
Posted
by
Shahmir Javaid
on Server Fault
See other posts from Server Fault
or by Shahmir Javaid
Published on 2011-01-12T15:32:51Z
Indexed on
2011/01/12
15:55 UTC
Read the original article
Hit count: 233
linux
|networking
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
© Server Fault or respective owner