You can export the configuration of a vSphere distributed switch from the vSphere Web Client, including distributed port group configurations. The exported configuration preserves valid networking settings, enabling their distribution to other deployments.

You can import or export a configuration of a distributed switch including its port groups. For information about exporting, importing, and restoring a port group configuration, see Export, Import, and Restore vSphere Distributed Port Group Configurations.


You can use a saved configuration file to restore policies and hosts associations on the distributed switch. You cannot restore the connection of physical NICs to uplink ports or ports of link aggregation groups.