Go to main content

Managing Network Virtualization and Network Resources in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018

How to Configure VNICs as PVLANs

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 3, Configuring Virtual Networks by Using Virtual Local Area Networks in Managing Network Datalinks in Oracle Solaris 11.3.

  1. Become an administrator.
  2. Create a PVLAN VNIC by specifying the primary VLAN ID and secondary VLAN ID.
    # 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.

  3. (Optional) Display the PVLAN or PVLAN VNIC that is created.
    # dladm show-vnic -v
Example 4  Creating a PVLAN VNIC

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
vnic2      4    110  community   net1