This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:unix:unix_link_aggr [2014/11/22 14:32] gcooper |
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:// | ||
Line 9: | Line 9: | ||
http:// | http:// | ||
- | Show existing physical interface and link information: | + | ===== Show Info ===== |
+ | |||
+ | Show existing | ||
< | < | ||
dladm show-phys | dladm show-phys | ||
dladm show-link | dladm show-link | ||
+ | dladm show-ether | ||
+ | dladm show-aggr | ||
</ | </ | ||
- | Show existing IP configuration and delete: | + | Show existing |
< | < | ||
Line 23: | Line 27: | ||
</ | </ | ||
- | Create the bond specifying the interfaces to include and add a static IP address: | + | **Create the bond** specifying the interfaces to include and add a static IP address: |
< | < | ||
Line 30: | Line 34: | ||
</ | </ | ||
- | Delete a bond: | + | **Delete a bond**: |
< | < | ||
Line 41: | Line 45: | ||
http:// | http:// | ||
- | :!: If you are using the bond to communicate with the server, you will lose connectivity on the next step. | + | :!: 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: | + | **Enable LACP** on the server side: |
< | < | ||
Line 49: | Line 53: | ||
</ | </ | ||
+ | **Add interfaces to a bond**: | ||
+ | < | ||
+ | dladm add-aggr -d e1000g1 -d e1000g3 aggr1 | ||
+ | </ | ||
+ | **Show routes**: | ||
- | dladm add-aggr -d e1000g1 -d e1000g3 aggr1 | + | < |
+ | netstat -nr | ||
+ | </ | ||
+ | |||
+ | **Add a route**: | ||
+ | |||
+ | Ephemeral: | ||
+ | |||
+ | < | ||
+ | route add default < | ||
+ | </ | ||
+ | |||
+ | Persistent: | ||
+ | |||
+ | < | ||
+ | echo < | ||
+ | </ |