This will join together eth0-eth2 into a single ethernet bridge (which is what a switch is). If you're wondering about performance, test it out for yourself. There's a bit more to the above like setting each interface's IP to 0.0.0.0 if they already have one, but otherwise it's very straightforward.

+

+

</nowiki>

+

+

ettercap, dsniff, driftnet 31337 h4x0r 5k1d script

ettercap, dsniff, driftnet 31337 h4x0r 5k1d script

Latest revision as of 22:08, 15 April 2014

Homemade switch?

Yes.
bash$> brctl addbr mybridge
bash$> brctl addif mybridge eth0
bash$> brctl addif mybridge eth1
bash$> brctl addif mybridge eth2
bash$> ifconfig mybridge up
This will join together eth0-eth2 into a single ethernet bridge (which is what a switch is). If you're wondering about performance, test it out for yourself. There's a bit more to the above like setting each interface's IP to 0.0.0.0 if they already have one, but otherwise it's very straightforward.