You can either create a PVLAN by using the dladm create-vlan or configure a PVLAN VNIC to host the PVLAN traffic by using the dladm create-vnic command. For information about configuring a PVLAN VNIC, see How to Configure VNICs as PVLANs in Managing Network Virtualization and Network Resources in Oracle Solaris 11.3.
To create a PVLAN, use the following command:
dladm create-vlan [ -l link -v VLAN-ID[,PVLAN-SVID[,PVLAN-type]] [VLAN-link]
Specifies the Ethernet link over which the VLAN is created.
Primary ID associated with a VLAN.
PVLAN Secondary VLAN ID associated with the VLAN.
PVLAN type associated with the VLAN, which can be either isolated or community. The default value is isolated.
Name of the VLAN.
The following example shows how you can create a PVLAN with a primary VLAN ID of 3, a secondary VLAN ID of 100, and the PVLAN type set to isolated.
# dladm create-vlan -v 3,100,isolated -l net0 vlan1 # dladm show-vlan LINK VID SVID PVLAN-TYPE FLAGS OVER vlan1 3 100 isolated ----- net0