User Tools

Site Tools


computing:unix:unix_link_aggr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
computing:unix:unix_link_aggr [2014/11/22 14:30]
gcooper created
computing:unix:unix_link_aggr [2019/02/06 08:24] (current)
gcooper
Line 1: Line 1:
 ====== UNIX Link Aggreagation (Bonding) ====== ====== UNIX Link Aggreagation (Bonding) ======
  
-:!: Possibly applies to Solaris, OmniOS, Illumos, etc.+:!: Possibly applies to **Solaris, OmniOS, Illumos, OpenIndiana**, etc.
  
 +http://www.isartor.org/wiki/Solaris_Link_Aggregation
  
 +http://blog.allanglesit.com/2011/03/solaris-11-network-configuration-advanced/
  
 +http://pvssraju.wordpress.com/2009/08/19/how-to-create-a-link-aggregation-bonding-on-solaris/
  
 +===== Show Info =====
  
 +Show existing **physical interface and link information**:
 +
 +<file>
 +dladm show-phys
 +dladm show-link
 +dladm show-ether
 +dladm show-aggr
 +</file>
 +
 +Show existing **IP configuration** and delete:
 +
 +<file>
 +ipadm show-if
 +ipadm delete-if e1000g0
 +</file>
 +
 +**Create the bond** specifying the interfaces to include and add a static IP address:
 +
 +<file>
 +dladm create-aggr -l e1000g0 -l e1000g1 aggr0
 +ipadm create-addr -T static -a 192.168.1.100/24 aggr0/v4
 +</file>
 +
 +**Delete a bond**:
 +
 +<file>
 +ipadm delete-if aggr0
 +dladm delete-aggr aggr0
 +</file>
 +
 +FIXME Add LACP bonding to switch that supports LACP.
 +
 +http://serverfault.com/questions/537705/configuring-lacp-between-openindiana-solaris-and-a-cisco-c3560
 +
 +:!: If you are using the bond to communicate with the server, you will **lose connectivity** on the next step.
 +
 +**Enable LACP** on the server side:
 +
 +<file>
 +dladm modify-aggr -L active -T long aggr0
 +</file>
 +
 +**Add interfaces to a bond**:
 +
 +<file>
 dladm add-aggr -d e1000g1 -d e1000g3 aggr1 dladm add-aggr -d e1000g1 -d e1000g3 aggr1
 +</file>
 +
 +**Show routes**:
 +
 +<file>
 +netstat -nr
 +</file>
 +
 +**Add a route**:
 +
 +Ephemeral:
 +
 +<file>
 +route add default <ipaddress>
 +</file>
 +
 +Persistent:
 +
 +<file>
 +echo <ipaddress> > /etc/defaultrouter
 +</file>
computing/unix/unix_link_aggr.1416691844.txt.gz · Last modified: 2014/11/22 14:30 by gcooper