This section describes the configuration of 802.1Q double-tagging support to the hypervisor per Virtual Function (VF). The Virtual Machine (VM) attached to the VF (via SR-IOV) can send traffic with or without C-VLAN. Once a VF is configured to VST encapsulation, the adapter's hardware will insert C-VLAN to any packet from the VF to the physical port. On the receive side, the adapter hardware will strip the C-VLAN from any packet coming from the wire to that VF.
Configuring 802.1Q Double-Tagging per Virtual Function
- Add the required C-VLAN tag (on the hypervisor) per port per VF. There are two ways to add the C-VLAN:
By using sysfs:
By using the ip link command (available only when using the latest Kernel version):
Check the configuration using the ip link show command:
Create a VLAN interface on the VM and add an IP address.
- To verify the setup, run ping between the two VMs and open Wireshark or tcpdump to capture the packet.