Solaris : Link Aggregation : dladm

The command dladm is used to configure data-link interfaces in Sun Solaris. A configured data-link is represented in the system as interface that can be used for TCP/IP. Each data-link relies on either a single network device or an link aggregation device to send & recieve packets. Here are some of the dladm usages and how to create Link aggregation using dladm.

Show all the data-link interfaces available :

unixfoo-solaris # dladm show-link
vsw0            type: non-vlan  mtu: 1500       device: vsw0
e1000g0         type: non-vlan  mtu: 1500       device: e1000g0
e1000g1         type: non-vlan  mtu: 1500       device: e1000g1
e1000g2         type: non-vlan  mtu: 1500       device: e1000g2
unixfoo-solaris #

Show the properties and values of data-link interfaces:

unixfoo-solaris # dladm show-linkprop
LINK         PROPERTY        VALUE          DEFAULT        POSSIBLE
vsw0         zone            —             —             —
e1000g0      zone            —             —             —
e1000g1      zone            —             —             —
e1000g2      zone            —             —             —
unixfoo-solaris #

Creating an Link Aggregation: [ ]

Link aggregation, or IEEE 802.3ad, is a term which describes using multiple Ethernet network cables/ports in parallel to increase the link speed beyond the limits of any one single cable or port, and to increase the redundancy for higher availability. Here is the syntax to create aggr using dladm. You can use any number of data-link interfaces to create an aggr.

unixfoo-solaris # dladm create-aggr -l passive -d e1000g0 -d e1000g1 -d e1000g2 1

Now this creates and aggregate called “aggr1”. You can plumb this, using “ifconfig plumb” and assign IP address to it. The Link aggregation must be configured on the network switch also. The policy and and aggregated interfaces must configured identically on the other end of the ethernet cables . The example creates Link Aggregation Control Protocol (LACP) in passive mode to control simultaneous transmission on multiple interfaces. Any single stream is transmitted completely on an individual interface, but multiple simultaneous streams can be active across all interfaces.

Check properties of an aggr:

unixfoo-solaris # dladm show-aggr
key: 1 (0x0001) policy: L4      address: XX:XX:XX:XX:XX (auto)
device       address                 speed   duplex  link    state
e1000g0      XX:XX:XX:XX:XX    0     Mbps    half    unknown standby
e1000g1      <unknown>         0     Mbps    half    unknown standby
e1000g2      <unknown>         0     Mbps    half    unknown standby
unixfoo-solaris #

To check statistics of aggr or data-link interfaces:

Use “-s” flag on show-aggr or show-link to see the statistics.

unixfoo-solaris # dladm show-aggr -s
key: 1  ipackets  rbytes      opackets   obytes   %ipkts %opkts
           Total        0         0           0     0
           e1000g0      0         0           0     0    –       –
           e1000g1      0         0           0     0    –       –
           e1000g2      0         0           0     0    –       –
unixfoo-solaris #

unixfoo-solaris # dladm show-link -s
                ipackets  rbytes   ierrors opackets   obytes      oerrors
vsw0            225644   94949        0     44916       29996       0
e1000g0         0         0           0       0         0           0
e1000g1         0         0           0       0         0           0
e1000g2         0         0           0       0         0           0
unixfoo-solaris #

To remove an interface from an link aggregate:

unixfoo-solaris # dladm remove-aggr -d e1000g2 1
unixfoo-solaris #

To delete an aggregate:

unixfoo-solaris # dladm delete-aggr  1
unixfoo-solaris #

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

Linux Logical Volume manager – basics

Next Post

Fixing corrupted vmdk file

Related Posts