How to Delete Configuration on H3C Switch
2023-07-06

框架:

I. Solution 1: 

A Step-by-Step Guide

Introduction : 

Configuring and managing network switches is an essential task for network administrators. At times, it becomes necessary to delete the existing configuration on an H3C switch to start afresh or make significant changes. However, deleting a configuration requires careful consideration and precise execution to avoid disrupting network operations. In this comprehensive guide, we will walk you through the step-by-step process of deleting the configuration on an H3C switch. Whether you need to remove the entire configuration or specific sections, we've got you covered. So, let's dive in and learn how to delete the configuration on an H3C switch effectively.

I. Understanding the Importance of Configuration Deletion : 

Before we delve into the steps, let's discuss why deleting a configuration is crucial. Network switches, such as H3C switches, store configurations that define their behavior and functionality. Over time, the configuration may accumulate outdated settings, redundant entries, or misconfigurations that impact network performance and security. Deleting the configuration allows network administrators to start with a clean slate or make necessary modifications to ensure optimal switch operation.

 II. Preparing for Configuration Deletion :

 Before proceeding with the deletion process, it is essential to take a few preparatory steps to avoid potential issues. Here's what you should do:

Backing Up the Configuration: Before deleting anything, create a backup of the current configuration. This backup ensures that you can restore the previous configuration if needed.

Documenting Key Parameters: Take note of critical configuration parameters such as VLAN settings, IP addressing, routing protocols, and security settings. This documentation will help you recreate the configuration accurately after the deletion.

III. Step-by-Step Guide to Deleting Configuration on H3C Switch :

Now, let's explore the step-by-step process of deleting the configuration on an H3C switch:

Step 1: Connect to the Switch: Establish a console or SSH connection to the H3C switch using appropriate terminal emulation software.

Step 2: Enter the System View: Once connected, enter the system view, which provides access to configuration deletion commands. Type the following command and press Enter:

 

How to Delete Configuration on H3C Switch

 

 

Step 3: Determine the Deletion Method: There are multiple methods to delete the configuration on an H3C switch. You can choose either of the following based on your requirements:

a. Method 1: Clearing the Configuration File: Using this method will delete the entire configuration, reverting the switch to its default state. Enter the command:

 

How to Delete Configuration on H3C Switch

 

 

This command erases the startup configuration file.

b. Method 2: Deleting Specific Configuration Sections: If you wish to remove specific configuration sections while keeping others intact, follow these steps:

· Delete VLAN Configuration: To delete VLAN configuration, navigate to the VLAN interface context using the following command:

 

How to Delete Configuration on H3C Switch

 

 

Replace X with the VLAN ID you want to delete. Then, execute the undo command to remove the VLAN:

 

How to Delete Configuration on H3C Switch

 

 

Repeat these steps for each VLAN you want to delete.

· Delete Interface Configuration: To delete interface configuration, access the corresponding interface context using the following command:

 

How to Delete Configuration on H3C Switch

 

 

Replace [interface-type interface-number] with the appropriate interface identifier. Then, execute the undo command to remove the interface configuration:

 

How to Delete Configuration on H3C Switch

 

 

Replace [specific-configuration] with the configuration parameter you wish to delete. Repeat these steps for each interface you want to modify.

· Delete Routing Configuration: To delete routing configurations, navigate to the appropriate routing context and use the undo command to remove specificrouting configurations. For example, to delete a static route, use the following commands:

 

How to Delete Configuration on H3C Switch

 

 

Repeat these steps for each routing configuration you want to delete.

Step 4: Saving the Changes: After deleting the configuration, it is crucial to save the changes to make them effective. Execute the following command to save the modified configuration:

 

How to Delete Configuration on H3C Switch

 

 

This command saves the changes made in the current session to the startup configuration file.

Step 5: Verification: To ensure that the configuration has been successfully deleted, exit the system view and display the current configuration using the following commands:

 

How to Delete Configuration on H3C Switch

 

 

Review the displayed configuration to confirm that the deleted sections or the entire configuration no longer exist.

IV. Post-Configuration Deletion Tasks : After deleting the configuration on an H3C switch, there are a few tasks you should perform:

 

