User Manual
Rev 2.0-3.0.0
Mellanox Technologies
75
Figure 3: An Example of a Virtual Network
The example above shows a few IPoIB instances that server the virtual interfaces at the Virtual
Machines.
To display the services provided to the Virtual Machine interfaces:
Example:
In the example above the ib0.2 IPoIB interface serves the MAC 52:54:00:60:55:88 with no
VLAN tag for that interface.
4.8.3 VLAN Configuration Over an eIPoIB Interface
eIPoIB driver supports VLAN Switch Tagging (VST) mode, which enables the virtual machine
interface to have no VLAN tag over it, thus allowing VLAN tagging to be handled by the Hyper-
visor.
To attach a Virtual Machine interface to a specific isolated tag:
Step 1. Verify the VLAN tag to be used has the same pkey value that is already configured on that ib
port.
Step 2. Create a VLAN interface in the Hypervisor, over the eIPoIB interface.
Step 3. Attach the new VLAN interface to the same bridge that the virtual machine interface is already
attached to.
For example, to create the VLAN tag 3 with pkey 0x8003 over that port in the eIPoIB interface
eth4, run:
# cat /sys/class/net/eth0/eth/vifs
# cat /sys/class/net/eth0/eth/vifs
SLAVE=ib0.2 MAC=52:54:00:60:55:88 VLAN=N/A
# cat /sys/class/infiniband/mlx4_0/ports/<ib port>/pkeys/*
# vconfig add <eIPoIB interface> <vlan tag>
# brctl addif <br-name> <interface-name>
#vconfig add eth4 3
#brctl addif br2 eth4.3
IPoIB LAN
(via port #1)
Host
ib0.2
ib0.3
eth0
tap0
tap1
KVM GUEST1
vif0.2
KVM GUEST2
vif0.3br0