Open Vswitch Mirror Port

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Mirror-Port für alle Ports und VLANs

Ziel: Der gesamte Traffic aller Ports und VLANs soll auf den Mirror-Port eth17 gespiegelt werden.

Zuerst das Interface zur Bridge hinzufügen

  • ovs-vsctl add-port br0 eth17

Mirror einrichten

  • ovs-vsctl -- --id=@eth17 get Port eth17 -- --id=@mirrorall create Mirror name=mirrorall select_all=true output-port=@eth17 -- set Bridge br0 mirrors=@mirrorall

Mirror prüfen

  • ovs-vsctl list Mirror

Mirror wieder entfernen

  • ovs-vsctl clear Bridge br0 mirrors
  • ovs-vsctl destroy Mirror mirrorall