![]() |
Technical
Tip
|
|
QUESTION
ANSWER An aggregation is similar to an IPMP link created for failover, but has other advantages:-
# dladmin show-link eri0 type: legacy mtu: 1500 device: eri0 qfe0 type: legacy mtu: 1500 device: qfe0 qfe1 type: legacy mtu: 1500 device: qfe1 qfe2 type: legacy mtu: 1500 device: qfe2 qfe3 type: legacy mtu: 1500 device: qfe3 Early versions of Solaris 10 do not have this facility - you would need to download the Sun Trunking software to get it. There are conditions to consider:-
# dladm create -aggr -d bge0 -d bge1 1 Create an aggregation number 1 from interfaces bge0 and bge1. # ifconfig aggr1 plumb 192.168.200.98 up Brings the aggregation interface up. # dladm show-aggr key: 1 (0x0001) policy: L4 address: 0:3:ba:7:84:5e (auto) device address speed duplex link state bge0 0:3:ba:7:84:5e 1000 Mbps full up attached bge1 0:3:ba:7:84:5e 1000 Mbps full up attached To add another interface to the aggregation:- # dladm add-aggr -d bge2 -d bge3 1 # dladm show-aggr 1 key: 1 (0x0001) policy: L4 address:0:3:ba:7:84:5e (auto) device address speed duplex link state bge0 0:14:4f:1:c8:b0 1000 Mbps full up attached bge1 0:14:4f:1:c8:b3 1000 Mbps full up attached bge2 0:14:4f:1:c8:b1 1000 Mbps full up attached bge3 0:14:4f:1:c8:b2 1000 Mbps full up attached To remove a device from the aggregation:- # dladm remove-aggr -d bge0 1 # dladm show-aggr 1 key: 1 (0x0001) policy: L4 address: 0:3:ba:7:84:5e (auto) device address speed duplex link state bge1 0:14:4f:1:c8:b3 1000 Mbps full up attached bge2 0:14:4f:1:c8:b1 1000 Mbps full up attached bge3 0:14:4f:1:c8:b2 1000 Mbps full up attached It is possible to set policies for aggregations, such as whether to use LACP protocol or not. Here is an example which sets LACP mode to active, and the timer interval to short. # dladm modify-aggr -l active -t short 1 The default outbound load spreading is based on ports, but this can also be changed - see the dladm man page for full details. Aggregations can be assigned to zones using IP instances (Update 4 onwards) - see zonecfg for details. dladm can assign an aggregation temporarily to a zone, until the next reboot:- # dladm set-linkprop -t -p zone=apache aggr1 The -t option must be used. Use zonecfg to assign aggr1 permanently to the apache zone. dladm also provides functions to display statistics, and not just for aggregations:- # dladm show-dev -s eri0 ipackets rbytes ierrors opackets obytes oerrors eri0 806693 122733634 0 808629 336565292 0 # dladm show-aggr -s key: 1 ipackets rbytes opackets obytes %ipkts %opkts Total 158030 31173663 12 504 qfe1 132878 26014941 12 504 84.1 100.0 qfe2 8818 1818890 0 0 5.6 0.0 qfe3 8174 1671697 0 0 5.2 0.0 qfe0 8160 1668135 0 0 5.2 0.0 We hope this has been useful, see below for additional notes Mick Hosegood - First Alternative. NOTES
First Alternative course tutors can answer questions like this ... and are happy to do so. Look around our site for relevant courses in Linux -Unix - Perl - Solaris - FrameMaker |