How to delete configuration on DAHUA switch
2023-07-05

Introduction:

Deleting the configuration on a DAHUA switch is a necessary task in certain situations. Whether you're troubleshooting network issues, making changes to the switch setup, or want to revert to factory default settings, understanding the process of deleting the configuration is essential. In this article, we will walk you through step-by-step instructions on how to delete the configuration on a DAHUA switch.

I. Solution 1:

Before beginning the process, it's important to note that deleting the configuration on a switch will erase all the settings and customization you have made. Therefore, it is highly recommended to backup your configuration before performing any deletion procedures. This will ensure that you can restore settings if necessary.

Step 1: Access the switch's command-line interface (CLI)

To delete the configuration, you need to access the switch's command-line interface (CLI). There are several ways to achieve this, either by connecting to the switch through a console cable or remotely via SSH (Secure Shell) or Telnet. Choose the method that is most convenient for you.

Step 2: Login to the CLI

Once you have established a connection to the switch's CLI, you need to log in with administrative privileges. By default, the username is "admin," and the password is "admin" or may be left blank. However, it is highly recommended to change the default password for security reasons. Enter the correct username and password to proceed.

Step 3: Enter configuration mode

After logging in, you will be in the user EXEC mode. To delete the configuration, you need to enter configuration mode. In the CLI, type "enable" to enter privileged EXEC mode. Then, type "configure terminal" or simply "config t" to enter the configuration mode.

Step 4: Delete the configuration file

Once you are in the configuration mode, you are ready to delete the configuration file. In DAHUA switches, the configuration is saved in a file called "startup-config." To delete this file, type the command "erase startup-config" and confirm the deletion when prompted.

Step 5: Reload the switch

After deleting the configuration file, it's necessary to reload the switch to apply the changes. Type the command "reload" and confirm the reload when prompted. This will restart the switch with a fresh configuration or factory defaults if no backup configuration is loaded.

Step 6: Verify the deleted configuration

After the switch has restarted, you can verify if the configuration has been successfully deleted. Log in again using your credentials and check the CLI prompt. If the prompt shows the default settings or factory default settings, it means that the configuration has been deleted successfully.

Step 7: Restoring a backup configuration (if necessary)

If you have previously backed up your configuration and need to restore it, follow these steps. Access the CLI, enter configuration mode, and type the command "copystartup-config". This will copy your backup configuration file to the startup configuration file. After that, reload the switch to apply the restored configuration.

Conclusion:

Deleting the configuration on a DAHUA switch is a straightforward process that can be useful in troubleshooting or resetting the switch to its default settings. By following the steps outlined in this article, you can confidently delete the configuration and have a fresh setup or revert to factory defaults if needed. Remember to always backup your configuration before performing any deletion procedures to ensure you have a restore point in case of any issues.

II. Solution 2:

"The command to restore factory settings for Dahua switches is as follows:

1. Enter SystemView.

2. Enter the command "system-view" to enter SystemView.

3. Enter "reset-saved configuration" and press enter.

4. Press "y" and enter to confirm that the switch will be restored to the factory default settings.

5. Enter "quit" to exit SystemView.

6. Enter "save" to save the configuration.

7. Enter "reboot" to restart the switch."

 

III. Solution 3:

1. Reset command:

As shown in the figure: Reset switch configuration in user view: reset saved configuration/reset save

2. Confirm initialization, do you want to proceed with initialization? Select Y Enter

 

How to delete configuration on DAHUA switch

 

 

3. After initialization, the original command will not be cleared immediately. The switch must be restarted. The restart command is reboot, which needs to be performed in view mode.

 

How to delete configuration on DAHUA switch.jpg

 

 

4. Finally, enter sy to enter the system view and view the configuration through display current configuration.

 

How to delete configuration on DAHUA switch

 

 

 

IV. Solution 4:

Long press the PNP key on the switch to Factory reset

If we are doing real machine configuration, we can modify the underlying configuration file by long pressing the PNP button on the switch, restore the device to its factory configuration, and restart it.

 

How to delete configuration on DAHUA switch

 

 

 

V. Solution 5:

1. Reset command

2. In the user view, use the reset factory configuration command to Factory reset, and enter Y to confirm clearing the computer configuration.

 

How to delete configuration on DAHUA switch

 

 

 

TECHNICAL SUPPORT
Get solutions or consultation from the technical team.