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-vnet
command. The followingldm add-vnet
command creates thevnet0
virtual network device on thedomain1
domain 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-vnet
andldm set-vnet
commands. The followingldm add-vnet
andldm set-vnet
commands 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-vnet
command to create thevnet1
virtual network device on thedomain1
domain. The second command uses theldm set-vnet
command to make three system-generated MAC addresses available to thevnet1
virtual 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