Building a resilient vSphere Distributed Switch with LACP and NIOC
A VMware vSphere Distributed Switch (vDS) gives vCenter-managed control of physical NICs, port groups, VLANs, and VMkernel adapters across ESXi hosts. It removes switch configuration from individual hosts and makes changes easier to apply consistently during maintenance, cluster rebuilds, and workload migration. LACP supplies standards-based link aggregation, while Network I/O Control (NIOC) manages contention inside the virtual switch.
A vDS is particularly useful for Australian organisations combining on-premises clusters with AWS regions in Sydney and Melbourne. Perth and Brisbane offices may reach those data centres over private WAN or broadband links, creating different latency and packet-loss profiles. The Australian market includes both in-house platform teams and managed-service providers, so a documented vDS design can support consistent operations across environments with different staffing levels.
Australian mains power is 230 V at 50 Hz, and cabinets should use compatible AS/NZS 3112 power supplies and correctly rated PDUs. Equipment imported for the build passes through Australian Customs and may involve GST and ABN obligations; allowing for those lead times prevents a delayed switch or server from holding up the cutover.
LACP only aggregates links when both ends agree, and NIOC only controls traffic that reaches the vDS. A sound design pairs a redundant physical fabric with deliberate port-group policy, guest and physical QoS settings, and a test plan for vMotion, storage, and ordinary application traffic. This shared model is easier to operate than several independent mechanisms configured without a common baseline.
Plan the physical and logical topology
Map every ESXi host's vmnic connections before creating the vDS. Record switch names, port speeds, MTU, VLANs, LAG membership, and cable paths. Use two independent paths where possible, with each path terminating on a separate top-of-rack switch; dual-homing every host to one switch creates a single failure domain. Check that the switch supports the selected Ethernet speed and that jumbo-frame settings match end to end.
Design the logical layout around traffic classes: a management port group, a VMkernel port group for vMotion and storage, and separate groups for application or tenant VLANs as required. Keep vMotion and storage paths visible as distinct policies so an unexpected backup or migration burst can be shaped. A distributed virtual switch is not a substitute for a routed VLAN plan, firewall policy, or storage design with sufficient bandwidth.
Create the vDS and attach hosts
In vCenter, create the vSphere Distributed Switch, add the target hosts, and assign their physical adapters as vDS uplinks. Create the port groups and VLAN trunk or access policies before moving VMkernel traffic. Leave the existing standard vSwitch and its management address intact until the new uplinks, gateway reachability, DNS, and vCenter connectivity have passed verification. Then migrate the management and service adapters during a controlled change window.
Assign uplinks consistently and enable the desired LACP behaviour in the vDS teaming policy. A production design normally gives each host at least two uplinks and a defined failover order, with LACP configured on the physical switch rather than simulated only inside vCenter. The switch's port-channel settings and the vDS uplink policy must describe the same aggregation intent, including whether the partner uses active or passive negotiation.
Configure LACP for predictable failover
Configure the physical switch first: create a link aggregation group (LAG), place the member ports into that group, and enable LACP with a compatible mode and hash policy. Most enterprise designs use active LACP, although the exact control and partner settings depend on the switch platform. Confirm that the switch has not left one member in a standalone state, and use the switch's LACP neighbour or partner display to prove that every host sees a healthy partner.
LACP distributes flows, not individual packets from one flow. A single large transfer may remain on one member, so vMotion, storage replication, and backup jobs benefit from many concurrent flows and the correct hashing algorithm. Test loss of a member and a complete uplink path rather than assuming the bundle will rebalance evenly. For transport behaviour around vMotion, the enhanced vMotion guide provides useful context for cross-vCenter planning.
Apply NIOC to workload contention
NIOC applies traffic shaping at the vDS port-group and system levels. Use bandwidth shares, reservation, guarantee, and limit to express the priority of management, vMotion, storage, and application traffic. Start with a measured baseline rather than copying a generic policy: set a realistic maximum for bulk backup traffic, reserve capacity for delay-sensitive flows, and give high-priority traffic enough shares to win during a congestion event. Keep the policy visible in vCenter so an operator can understand why a workload is being limited.
Shaping does not create physical capacity, and it cannot enforce an end-to-end service level by itself. Guest applications need their own QoS or rate controls, while physical switches may need matching DSCP, queue, and congestion settings. NIOC can prevent a busy VM from consuming the vDS scheduler's available headroom, but a saturated ToR uplink still affects every tenant. Monitor vCenter performance graphs, host esxtop data, switch queues, and application latency together to separate virtual contention from a physical bottleneck.
Validate operation in an Australian hybrid estate
Validate the finished design with failure tests that match Australian operational windows. Run a sustained file transfer or iSCSI/NFS workload, migrate a VM with vMotion, and exercise storage path selection while watching for packet loss and retransmissions. Pull one member of a LAG, reboot one ToR where maintenance access permits, and verify that traffic converges without a management outage. Check vCenter tasks and events, ESXi host logs, and the switch's LACP counters for an accurate failure picture.
For a hybrid deployment, measure the route to AWS Sydney or Melbourne rather than treating cloud bandwidth as equivalent to an on-premises link. Direct Connect paths can have different latency, MTU, and burst behaviour from private WAN links; compare application response times during normal periods and during a storage or migration surge. The resulting runbook records the active LAG members, VMkernel placement, NIOC values, rollback steps, and the Australian supplier or carrier contacts responsible for each layer.