Solaris Link Aggregation

por | 8 marzo, 2009

http://docs.sun.com/app/docs/doc/819-3000/fpjvl?l=en&a=view

http://docs.sun.com/source/820-3084-10/link_aggregation.html#0_26703

C H A P T E R 6

Configuring Link Aggregation

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


6.1 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:

  • Increased bandwidth
  • Linearly incremental bandwidth
  • Load sharing
  • Automatic configuration
  • Rapid configuration and reconfiguration
  • Deterministic behavior
  • Low risk of duplication or misordering
  • Support of existing IEEE 802.3ad MAC clients


6.2 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 e1000g0, e1000g1, e1000g2, and e1000g3 to form an aggregation and a random number as key, for example 33.

a. Unplumb the interfaces to be aggregated:

# ifconfig down unplumb e1000g0
# ifconfig down unplumb e1000g1
# ifconfig down unplumb e1000g2
# ifconfig down unplumb e1000g3

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

# dladm create-aggr -d e1000g0 -d e1000g1 -d e1000g2 -d e1000g3 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       e1000g4/0,e1000g5/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
           e1000g0        0:14:4f:6c:11:8   1000  Mbps    full    up     attached
           e1000g1        0:14:4f:6c:11:9   1000  Mbps    full    up     attached
           e1000g2        0:14:4f:6c:11:a   1000  Mbps    full    up     attached
           e1000g3        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
           e1000g0        95089     6468278        7         662       25.0      25.0
           e1000g1        95089     6468278        7         662       25.0      25.0
           e1000g2        95089     6468278        7         662       25.0      25.0
           e1000g3        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
    e1000g0     passive  short   yes          no    no   no   no         no
    e1000g1     passive  short   yes          no    no   no   no         no
    e1000g2     passive  short   yes          no    no   no   no         no
    e1000g3     passive  short   yes          no    no   no   no         no

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