vCenter Server provides the ability to backup and restore the configuration of a vSphere Distributed Switch. Learn how to restore the virtual network configuration in cases of database or upgrade failure. You can also use a saved switch configuration as a template to create a copy of the switch in the same or a new vSphere environment.
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.
Export vSphere Distributed Switch Configurations
Learn how to 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.
Procedure
- 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.
Import a vSphere Distributed Switch Configuration
Learn how to import a stored configuration file to create a new vSphere Distributed Switch or to restore a switch that has been deleted earlier.
The configuration file contains the networking settings of the switch. By using it you can also replicate the switch in other virtual environments.
Procedure
Results
A new distributed switch is created with settings from the configuration file. If you have included distributed port group information in the configuration file, the port groups are also created.
Restore a vSphere Distributed Switch Configuration
Learn how to use the restore option to reset the configuration of an existing distributed switch to the settings in the configuration file. Restoring a distributed switch changes the settings on the selected switch back to the settings saved in the configuration file.