# createvlan 1A-ETH-3 -VLAN 11 -PKEY default
Where 1A-ETH-3 is the Ethernet connector, 11 is the VLAN identifier, and
default is the partition key used in Exalogic.
If you are using Oracle Solaris compute nodes, you should also enable the
connector for untagged traffic, by running the following command on the gateway
switch:
# createvlan 1A-ETH-3 -VLAN -1 -PKEY default
2. To verify, run the following command:
# showvlan
The following information is displayed:
Connector/LAG VLN PKEY
-------------- --- -----
1A-ETH-3 0 ffff
1A-ETH-3 10 ffff
1A-ETH-3 11 ffff
Tip:
See the Example Scenario for more information.
11.4 Oracle Linux: Creating VNICs and Associating Them with VLANs
If you plan to associate a VNIC with a VLAN, you should provide a VLAN identifier
when mapping the MAC address, partition key, GUID, and Ethernet connector. In
Exalogic, the default partition key (0xFFFF) is used.
To create a VNIC and associate with a VLAN, use the following example procedure:
1.
On the gateway switch CLI, as root, complete the steps 1 through 6, as described
in Set Up Ethernet Over InfiniBand (EoIB) on Oracle Linux.
2.
Run the following command to create a VNIC and associate it with a VLAN (for
example, with VLAN 10, as shown in Tag the Ethernet Connectors With a VLAN
Identifier):
# createvnic 1A-ETH-3 -GUID 00:21:28:56:d0:a2:c0:a0 -mac
a2:c0:a0:a8:1:1 -vlan 10 -pkey default
Where 1A-ETH-3 is the Ethernet connector, 00:21:28:56:d0:a2:c0:a0 is the
GUID, a2:c0:a0:a8:1:1 is the dummy MAC address, 10 is the VLAN
identifier, and default is the partition key used in Exalogic.
This example creates a VNIC, such as eth4.
3.
To create a second VNIC using the same Ethernet connector and GUID, run the
following command to tag the VNIC with a different VLAN identifier (11):
# createvnic 1A-ETH-3 -GUID 00:21:28:56:d0:a2:c0:a0 -mac
a2:c0:a0:a8:1:a -vlan 11 -pkey default
Where 1A-ETH-3 is the Ethernet connector, 00:21:28:56:d0:a2:c0:a0 is the
GUID, a2:c0:a0:a8:1:a is the dummy MAC address defined for this second
interface, 11 is the VLAN identifier, and default is the partition key used in
Exalogic.
This example creates a VNIC, such as eth5.
Oracle Linux: Creating VNICs and Associating Them with VLANs
Set Up Virtual LANs 11-3