Go to main content

Managing Network Datalinks in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

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.

Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.

  1. 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
  2. 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.

  3. 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.

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