You can configure VNICs with primary and secondary VLAN IDs of a PVLAN to host the PVLAN traffic. For more information about PVLANs, see Chapter 4, Configuring Virtual Networks by Using Virtual Local Area Networks in Managing Network Datalinks in Oracle Solaris 11.4.
Before You Begin
Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.
$ dladm create-vnic -l link -v VLAN-ID,PVLAN-SVID,PVLAN-type VNIC
Specifies the Ethernet link over which the VLAN is created.
Primary ID associated with a VLAN.
Secondary VLAN ID associated with the PVLAN.
The PVLAN type associated with the VLAN, which can be either isolated or community. The default value is isolated.
Name of the VNIC.
$ dladm show-vnic -v
The following example shows how to create a PVLAN with the primary VLAN ID as 4, secondary VLAN ID as 110, and PVLAN type as isolated.
$ dladm create-vnic -v 4,110,community -l net1 vnic2 $ dladm show-vnic -v LINK VID SVID PVLAN-TYPE OVER vnic2 4 110 community net1