Managing Network Datalinks in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

How to Configure VLANs Over a Datalink That Is Part of a Bridge

Before You Begin

This procedure assumes that the bridge already exists. For information about how to create a bridge, see Creating a Bridge.

  1. Become an administrator.

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

  2. List the link-related information of the bridge to determine the links that are a part of the bridge.
    # dladm show-bridge -l bridge-name
  3. Create the VLAN over the link that is a part of the bridge.
    # dladm create-vlan -l link -v vid VLAN-link
    link

    Specifies the link on which the VLAN interface is being created.


    Note -  In this procedure, the link should part of the bridge that you have created.
    vid

    Indicates the VLAN ID number.

    VLAN-link

    Specifies the name of the VLAN.

  4. Repeat this command for every VLAN you want to create. For every VLAN that you created, create an IP interface over the VLAN.
    # ipadm create-ip interface

    where interface is the VLAN name.

  5. For each IP interface on a VLAN, configure a valid IP address.
    # ipadm create-addr -a IP-address interface