Configuring Virtual NICs on Virtual Network Devices
To configure virtual NICs on virtual network devices, the control domain must run at least Oracle Solaris 11.1 SRU 4 OS and the guest domain must run at least the Oracle Solaris 11.1 OS.
To configure a virtual network device to host multiple MAC addresses, use the ldm add-vnet or ldm set-vnet command to specify one or more comma-separated values for the alt-mac-addrs property. Valid values are an octet MAC address and auto. The auto value indicates that the system generates the MAC address.
For example, you can specify three system-generated alternate MAC addresses for a virtual network device in either of the following ways:
-
By using the
ldm add-vnetcommand. The followingldm add-vnetcommand creates thevnet0virtual network device on thedomain1domain and makes three system-generated MAC addresses available to the device.primary# ldm add-vnet auto-alt-mac-addrs=3 vnet0 primary-vsw0 domain1 primary# ldm add-vnet alt-mac-addrs=auto,auto,auto vnet0 primary-vsw0 domain1
-
By using a combination of the
ldm add-vnetandldm set-vnetcommands. The followingldm add-vnetandldm set-vnetcommands show how to create a virtual network device and subsequently assign more MAC addresses to the existing virtual network device.The first command uses the
ldm add-vnetcommand to create thevnet1virtual network device on thedomain1domain. The second command uses theldm set-vnetcommand to make three system-generated MAC addresses available to thevnet1virtual network device.primary# ldm add-vnet vnet0 primary-vsw0 domain1 primary# ldm set-vnet alt-mac-addrs=auto,auto,auto vnet0 domain1 primary# ldm set-vnet auto-alt-mac-addrs=3 vnet0 domain1