Go to main content

Managing Network Datalinks in Oracle® Solaris 11.3

Exit Print View

Updated: December 2017
 
 

Configuring VLANs Over a Link Aggregation

You can create VLANs on a link aggregation in a manner that is similar to configuring VLANs over an interface. Link aggregations are described in Configuring High Availability by Using Link Aggregations. This section combines configuring VLANs and link aggregations.

How to Configure VLANs Over a Link Aggregation

Before You Begin

Create the link aggregation. For information about how to create link aggregations, refer to How to Create a Link Aggregation.

  1. Become an administrator.

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

  2. List the link aggregations that are configured on the system.
    # dladm show-aggr
  3. For every VLAN that you want to create over the link aggregation you selected, you can use the following command:
    # 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 refers to the link aggregation.
    vid

    Indicates the VLAN ID number.

    VLAN-link

    Specifies the name of the VLAN.

  4. For every VLAN that you created in the previous step, create an IP interface over the VLAN.
    # ipadm create-ip interface

    Where interface uses the VLAN name.

  5. For each IP interface on a VLAN, configure a valid IP address.
    # ipadm create-addr -a address interface
Example 17  Configuring Multiple VLANs Over a Link Aggregation

In this example, two VLANs are configured on a link aggregation. The VLANs are assigned VLAN IDs 193 and 194, respectively.

# dladm show-link
LINK     CLASS     MTU     STATE     OVER
net0     phys      1500    up        --        
net1     phys      1500    up        --        
aggr0    aggr      1500    up        net0 net1

# dladm create-vlan -l aggr0 -v 193 acctg0
# dladm create-vlan -l aggr0 -v 194 humres0

# ipadm create-ip acctg0
# ipadm create-ip humres0

# ipadm create-addr -a 192.0.2.50/24 acctg0
ipadm: acctg0/v4
# ipadm create-addr -a 192.0.2.60/24 humres0
ipadm: humres0/v4