how to setup OVS bridge SPAN port (port mirror)

lkthomas

New Member
Feb 28, 2024
1
0
1
I have a few VMs running on vmbr9011 which is the OVS bridge, and I would like to mirror ALL traffic that happens in vmbr9011 to vmbr9020: tap158i6, and vmbr9020 also a OVS bridge, they are all in the same Proxmox server just on different OVS bridge, I tried these commands and didn't seems to forward any traffic to the tap158i6 interface as I tried to run tcpdump,

Bash:
BRIDGE_UUID=$(ovs-vsctl get Bridge vmbr9011 _uuid)
DEST_PORT_UUID=$(ovs-vsctl get Port tap158i6 _uuid)

ovs-vsctl -- --id=@p get Port $DEST_PORT_UUID \
          -- --id=@m create Mirror name=mirror0 select-all=true output-port=@p \
          -- add Bridge $BRIDGE_UUID mirrors @m
d4c1c6ff-80e2-4fb6-a864-43ed2a637ded
root@vm-1:~# ip link set  tap158i6 promisc on
root@vm-1:~# ovs-vsctl list Mirror
_uuid               : d4c1c6ff-80e2-4fb6-a864-43ed2a637ded
external_ids        : {}
name                : mirror0
output_port         : 3927226f-0db2-4e50-8eed-1d98268c9bdd
output_vlan         : []
select_all          : true
select_dst_port     : []
select_src_port     : []
select_vlan         : []
snaplen             : []
statistics          : {}

So what went wrong?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!