Configure Network Teaming: LACP on Unix - Solaris
LACP Bonding
This page is to document instructions on how to configure LACP bonding for Solaris.
We are using LACP bonding in CRB (UDCC) so that networking can do maintenance on either side of the switch infrastructure without impacting our services.
An alternative to LACP bonding is IPMP which also pairs network cards but does not require the system to lose network connectivity and need a reboot to be fully implemented. Instruction for that can be found at https://wikis.utexas.edu/display/systems/IPMP+on+UNIX+-+Solaris
Solaris 10
This process can be done in 2 minutes or thereabouts.
Step |
Commands |
Notes |
---|---|---|
Prepare interfaces |
ifconfig e1000g0 down unplumb |
Network connections will drop |
Make aggregation device |
dladm create-aggr -d e1000g0 -d e1000g1 N |
N is an arbitrary number between 1 and 99 |
Verify aggregation setup |
dladm show-aggr |
key: 1 (0x0001) policy: L4 address: 0:3:ba:d9:1a:a (auto) |
Bring up aggregate interface |
ifconfig aggr1 plumb up `cat /etc/hostname.e1000g0`; |
Output should look like that from any normal active interface |
Enable LACP mode |
dladm modify-aggr -l active -T long N |
|
Check aggregation behavior |
dladm show-aggr -L |
key: 1 (0x0001) policy: L4 address: 0:3:ba:d9:1a:a (auto) |
|
dladm show-aggr -s |
key:1 ipackets rbytes opackets obytes %ipkts %opkts |
Configure for interface init at boot time |
mv /etc/hostname.e1000g0 /etc/hostname.aggr1; |
That's it. |