C H A P T E R  7

Configuring Link Aggregation

This chapter describes how to configure link aggregation. It contains the following sections:


Overview of Link Aggregation

Link Aggregation enables one or more network links to be aggregated together to form a link aggregation group. This link aggregation group appears to MAC clients as a regular link. Link aggregation is defined by IEEE 802.3ad and it provides the following benefits:


Configuring Link Aggregation in a Solaris Environment

This section explains how to configure link aggregation in a Solaris environment.


procedure icon  To Configure Link Aggregation in a Solaris Environment

1. Aggregate nxge0, nxge1, nxge2, and nxge3 to form an aggregation and a random number 33 as key.

a. Unplumb the interfaces to be aggregated:


# ifconfig down unplumb nxge0
# ifconfig down unplumb nxge1
# ifconfig down unplumb nxge2
# ifconfig down unplumb nxge3

b. Create a link-aggregation group with key 33 without specifying mode:


# dladm create-aggr -d nxge0 -d nxge1 -d nxge2 -d nxge3 33

As the command returns, one line appears in the /etc/aggregation.conf file and indicates that the default mode is off, as shown in the following example:


# tail -1 /etc/aggregation.conf
# Use is subject to license terms.
#
# ident "@(#)aggregation.conf   1.1     05/09/01 SMI"
#
# DO NOT EDIT OR PARSE THIS FILE!
#
# Use the dladm(1m) command to change the contents of this file.
  
33      L4      2       nxge4/0,nxge5/0 auto    off     short
# dladm show-link aggr33
aggr33          type: non-vlan  mtu: 1500       aggregation: key 33

2. Plumb up the interface aggrkey, which is aggr33 is this case:


# ifconfig aggr33 plumb
# ifconfig aggr33
aggr33: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 8               
        inet 0.0.0.0 netmask 0
        ether 0:3:ba:d8:9d:e8
 
# ifconfig aggr33 192.168.1.1/24 broadcast + up
 
# ifconfig aggr33
aggr33: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 8
        inet 192.168.1.1 netmask ffffff00 broadcast 192.168.1.255
        ether 0:3:ba:d8:9d:e8

3. Show link aggregation status again.

Now the state should become attached:


# dladm show-aggr
key: 33 (0x0021)        policy: L4      address: 0:14:4f:6c:11:8 (auto)
           device       address           speed         duplex  link   state
           nxge0        0:14:4f:6c:11:8   1000  Mbps    full    up     attached
           nxge1        0:14:4f:6c:11:9   1000  Mbps    full    up     attached
           nxge2        0:14:4f:6c:11:a   1000  Mbps    full    up     attached
           nxge3        0:14:4f:6c:11:b   1000  Mbps    full    up     attached

4. Use the dladm show-aggr -s command to display statistics:


# dladm show-aggr -s
key: 33                 ipackets  rbytes      opackets   obytes    %ipkts    %opkts
           Total        380354    25872976      28        2648
           nxge0        95089     6468278        7         662       25.0      25.0
           nxge1        95089     6468278        7         662       25.0      25.0
           nxge2        95089     6468278        7         662       25.0      25.0
           nxge3        95087     6468142        7         662       25.0      25.0

 

5. Use the dladm show-aggr -L command to display LACP specific information:


# dladm show-aggr -L
key: 33 (0x0021)        policy: L4      address: 0:14:4f:6c:11:8 (auto)
                LACP mode: off  LACP timer: short
    device    activity timeout aggregatable sync  coll dist defaulted  expired
    nxge0     passive  short   yes          no    no   no   no         no
    nxge1     passive  short   yes          no    no   no   no         no
    nxge2     passive  short   yes          no    no   no   no         no
    nxge3     passive  short   yes          no    no   no   no         no

For more information refer to the man pages for dladm, man dladm.