Link aggregation groups the underlying ports into a single logical group. The aggregation uses these underlying ports exclusively and you cannot perform any other operation such as configuring VNICs or assigning IP addresses on these ports. However, you can configure VNICs on top of the aggregation and not on the individual ports.
You must remove any existing IP interface on these ports before creating the link aggregation.
You can also configure a VLAN and create VNICs over the link aggregation that you have created. For information about how to create VLANs over link aggregations, see How to Configure VLANs Over a Link Aggregation.
Before You Begin
If you are creating a trunk aggregation and are using a switch in the aggregation, configure the ports to be used as an aggregation on the switch. If the switch supports LACP, configure LACP in either active or passive mode.
See the switch manufacturer's documentation to configure the switch.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
# dladm show-phys
For example, if an IP interface is created over the datalink, remove the IP interface first.
# ipadm show-if IFNAME CLASS STATE ACTIVE OVER lo0 loopback ok yes -- net0 ip ok no --
The output indicates that an IP interface exists over the datalink net0.
# ipadm delete-ip interface
Where interface specifies the IP interface over the link. For more information, see the ipadm(1M) man page.
# dladm create-aggr [-f] [-m mode] [-P policy] [-L LACP-mode] \ [-T time] [-u address] -l link1 -l link2 [...] aggr
Forces the creation of the aggregation. Use this option when you are attempting to aggregate devices that do not support link state notification.
Mode must be set to one of the following values. The default mode is trunk.
trunk – IEEE 802.3ad compliant link aggregation mode
dlmp – Datalink multipathing mode
(Trunk aggregation only) Specifies the load balancing policy for the aggregation. Supported values are L2, L3, and L4. For more information, see Defining Aggregation Policies for Load Balancing.
(Trunk aggregation only) Specifies the mode of LACP if it is used. Supported values are off, active, or passive. For information about the modes, see Using a Switch.
(Trunk aggregation only) Specifies the LACP timer value. The supported values are short or long.
Specifies the fixed unicast address for the aggregation.
Specifies the datalinks that you want to aggregate.
Specifies the name of the aggregation, which can be any customized name. For information about the rules to assign names, see Rules for Valid Link Names in Configuring and Managing Network Components in Oracle Solaris 11.3.
Display the aggregations and links with the status information.
# dladm show-link
Display the aggregations with the status and per port information.
# dladm show-aggr -x
The state of the aggregation should be up.
This example shows the commands to create a link aggregation with two underlying datalinks, net0 and net1. The aggregation is also configured to transmit LACP packets. The example begins with the removal of existing IP interfaces over the underlying datalinks.
# ipadm show-if IFNAME CLASS STATE ACTIVE OVER lo0 loopback ok yes -- net0 ip ok no -- # ipadm delete-ip net0 # dladm create-aggr -L active -l net0 -l net1 trunk0 # dladm show-aggr -x LINK PORT SPEED DUPLEX STATE ADDRESS PORTSTATE trunk0 -- 1000Mb full up 8:0:27:49:10:b8 -- net0 1000Mb full up 8:0:27:49:10:b8 attached net1 1000Mb full up 8:0:27:e4:d9:46 attachedExample 2 Creating a DLMP Aggregation and Configuring an IP Interface on Top of the Aggregation
This example shows how to create a DLMP aggregation. The aggregation has three underlying datalinks net0, net1, and net2. An IP interface is created on top of the aggregation aggr0 and a VNIC vnic1 is created on top of it.
# dladm create-aggr -m dlmp -l net0 -l net1 -l net2 aggr0 # dladm show-link LINK CLASS MTU STATE OVER net0 phys 1500 up -- net1 phys 1500 up -- net2 phys 1500 up -- aggr0 aggr 1500 up net0 net1 net2 # dladm show-aggr -x LINK PORT SPEED DUPLEX STATE ADDRESS PORTSTATE aggr0 -- 1000Mb full up 8:0:27:49:10:b8 -- net0 1000Mb full up 8:0:27:49:10:b8 attached net1 1000Mb full up 8:0:27:e4:d9:46 attached net2 1000Mb full up 8:0:27:38:7a:97 attached # ipadm create-ip aggr0 # ipadm create-addr -a local=203.0.113.1 aggr0/v4 # dladm create-vnic -l aggr0 vnic1
You can perform further configuration of the aggregation such as creating IP interfaces and VNICs. You can use the created aggregation for configuring both non-global zones and kernel zones.
For information about creating IP interfaces, see Chapter 3, Configuring and Administering IP Interfaces and Addresses in Oracle Solaris in Configuring and Managing Network Components in Oracle Solaris 11.3.
For information about configuring VLANs over a link aggregation, see Configuring VLANs Over a Link Aggregation.
For information about configuring VNICs, see How to Configure VNICs and Etherstubs in Managing Network Virtualization and Network Resources in Oracle Solaris 11.3.
For information about configuring zones, see Creating and Using Oracle Solaris Zones.