To recover the configuration of a vSphere Distributed Switch, you can restore its settings from the configuration file that you previously exported.

This procedure restores only the vSphere Distributed Switch configuration of a vCenter Server instance.

The restore operation changes the settings on the vSphere Distributed Switch back to the settings saved in the configuration file. The operation overwrites the current settings of the vSphere Distributed Switch and its port groups. The operation does not delete existing port groups that are not a part of the configuration file.

The vSphere Distributed Switch configuration is part of the vCenter Server backup. If you want to restore the entire vCenter Server instance, see Restore vCenter Server.

Procedure

  1. In a web browser, log in to the vCenter Server by using the vSphere Client (https://<vcenter_server_fqdn>/ui).
  2. Select Menu > Networking.
  3. In the inventory expand vCenter Server > Datacenter.
  4. Expand the Management networks folder, right-click the distributed switch and select Settings > Restore configuration.
  5. On the Restore switch configuration page, click Browse, navigate to the location of the configuration file for the distributed switch, and click Open.
  6. Select the Restore distributed switch and all port groups radio-button and click Next.
  7. On the Ready to complete page, review the changes and click Finish.
  8. Repeat these steps for the other vSphere Distributed Switch.
  9. Review the switch configuration to verify that it is as you expect after the restore.