How do you create link aggregates for network interfaces from the shell in Terminal on macOS 10.13?
Execute the following to bond interfaces
sudo networkSetup createBond bond0 en2 en3
It is also useful to be able to get all active interfaces (with or without IP, simply labeled as
active since you might have a primary interface + the interfaces you want to bond):
for i in $(ifconfig -lu); do if ifconfig $i | grep -q "status: active" ; then echo $i; fi; done