Configure external network traffic with the Open vSwitch using SPAN to allow Virtual Network Sensor to monitor data.
NoteThe following instructions are valid as of October 2023.
|
Before you begin, make sure you have prepared a vSwitch.
Procedure
- Access Terminal on the host machine.
- Verify the name of the network interface you want to configure as the SPAN
destination and source.
- List virtual machines.virsh list --all
- Check the name of the network interface for the virtual machines.virsh domiflist VM-1
- Repeat for all other virtual machines (VM-2, VM-3, etc.).
- List virtual machines.
- Clear mirror settings.ovs-vsctl clear bridge ovsbr mirrors
- Configure SPAN settings.
ovs-vsctl \ -- set bridge ovsbr mirrors=@m \ -- --id=@s1 get port vnet1 \ -- --id=@d get port vnet0 \ -- --id=@m create mirror name=m0 select-dst-port=@s1 select-src-port=@s1 output-port=@d select-all=true
Note
The example code usesvnet0
as the destination andvnet1
as the source. You can change the port names to suit the needs of your deployment. - Verify mirror settings.ovs-vsctl -- list bridgeovs-vsctl -- list mirror