Thread (1 message) 1 message, 1 author, 2011-11-27

Re: [GIT PULL v2] Open vSwitch

From: jamal <hidden>
Date: 2011-11-27 21:31:45

On Sun, 2011-11-27 at 20:34 +0100, Lennert Buytenhek wrote:
On Thu, Nov 24, 2011 at 08:19:39AM -0500, Jamal Hadi Salim wrote:
There's a bunch of features that the hardware supports that have no
analog in the Linux networking stack (e.g. port mirroring a non-CPU
port to another non-CPU port),
You can mirror on Linux; eg to intercept packets on dev XXX
and mirror on eth0:

tc filter add dev XXX parent ffff: prio Y .. match blah \
action mirred egress mirror dev eth0

a more fun one to mirror to two ports:
tc filter add dev XXX parent ffff: prio Y .. match blah \
action mirred egress mirror dev eth0 \
action mirred egress mirror dev eth1

or even more fun, to mirror to two then do a total redirect:
tc filter add dev XXX parent ffff: prio Y .. match blah \
action mirred egress mirror dev eth0 \
action mirred egress mirror dev eth1 \
action mirred egress redirect dev eth2

Of course you can thrown in other actions in between those
to edit packets etc before redirecting.

cheers,
jamal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help