
Adding/removing ESXi hosts from a vSphere Distributed Switch
You can add new hosts to a vDS; in this phase, you can connect physical network adapters, VMs, and VMkernel interfaces to the switch.
First of all, create all needed distributed port groups for the virtual machines and for VMkernel networking. This part will be discussed later.
Also, ensure that you add enough uplinks on the vDS to match all physical NICs (for each host) that you want to connect to the switch. This part will be discussed later.
You can use the Add and Manage Hosts wizard in the vSphere Web Client to:
- Add hosts to an existing vDS
- Manage host networking
- Remove hosts from a vDS
The Add hosts option (or Add host and manage host networking) will guide you in adding multiple hosts at a single time:

The same wizard will also migrate all the VMs, the VMkernel network adapters, and the uplinks on the hosts to the vDS at the same time, without (or with very limited) service interruptions.
We can also choose hosts from the same wizard. We will have to ensure that the network adapters that are in use are migrated before removing the hosts from a vDS.
For more information, see the vSphere 6.5 Networking guide (https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.networking.doc/GUID-6E51D76A-DC9F-44E2-B673-7D92384AFDE4.html).