You can export vSphere Distributed Switch and distributed port group configurations to a file. The file preserves valid network configurations, enabling transfer of these configurations to other environments.
- On the vSphere Client Home page, click Networking and navigate to the distributed switch.
- Right-click the distributed switch and select .
- Choose to export the distributed switch configuration, or export the distributed switch configuration and all port groups.
- (Optional) Enter notes about this configuration in the Descriptions field.
- Click OK.
- Click Yes to save the configuration file to your local system.
What to do next
- Create a copy of the exported distributed switch in a vSphere environment. See Import a vSphere Distributed Switch Configuration.
- Overwrite the settings on an existing distributed switch. See Restore a vSphere Distributed Switch Configuration.
You can also export, import, and restore only port group configurations. See Export, Import, and Restore vSphere Distributed Port Group Configurations.