To modify the primary VLAN ID, secondary VLAN ID, and the PVLAN type of PVLANs, use the dladm modify-vlan command. You can use this command only if you created the PVLAN with the dladm create-vlan command and not 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.4.
You modify the primary VLAN ID, the secondary VLAN ID, and the PVLAN type tuple together. Use the following syntax:
dladm modify-vlan [-v VID[,PVLAN-SVID[,PVLAN-type]] VLAN-link
For example:
$ 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