This shows you the differences between two versions of the page.
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:// | ||
+ | http:// | ||
+ | http:// | ||
+ | ===== Show Info ===== | ||
+ | Show existing **physical interface and link information**: | ||
+ | |||
+ | < | ||
+ | dladm show-phys | ||
+ | dladm show-link | ||
+ | dladm show-ether | ||
+ | dladm show-aggr | ||
+ | </ | ||
+ | |||
+ | Show existing **IP configuration** and delete: | ||
+ | |||
+ | < | ||
+ | ipadm show-if | ||
+ | ipadm delete-if e1000g0 | ||
+ | </ | ||
+ | |||
+ | **Create the bond** specifying the interfaces to include and add a static IP address: | ||
+ | |||
+ | < | ||
+ | dladm create-aggr -l e1000g0 -l e1000g1 aggr0 | ||
+ | ipadm create-addr -T static -a 192.168.1.100/ | ||
+ | </ | ||
+ | |||
+ | **Delete a bond**: | ||
+ | |||
+ | < | ||
+ | ipadm delete-if aggr0 | ||
+ | dladm delete-aggr aggr0 | ||
+ | </ | ||
+ | |||
+ | FIXME Add LACP bonding to switch that supports LACP. | ||
+ | |||
+ | http:// | ||
+ | |||
+ | :!: 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: | ||
+ | |||
+ | < | ||
+ | dladm modify-aggr -L active -T long aggr0 | ||
+ | </ | ||
+ | |||
+ | **Add interfaces to a bond**: | ||
+ | |||
+ | < | ||
dladm add-aggr -d e1000g1 -d e1000g3 aggr1 | dladm add-aggr -d e1000g1 -d e1000g3 aggr1 | ||
+ | </ | ||
+ | |||
+ | **Show routes**: | ||
+ | |||
+ | < | ||
+ | netstat -nr | ||
+ | </ | ||
+ | |||
+ | **Add a route**: | ||
+ | |||
+ | Ephemeral: | ||
+ | |||
+ | < | ||
+ | route add default < | ||
+ | </ | ||
+ | |||
+ | Persistent: | ||
+ | |||
+ | < | ||
+ | echo < | ||
+ | </ |