beautypg.com

Dell Emulex Family of Adapters User Manual

Page 844

background image

Emulex Drivers Version 10.2 for Linux User Manual

P010081-01A Rev. A

3. Configuration

Ethernet Driver Configuration

844

MAC Address Configuration

The OneConnect adapter or LightPulse CFA in FCoE+NIC mode is shipped with

factory-configured MAC addresses for the network interfaces corresponding to the PFs.

The driver generates random MAC addresses for the network interfaces corresponding

to the VFs based on the factory-configured MAC address. Other MAC addresses can be

assigned for the interfaces corresponding to the VF using IP utility commands in the

hypervisor.
To configure the MAC address for the virtual function, run the following command in

the hypervisor:

# ip link set eth vf mac

where:

eth is the interface corresponding to the physical function.

is the VF number (0-based) corresponding to the interface for which you

are configuring the MAC address.

is the MAC address you are configuring.

For example, to configure the MAC address for eth0 for VF number 0, run the following

command in the hypervisor:

# ip link set eth0 vf 0 mac 00:16:88:AA:BB:AA

If the VM is already running and the VF driver is loaded, the VF MAC address can be

directly modified using the ifconfig command (without having to run the IP link set

command in Hypervisor):

# ifconfig eth0 hw ether 00:16:88:AA:BB:AA

where “eth0” is the interface corresponding to the VF in the hypervisor.

VLAN Configuration

This section includes examples for transparent tagging and virtual guest tagging (VGT)
When transparent tagging is configured for a VF, the NIC transparently tags all

non-VLAN traffic from the VF with the configured transparent VLAN ID. The VM is

not aware of the VLAN tag.
To assign a transparent VLAN ID to the VF, run the following IP command in the

hypervisor:

# ip link set eth vf vlan

where:

eth is the interface corresponding to the physical function.

is the VF number corresponding to the interface for which you are

configuring the VLAN.

is the VLAN ID you are configuring.

Example:

# ip link set eth0 vf 0 vlan 5