If you wish to associate a VNIC with a VLAN, you should provide a VLAN identifier when mapping the MAC address.
To create a VNIC and associate with a VLAN, use the following example procedure:
root
, complete one of the following procedures depending on the OS version:
steps 1 to 15 as described in Set Up Ethernet Over InfiniBand on Oracle Solaris 11.1
steps 1 to 13 as described in Set Up Ethernet Over InfiniBand on Oracle Solaris 11.2
This procedure creates a VNIC, such as eoib0
.
step 16 in Set Up Ethernet Over InfiniBand on Oracle Solaris 11.1
steps 10 and 13 in Set Up Ethernet Over InfiniBand on Oracle Solaris 11.2
step 17 in Set Up Ethernet Over InfiniBand on Oracle Solaris 11.1.
second command in step 10 in Set Up Ethernet Over InfiniBand on Oracle Solaris 11.2
# showvnics
The following message is displayed:
ID STATE FLG IOA_GUID NODE IID MAC VLN PKEY GW --- -------- --- ----------------------- ---------- ---- ------------- 0 UP N 00:21:28:00:01:A0:A6:95 computenode1 EL-C 192.168.10.29 0000 62:C0:A0:A8:01:05 NO ffff 1A-ETH-3 1 UP H 00:21:28:00:01:A0:A6:95 computenode1 EL-C 192.168.10.29 8001 62:C0:A0:A8:01:02 10 ffff 1A-ETH-3 2 UP H 00:21:28:00:01:A0:A6:95 computenode1 EL-C 192.168.10.29 8002 62:C0:A0:A8:01:03 11 ffff 1A-ETH-3
Note that the VNIC with ID 0
corresponds to an already created network-administered VNIC (created using the steps described in Set Up Ethernet Over InfiniBand (EoIB) on Oracle Solaris). The two new host-administered interfaces are the ones with IDs 1
and 2
(with VLANs 10
and 11
, respectively).
Tip:
After creating the interfaces, you can run the dladm
command to verify the MAC address on the compute node. For example, to verify the new interface and its MAC address, run one of the following commands on the Oracle Solaris compute node for which the VNIC was created:
# dladm show-vnic eoib0_v10
The output of this command shows the MAC address, which is the MAC address you defined for the VNIC.