After you configure a virtual machine with a virtual function as a PCI device, you can configure the virtual function with a static MAC address and a default VLAN with the help of the vSphere Web Client.

In the virtual machine configuration .vmx file, you can assign a static MAC address and a default VLAN to the virtual function.

Verify that the virtual function is assigned to virtual machine as a PCI device.

1

Locate the virtual machine in the vSphere Web Client.

a

To locate a virtual machine, select a datacenter, folder, cluster, resource pool, or host and click the Related Objects tab.

b

Click Virtual Machines and select the virtual machine from the list.

2

Power off the virtual machine.

3

Click the Manage tab of the virtual machine and select Settings.

4

Click the VM Options tab and expand Advanced.

5

Click Edit Configuration.

6

To assign a static MAC address, add or edit the following parameters.

Parameter

Value

pciPassthruX.MACAddressType

static

pciPassthruX.MACAddress

MAC_address_of_the_virtual_function

X next to pciPassthru stands for the sequence number of the PCI device in the virtual machine. For example, 0 in pciPassthru0 represents the settings of the PCI device added first to the virtual machine.

7

To assign a default VLAN, add or edit the pciPassthruX.defaultVlan parameter according to the following value guidelines. X next to pciPassthru stands for the sequence number of the PCI device in the virtual machine.

Option

Description

0

Allow no VLAN and do NOT allow guest VLAN tagging. In this way, administratively disallow guest VLAN tagging.

1-4095

Allow tagged only and do NOT allow guest VLAN tagging.

No entry

Allow untagged only and allow guest VLAN tagging.

8

Click OK.

9

Power on the virtual machine.