Select OVS Port

Dominik Link

New Member
Hi

I'm new to proxmox and ovs. For a study project, I have to build a small virtual lab for intrusion detection (snort). Therefore, I need to have a virtual switch plus a mirror port.

I can add some ports with:

ip tuntap add mode tap <portname>
ifconfig <portname> up
ovs-vsctl add-port <bridge> <portname>

But I'm stuck at this point. It seems to work in the ovs introduction video on youtube but he is using Virtualbox instead of Proxmox. I have found configs for the mirror port but first my VM's should be able to connect to a dedicated port. Does anyone know how I should proceed?

Best regards,
Dominik
 
Thank you for the information spirit!

I could add a mirror with the automatic tapi ports and it is working as long as there are no changes (vm/host restart).
I'm going to try creating scripts in /etc/networking/if-down.d and if-up.d where I will add or remove the mirrors.

However, is there no easier solution like binding two linux bridges to the ovs bridge as ports (which does not work.. but something as simple as that :) )?

Best regards,
Dominik