How to Assign and Use VLANs in an Oracle Solaris 11 Service Domain

  1. Assign the virtual switch (vsw).
    primary# ldm add-vsw net-dev=net0 primary-vsw0 primary
  2. Create the VLAN interface in the service domain.

    Note that the -T static option of the ipadm create-addr command is required only if running an Oracle Solaris 11 OS older than the Oracle Solaris 11.1 OS. Starting with the Oracle Solaris 11 OS, -T static is the default behavior.

    # ipadm create-ip net0
    # ipadm create-addr -T static -a 192.169.2.100/24 net0
    # dladm create-vlan -l net0 -v 20 vlan20
    # ipadm create-ip vlan20
    # ipadm create-addr -T static -a 192.168.1.100/24 vlan20

    For more information about how to configure VLAN interfaces in the Oracle Solaris 11 OS, refer to Chapter 4, Configuring Virtual Networks by Using Virtual Local Area Networks in Managing Network Datalinks in Oracle Solaris 11.4.