Go to main content

Managing Network Datalinks in Oracle® Solaris 11.3

Exit Print View

Updated: December 2017
 
 

How to Create a PVLAN and Assign to a Zone

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Create a PVLAN.
    # dladm create-vlan -l link -v VLAN-ID[,PVLAN-SVID[,PVLAN-type]] [VLAN-link]
  3. Verify the VLAN that you created.
    # dladm show-vlan
  4. Configure the zone and assign the PVAN that you created.
    global# zonecfg -z zone-name 
    zonecfg:zone-name> add net
    zonecfg:zone-name:net> set physical=VLAN-ID
    zonecfg:zone-name:net> end
    zonecfg:zone-name> verify
    zonecfg:zone-name> commit
    zonecfg:zone-name> exit
    global# zoneadm -z zone-name reboot
Example 25  Creating a PVLAN and Assigning to a Zone

This example shows how to create a PVLAN and then assign the same PVLAN to a zone.

# dladm create-vlan -l net0 -v 110,120,community vlan110
# dladm show-vlan
LINK         VID     SVID    PVLAN-TYPE  FLAGS  OVER
vlan110      110     120     community   -----  net0
global# zonecfg -z zone2
zonecfg:zone2> add net
zonecfg:zone2:net> set physical=vlan110
zonecfg:zone2:net> end
zonecfg:zone2> verify
zonecfg:zone2> commit
zonecfg:zone2> exit
global# zoneadm -z zone2 reboot
# dladm show-vlan
LINK            VID     SVID    PVLAN-TYPE  FLAGS  OVER
vlan110         110     120     community   -----  net0
zone2/vlan110   110     120     community   -----  net0

The PVLAN that is created is assigned to the zone.