L2 Cache

Behold the power of |!

User Tools

Site Tools


snipets:solaris:net-link-aggregation

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
snipets:solaris:net-link-aggregation [2012/09/17 11:04]
sjorge
snipets:solaris:net-link-aggregation [2012/09/17 11:40]
sjorge
Line 4: Line 4:
 It also shows how you change the MTU correctly, it will propegate to the underlying interfaces. It also shows how you change the MTU correctly, it will propegate to the underlying interfaces.
 <​code>​ <​code>​
-root@gravity:​~# ​dladm create-aggr -l active -P L4 -d e1000g0 -d e1000g1 host0 +dladm create-aggr -l active -P L4 -d e1000g0 -d e1000g1 host0 
-root@gravity:​~# ​dladm set-linkprop -p mtu=9000 host0+dladm set-linkprop -p mtu=9000 host0
 </​code>​ </​code>​
  
-The ''​-l''​ flag sets the LACP-policy ​this can be either ''​active'',​ ''​passive''​ or ''​off''​. If you switch is set to passive, make sure to set it to active on your server!+The ''​-l''​ flag sets the LACP-mode this can be either ''​active'',​ ''​passive''​ or ''​off''​. If you switch is set to passive, make sure to set it to active on your server! 
 + 
 +The ''​-P''​ flag set the LACP-policy,​ this can be either:  
 +  * ''​L2''​ Select outbound device according to source and destination MAC addresses of the packet. 
 +  * ''​L3''​ Select outbound device according to source and destination IP addresses of the packet. 
 +  * ''​L4''​ Select outbound device according to the upper layer protocol information contained in the packet. For TCP and UDP, this includes source and destination ports. For IPsec, this includes the SPI (Security Parameters Index.)
  
 Removing a member: Removing a member:
 <​code>​ <​code>​
-root@gravity:​~# ​dladm remove-aggr -d e1000g1 host0+dladm remove-aggr -d e1000g1 host0
 </​code>​ </​code>​
  
 Adding a member: Adding a member:
 <​code>​ <​code>​
-root@gravity:​~# ​dladm add-aggr -d e1000g2 host0+dladm add-aggr -d e1000g2 host0
 </​code>​ </​code>​
  
 Well that gives you a general idea, for different policies and modes, you can use ''​man dladm''​. Well that gives you a general idea, for different policies and modes, you can use ''​man dladm''​.
snipets/solaris/net-link-aggregation.txt · Last modified: 2014/10/09 22:02 (external edit)