Configuring datalink interfaces with dladm

The command dladm is used to configure data-link interfaces in 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 & receive packets.

Check interface speed/link

# dladm show-dev
ce0             link: unknown   speed: 100   Mbps       duplex: full
# dladm show-link
ce0             type: legacy    mtu: 1500       device: ce0

Dispaly interface statistics

For the examples here we will use interface ce0

# dladm show-link -s ce0
                ipackets  rbytes         ierrors opackets        obytes      oerrors
ce0             1825071315828441374576910       23721008204202334110420740
# dladm show-dev -s ce0
                ipackets  rbytes         ierrors opackets        obytes      oerrors
ce0             1825071483328441375890880       23721010309202334132749470

Reset a property on a link

For this example our aggregate is aggr0

# ifconfig -a | grep aggr0
aggr0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 11
  • Set jumbo frames on an agrregate from 1500 to 9000:
    # dladm set-link-prop -p mtu=9000 aggr0
    # dladm reset-linkprop -p mtu aggr0
    NOTE: A reboot may be needed if you have VLAN interfaces
  • Verify the change has been made:
    # dladm show-link


    # ifconfig aggr0
    aggr0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 9000 index 11
            inet netmask 0 
            ether c:c4:7a:31:6d:8e