Configuration Reconstruction: If you deleted specific sections, recreate the necessary configuration based on your requirements. Utilize the documentation prepared earlier to ensure accuracy.

 

Testing and Validation: After reconfiguring the switch, thoroughly test the network connectivity, VLAN functionality, routing, and security settings to ensure everything is functioning as intended.

 

Documentation Update: Update your network documentation to reflect the changes made and keep it up to date for future reference.

 

Conclusion : Deleting the configuration on an H3C switch is a task that requires careful execution to avoid network disruptions. By following the step-by-step guide provided in this article, you can confidently delete the entire configuration or specific sections based on your needs. Remember to back up the configuration before making any changes and document crucial parameters for reference. Regularly reviewing and optimizing switch configurations contribute to efficient network management and security. With this knowledge, you are equipped to maintain a well-configured H3C switch and ensure optimal network performance.

II. Solution 2:

restore startup-configuration

Syntax

<Sysname>

restore startup-configuration from src-addr src-filename

View

User view

Default level

3: Manage level

Parameters

src-addr: IP address or name of a TFTP server. The address cannot be an IPv6 address.

src-filename: Filename of the configuration file to be downloaded from the specified server.

Description

Use the restore startup-configuration command to download a configuration file from the specified TFTP server to the switch and specify the configuration file as the startup configuration file to be used at the next startup of the switch.

Used in standalone mode, this command downloads the configuration file to the root directory of the storage medium of the AMB and SMB and specifies the file as the startup configuration file to be used at the next startup of the AMB and SMB. If the file to be downloaded has the same filename as an existing file on the AMB or SMB, you will be prompted whether you want to overwrite the existing file or not. In addition, both the AMB and the SMB are assumed to use the storage media of the same type when the switch is checking the filename or backing up the configuration file to the SMB. When backing up the configuration file to the SMB, the switch saves the file to the same directory on the SMB as on the AMB, that is, the root directory. (For a switch whose storage medium has been partitioned, the directory is the first partition of the storage medium.) If the storage media of the AMB and the SMB are of different types, for example, a flash and a CF card respectively, the backup operation will fail.

Used in IRF mode, this command downloads the configuration file to the root directory of the storage medium of each main board of the IRF fabric and specifies the file as the startup configuration file to be used at the next startup of all the main boards. If the file to be downloaded has the same filename as an existing file on a member switch, you will be prompted whether you want to overwrite the existing file or not. In addition, both the AMB and an SMB of the IRF fabric are assumed to use the storage media of the same type when the switch is checking the filename or backing up the configuration file to the SMB of the IRF fabric. When backing up the configuration file to the SMB of the IRF fabric, the switch saves the file to the same directory on the SMB of the IRF fabric as on the AMB of the IRF fabric, that is, the root directory. (For a switch whose storage medium has been partitioned, the directory is the first partition of the storage medium.) If the storage media of the AMB and the SMB of the IRF fabric are of different types, for example, a flash and a CF card respectively, the backup operation will fail.

Examples

# Download configuration file config.cfg from the TFTP server whose IP address is 2.2.2.2, and the configuration file is to be used at the next startup of the switch.

 

<Sysname>restore startup-configuration from 2.2.2.2 config.cfg

Restore next startup-configuration file from 2.2.2.2. Please wait...finished!

Now restore next startup-configuration file from main to slave board. Please wait...finished!

# In IRF mode, download file config.cfg from the TFTP server whose IP address is 2.2.2.2, and the file is to be used as the main configuration file to be used at the next startup of the switch.

<Sysname>restore startup-configuration from 2.2.2.2 config.cfg

Restore next startup-configuration file from 2.2.2.2. Please wait...finished!

Now restore next startup-configuration file from main to slave board. Please wait...finished!

 

III. Solution 3:

"H3C switches are common network devices that provide efficient network transmission and data exchange capabilities. When using an H3C switch, it may be necessary to clear its configuration information in order to reconfigure the network. This article will introduce the methods for clearing the configuration on an H3C switch to better manage network devices.

I. Backup the Original Configuration

Before clearing the configuration on an H3C switch, it is important to back up the original configuration information for potential recovery or reference purposes. The backup process is as follows:

Connect to the H3C switch using a terminal.

 

Enter CLI mode and use the following command to backup the configuration information:

 

