For this example, we want LAGs to form wherever they can so we will not change the default admin key setting for all LAGs as we did in the multiple device example. Because we want LAG1 and LAG2, as described for this example, to form for specific ports, we set the admin key of LAG 1 to 200 and the admin key of LAG 2 to 100:
System(rw)->set lacp aadminkey lag.0.1 200 System(rw)->set lacp aadminkey lag.0.2 100
We next want to enable the port active state and set the admin keys for the upstream switch physical ports associated with LAG 1 and LAG 2:
System(rw)->set port lacp port ge.2.1 aadminkey 200 enable System(rw)->set port lacp port ge.3.1 aadminkey 200 enable System(rw)->set port lacp port ge.1.1 aadminkey 100 enable System(rw)->set port lacp port ge.1.2 aadminkey 100 enable System(rw)->set port lacp port ge.1.3 aadminkey 100 enable System(rw)->set port lacp port ge.1.4 aadminkey 100 enable System(rw)->set port lacp port ge.2.1 aadminkey 100 enable System(rw)->set port lacp port ge.2.2 aadminkey 100 enable System(rw)->set port lacp port ge.2.3 aadminkey 100 enable System(rw)->set port lacp port ge.2.4 aadminkey 100 enable
System priority determines which device will be in charge of port selection. This is an optional consideration. For this example we will leave system priority at the default value and allow the device with the lowest MAC address to determine port selection.
Port priority determines which aggregatable ports available for a LAG are moved to the attached state when different speed physical ports form a LAG. For this example we want to ensure that the 1Gb ports move to the attached state for LAG1. We will set the port priority to 100 for the 1Gb actor ports should this device be in charge of selecting ports to move to the attached state:
System(rw)->set port lacp port ge.2.1 aportpri 100 System(rw)->set port lacp port ge.3.1 aportpri 100
We next enable single port LAGs on this device:
System(rw)->set lacp singleportlag enable
On an S- or K-Series, we next enable flow regeneration on the upstream switch:
System(rw)->set lacp flowRegeneration enable
This completes the example 2 configuration.