[Cerowrt-devel] cerowrt 3.10.17-3 released

Stephen Hemminger stephen at networkplumber.org
Tue Oct 22 19:12:37 EDT 2013


With TC you can apply an action to packets coming in.
One of those actions is mirred (not a typo) which mirrors the packet
to another device. There is both mirror and redirect possible.

Jamal invented this years ago, but actions are not widely used.

Inside Vyatta CLI wrappers, the port-mirroring capability converts to tc
commands. For example doing SPAN equivalent from eth0 to eth1 is:

  tc filter add dev eth0 parent ffff: \
     protocol all prio 10 u32 \
     match u32 0 0 flowid 1:1 \
     action mirred egress mirror dev eth1

The actions apply to a filter, and this seemed to be a workable (match all)
filter.

     



More information about the Cerowrt-devel mailing list