display current-configuration > backup.cfg

This command will back up the original configuration information to the backup.cfg file.

II. Clearing the H3C Switch Configuration

Clearing the configuration on an H3C switch requires the following command:

reset saved-configuration

This command will clear the switch's configuration and restore it to the factory default settings. Before executing this command, ensure that there are no important configuration information on the switch to avoid data loss.

III. Restoring the Backup Configuration

If you need to restore the backup configuration information, you can use the following steps:

 

Connect to the H3C switch using a terminal.

 

Enter CLI mode and execute the following command:

 

system-view

00001. Then, execute the following command to import the backup configuration information to the switch:

load backup.cfg

This command will import the backup configuration information to the switch and restore the original configuration. If modifications to the configuration are required, custom commands can be used for modification.

IV. Other Considerations

 

Before performing any operations, carefully read the user manual of the H3C switch to learn more about configuration and management information.

 

When backing up and restoring configuration information, ensure the integrity and correctness of the backup information to avoid data loss or configuration errors.

 

When clearing the configuration information, ensure that it does not affect the normal operation and data transmission of the network. If large-scale network changes are required, plan and test in advance to ensure successful implementation.

 

In conclusion, clearing the configuration on an H3C switch is an essential part of network management. Only with proper configuration management can the network run stably and efficiently. It is hoped that this article can be helpful to you, and it is also recommended to exercise caution and attention in practical operations to ensure the stability and security of the network."

 

IV. Solution 4: 

Step 1: Open the H3C simulator.

How to Delete Configuration on H3C SwitchHow to Delete Configuration on H3C Switch

Step 2: Create the device, power it on, double-click on the switch, wait a few seconds, and then press Ctrl+D to enter the configuration interface.

How to Delete Configuration on H3C SwitchHow to Delete Configuration on H3C Switch

Step 3: Configure the switch. Here, I randomly configured an IP address and routing for the switch.

How to Delete Configuration on H3C SwitchHow to Delete Configuration on H3C Switch

Step 4: After finishing the configuration, save it by typing 'save' followed by 'yes' and pressing Enter. Then, reboot the switch.

How to Delete Configuration on H3C SwitchHow to Delete Configuration on H3C Switch

Step 5: After the reboot, the configuration is still intact. Now, we need to clear the data. This can be done with a single command: 'reset saved-configuration'. Choose 'YES' when prompted. Once the switch is rebooted again, the configuration will be cleared."

How to Delete Configuration on H3C SwitchHow to Delete Configuration on H3C Switch

Note: It's worth mentioning that this translation assumes the use of an H3C simulator for instructional purposes. In a real-world scenario with an actual H3C switch, the process may vary slightly, and it's essential to refer to the official documentation or seek expert guidance.

 

 

V. Solution 5:

"Here is the method to clear the settings on H3C switches: In the user view, enter 'Quidway resetsaved-configuration.' A switch is a network device used for forwarding electrical (or optical) signals. Copy the command to the command line of the super terminal and paste it into the host. To clear the switch configuration, use the command 'resetsave' and then 'reboot.' When configuring routers and switches, make sure not to power off, and always check network connectivity before conducting connectivity tests, avoiding basic mistakes.

Step 1: Open the H3C simulator. 

Step 2: Create the device, power it on, double-click on the switch, wait a few seconds, and then press Ctrl+D to enter the configuration interface. 

Step 3: Configure the switch. Here, I randomly configured an IP address and routing for the switch.

Step 1: After connecting to the router, enter '19160.1' in the address bar, as shown in the image below, and proceed to the next steps. 

Step 2: After completing the above steps, enter the router and click on the 'Advanced Settings' option, as shown in the image below, and proceed to the next steps.

To delete all routes, add 'delete' followed by the network segment parameter after the 'route' command. H3C switches are communication devices owned by Hangzhou H3C Communications. They provide a comprehensive range of switch products in the industry. To delete all routes, you can add 'delete' followed by the network segment parameter after the 'route' command."

Note: This translation is based on the provided text, which contains some fragmented sentences and incomplete information. Please note that the translated text may not be a complete and accurate representation of the intended meaning.

 

TECHNICAL SUPPORT
Get solutions or consultation from the technical team.