11.5 Oracle Solaris: Creating VNICs and Associating Them with VLANs

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:

  1. On the gateway switch CLI, as root, complete one of the following procedures depending on the OS version:

    This procedure creates a VNIC, such as eoib0.

  2. On Oracle Solaris, VLAN-tagged VNICs may only be created from the Oracle Solaris compute node. Run one of the following procedures depending on the OS version:
  3. You can verify that the VNICs were created by running one of the following procedures depending on the OS version:
  4. Run the following command on the gateway switch CLI, as root, to verify the VNICs:

    # 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.

  5. If you want to configure the VNIC interfaces in an IPMP group on Oracle Solaris, for high availability purposes, perform on of the following procedures depending on the OS version: