Today we will see How to Backup and Restore vsphere distributed switch? To do the backup of vsphere distributed switch you need to make sure you have access to the web client console. This Backup and Restore features is only possible if we logged into the webclient console of vsphere.

Exporting Distributed Switch configurations

You can export vSphere distributed switch and distributed port group configurations to a file. The file preserves valid network configurations, enabling distribution of these configurations to other deployments. This functionality is available only with the vSphere Web Client 5.1 or later. However, you can export settings from any version of a distributed switch if you use the vSphere Web Client or later.

To export vSphere Distributed Switch configurations using the vSphere Web Client:

1.Browse to a distributed switch in the vSphere Web Client navigator.

2.Right-click the distributed switch and click All vCenter Actions > Export Configuration.

3.Select the Export the distributed switch configuration or Export the distributed switch configuration and all port groups option.

4.(Optional) Enter notes about this configuration in the Description field.

5.Click OK.

6.Click Yes to save the configuration file to your local system.

You now have a configuration file that contains all settings for the selected distributed switch and distributed port group. You can use this file to create multiple copies of this configuration on an existing deployment or overwrite the settings of existing distributed switches and port groups to conform to the selected settings.

 

Importing Distributed Switch configurations

Exported configuration file can be used to create a copy of the exported distributed switch or to overwrite settings on an existing distributed switch.

To create a copy of exported distributed switch, use the import option to create a distributed switch from an exported configuration file. The configuration file contains valid network configurations, enabling distribution of these configurations to other deployments. This functionality is available only with the vSphere Web Client 5.1 or later. However, you can import settings from any version of distributed switch if you use the vSphere Web Client 5.1 or later.

To Import a vSphere Distributed Switch Configuration using the vSphere Web Client:

1.Browse to a datacenter in the vSphere Web Client navigator.

2.Right-click the datacenter in the navigator and click All vCenter Actions > Import Distributed Switch.

3.Browse to the location of your saved configuration file.

4.Select the Preserve original distributed switch and port group identifiers option.

5.Click Next. If you entered notes about the saved configuration file, they appear in the Notes section.

6.Review the import settings before completing the import.

7.Click Finish.

A new distributed switch is created with configuration settings from the configuration file. If you included distributed port group information in your configuration file, the distributed port groups are also created.

 

Restoring Distributed Switch configurations

You can 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. This functionality is available only in the vSphere Web Client 5.1 or later. However, you can restore settings from any distributed switch version if you use the vSphere Web Client 5.1 or later.

To Restore a vSphere Distributed Switch Configuration using the vSphere Web Client: 1.Browse to a distributed switch in the vSphere Web Client navigator.

2.Right-click the distributed switch and click All vCenter Actions > Restore Configuration.

3.Browse for the configuration backup file to use.

4.Select the Restore distributed switch and all port groups or Restore distributed switch only option and click Next.

5.Review the summary information for the restore.

6.Click Finish.

 

Note: Restoring a distributed switch overwrites the current settings of the distributed switch and its port groups. It does not delete existing port groups that are not part of the configuration file.

Aricle Source : How to Backup and Restore vsphere distributed switch? (VMWARE)

newsletter-aik

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!