AppNeta Usage - Open vSwitch (OVS) Setup for v35 on CentOS
search cancel

AppNeta Usage - Open vSwitch (OVS) Setup for v35 on CentOS

book

Article ID: 267932

calendar_today

Updated On: 10-24-2023

Products

AppNeta

Issue/Introduction

In the past we have had inquiries on how to configure Open vSwitch for Usage on the v35 for CentOS.

Resolution

Replace eno2 with eth2, as this represents your physical interface that is used for the Mirror Port.  FV refers to Usage.

 

On your CentOS VM, you will need to ensure that the following settings are configured for the OVS Bridge configuration:

  1. Create file /etc/sysconfig/network-scripts/ifcfg-ovsspan with the following settings:

    DEVICE="ovsspan"

    BOOTPROTO="none"

    ONBOOT="yes"

    TYPE="OVSBridge"

    DEVICETYPE="ovs"

  2. Update or create file /etc/sysconfig/network-scripts/ifcfg-eth2 with the following settings:

    TYPE=ethernet

    NAME=eth2

    DEVICE=eth2

    ONBOOT=yes

    OVS_BRIDGE=ovsspan

    TYPE="OVSPort"

    DEVICETYPE="ovs"

  3. Now you will need to restart networking on the CentOS machine.

    If the host supports init.d: /etc/init.d/networking restart

    if the host supports systemd: systemctl restart networking

 

 

Now we will need to create virtual network based on the OVS bridges:

  1. Create the file /tmp/ovs-net-span.xml with the following contents:

    <network>

     <name>ovs-net-span</name>

     <forward mode='bridge'/>

     <bridge name='ovsspan'/>

     <virtualport type='openvswitch'/>

    </network>

  2. With the above template created, enter the following command: virsh net-define /tmp/*.xml
    This command will create network definitions for ovs-net-lan and ovs-net-span in /etc/libvirt/qemu/networks/
  3. Now we will need to start the network and configure it to auto restart with the following commands:

    virsh net-start ovs-net-lan

    virsh net-autostart ovs-net-lan

    virsh net-start ovs-net-span

    virsh net-autostart ovs-net-span

 

Now we will need to create the VM with the appropriate interfaces. 
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/appneta/GA/appliance-overview/v35-kvm-mp-intro/v35-kvm-setup/v35-kvm-mp-setup-v35-kvm.html

  1. We will want to run the following command to create the VM, the above link will have references to command variables such as BASE_IMAGE and CONFIG_IMAGE.
    ./vk35tool.py install V35_NAME --image /var/lib/libvirt/images/BASE_IMAGE.qcow2 --config /var/lib/libvirt/images/CONFIG_IMAGE.iso --network type=bridge,source=BRIDGE_NAME type=network,source=OVS_NET_SPAN