You can modify the primary VLAN ID, secondary VLAN ID, and the PVLAN type of PVLANs by using the dladm modify-vlan command to modify a PVLAN. You can use this command only if you created the PVLAN by using the dladm create-vlan command and not by using the dladm create-vnic command. For information about modifying PVLAN VNICs, see Modifying PVLAN VNICs in Managing Network Virtualization and Network Resources in Oracle Solaris 11.3.
To modify the PVLAN, use the following command:
dladm modify-vlan [-v VID[,PVLAN-SVID[,PVLAN-type]] VLAN-link
You modify the primary VLAN ID, the secondary VLAN ID, and the PVLAN type tuple together.
The following example shows how you can set the primary VLAN ID to 15, the secondary VLAN ID to 103, and the PVLAN type to community.
# dladm show-vlan LINK VID SVID PVLAN-TYPE FLAGS OVER vlan1 10 102 isolated ---- net0 # dladm modify-vlan -v 15,103,community vlan1 # dladm show-vlan LINK VID SVID PVLAN-TYPE FLAGS OVER vlan1 15 103 community ---- net0