Definition : consists of several interfaces on a system that are configured together to form a single,logical unit.
So ,if i have two interfaces with 10Gbps speed,by aggregating them ,we ‘ll get a single interface with 20 Gbps speed and so on.
The Solaris Link Aggregation follows the standard of IEEE 802.3ad
- all interfaces must have the same speed, and also the eeprom local-mac-address? must be set to true.
Three main parts of link aggregation:
model ( dlmp or trunk) :Datalink multipathing or standard link-aggregation(trunk)
Aggregation Mode (LCAP mode): off ,active,passive
LCAPDU is Link Aggregation Control Protocol Packets off: LACPDUS are not generated active:The system generates LACPDUs at regular intervals passive:The system generates an LACPDU only when it receives an LACPDU from the switch
Policy for load balancing: L2 ,L3 , L4
L2: Determines the outgoing link by hashing the MAC (layer 2) header of each packet L3: Determines the outgoing link by hashing the IP (layer 3 ) header of each packet L4(default): Determines the outgoing link by hashing the TCP, UDP, or other ULP (L4) header of each packet
Typical commands to configure link aggregation ( assuming that we have two free interfaces net3 and net4)
# ipadm show-if <– check for net3 and net4 are free
# dladm create-aggr -l net3 -l net4 aggr0
# dladm modify-aggr -m trunk aggr0
# dladm modify-aggr -L passive aggr0
# dladm modify-aggr -P L4 aggr0
#ipadm create-ip aggr0
#ipadm create-addr -T static -a 192.168.100.120/24 aggr0/v4
# dladm show-aggr -x <— to get status of link aggregation
LINK PORT SPEED DUPLEX STATE ADDRESS PORTSTATE aggre0 -- 1000Mb full up 0:11:1c:3d:91:4d -- net3 1000Mb full up 0:11:1c:3d:91:4d attached net4 1000Mb full up 0:11:1c:19:8d:4f attached
Adding and removing interface from link aggregation :
Lets add an interface (net5) and remove an interface (net4):
# dladm add-aggr -l net5 aggr0
# dladm remove-aggr -l net4 aggr0