Before You Begin
If you are using a switch with a trunk aggregation, configure also the switch's ports to be used as an aggregation. If the switch supports LACP, configure LACP to either active or passive mode. See the switch manufacturer's documentation to configure the switch.
Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.
$ 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 net0 currently exists over the net0 datalink.
$ ipadm delete-ip interface
$ 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.
trunk – IEEE 802.3ad compliant link aggregation mode (default)
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. For information about the rules to assign names, see Rules for Valid Link Names in Configuring and Managing Network Components in Oracle Solaris 11.4.
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
$ 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
$ 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 2:8:20:c2:24:45 -- 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 additional configuration tasks on the aggregation:
Create IP interfaces and VNICs. See Chapter 3, Configuring and Administering IP Interfaces and Addresses in Oracle Solaris in Configuring and Managing Network Components in Oracle Solaris 11.4 and How to Configure VNICs and Etherstubs in Managing Network Virtualization and Network Resources in Oracle Solaris 11.4.
Configure VLANs. See Configuring VLANs Over a Link Aggregation.
Configure zones. See Creating and Using Oracle Solaris Zones.