Go to main content

Managing Network Datalinks in Oracle® Solaris 11.3

Exit Print View

Updated: December 2017
 
 

Configuring a Private VLAN

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]

link

Specifies the Ethernet link over which the VLAN is created.

VLAN-ID

Primary ID associated with a VLAN.

PVLAN-SVID

PVLAN Secondary VLAN ID associated with the VLAN.

PVLAN-type

PVLAN type associated with the VLAN, which can be either isolated or community. The default value is isolated.

VLAN-link

Name of the VLAN.

Example 23  Creating an Isolated PVLAN by Using the dladm create-vlan Command

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