To migrate the network traffic of distributed port groups to a link aggregation group (LAG), you create a new LAG on the distributed switch.
- In the vSphere Web Client, navigate to the distributed switch.
- Select Manage, and select Settings.
- Under LACP, click New Link Aggregation Group.
- Name the new LAG.
- Set the number of ports to the LAG.
Set the same number of ports to the LAG as the number of ports in the LACP port channel on the physical switch. A LAG port has the same function as an uplink on the distributed switch. All LAG ports form a NIC team in the context of the LAG.
- Select the LACP negotiating mode of the LAG.
All LAG ports are in an Active negotiating mode. The LAG ports initiate negotiations with the LACP port channel on the physical switch by sending LACP packets.
The LAG ports are in Passive negotiating mode. They respond to LACP packets they receive but do not initiate LACP negotiation.
If the LACP-enabled ports on the physical switch are in Active negotiating mode, you can set the LAG ports in Passive mode and the reverse.
- Select a load balancing mode from the hashing algorithms that LACP defines.
The hashing algorithm must be the same as the hashing algorithm set to the LACP port channel on the physical switch.
- Set the VLAN and the NetFlow policies for the LAG.
This option is active when overriding the VLAN and NetFlow policies per individual uplink ports is enabled on the uplink port group. If you set the VLAN and NetFlow policies to the LAG, they override the policies set on the uplink port group level.
- Click OK.
The new LAG is unused in the teaming and failover order of distributed port groups. No physical NICs are assigned to the LAG ports.
As with standalone uplinks, the LAG has a representation on every host that is associated with the distributed switch. For example, if you create LAG1 with two ports on the distributed switch, a LAG1 with two ports is created on every host that is associated with the distributed switch.
What to do next
Set the LAG as standby in the teaming and failover configuration of distributed port groups. In this way, you create an intermediate configuration that lets you migrate the network traffic to the LAG without losing network connectivity.