H3C Campus Fixed-Port Switches CLI-Based Quick Start Configuration Guide-6W101

HomeSupportQuick StartH3C Campus Fixed-Port Switches CLI-Based Quick Start Configuration Guide-6W101
Table of Contents
Related Documents
03-Configuration File Management Quick Start Configruation Guide

Configuration File Management Quick Start Configuration Guide

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2022 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Restoring the factory defaults

Introduction

The following information uses an example to describe methods for restoring the factory defaults.

Restrictions and guidelines

Methods for restoring the factory defaults vary by device model.

Restoring the factory defaults removes all user-configured settings. After restoration, you can log in to the device only from the console port. SSH or Telnet login is not available. For more information about console login, see Login Management Quick Start Configuration Guide.

Procedure

·     Execute the restore factory-default command and reboot the device.

# Restore the device to the factory defaults.

<Sysname> restore factory-default

This command will restore the system to the factory default configuration and clear the operation data. Continue [Y/N]:y

Restoring the factory default configuration. This process might take a few minutes. Please wait..........................................................................................................Done.

Please reboot the system to place the factory default configuration into effect.

# Reboot the device without saving the running configuration.

<Sysname> reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
Current configuration will be lost after the reboot, save current configuration? [Y/N]:n

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

·     Remove configuration files and reboot the device.

# Display the names of the current startup configuration file and the next-startup configuration files.

<Sysname> display startup

MainBoard:

 Current startup saved-configuration file: flash:/startup.cfg

 Next main startup saved-configuration file: flash:/startup.cfg

 Next backup startup saved-configuration file: NULL

# Display the configuration files on the device.

<Sysname> dir

Directory of flash:

   0 -rw-        6244 Jan 08 2013 07:26:03   startup.cfg

   1 -rw-      136628 Jan 08 2013 07:26:03   startup.mdb

   2 -rw-       58704 Jan 03 2013 07:56:22   diag_H3C_20130103-005605.tar.gz

...

# Delete the next-startup configuration file.

<Sysname> delete /unreserved startup.cfg

The file cannot be restored. Delete flash:/startup.cfg?[Y/N]:y

Deleting a file permanently will take a long time. Please wait...

%Delete file flash:/startup.cfg...Done.

# Reboot the device.

<Sysname> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

Current configuration will be lost after the reboot, save current configuration? [Y/N]:n

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

·     Delete the next-startup configuration file and reboot the device.

 

IMPORTANT

IMPORTANT:

·     By default, this method permanently deletes the next-startup configuration files from all IRF member devices. To delete the configuration file only from the master device, disable automatic system-wide next-startup configuration file operations.

·     Reboot the device without saving the running configuration.

 

# Display the names of the current startup configuration file and the next-startup configuration files.

<Sysname> display startup

MainBoard:

 Current startup saved-configuration file: flash:/startup.cfg

 Next main startup saved-configuration file: flash:/startup.cfg

 Next backup startup saved-configuration file: NULL

# Delete the main next-startup configuration file.

<Sysname> reset saved-configuration

The saved configuration file will be erased. Are you sure? [Y/N]:Y

If the device has a backup next-startup configuration file, execute the reset saved-configuration backup command to delete the backup next-startup configuration file.

# Reboot the device.

<Sysname> reboot
Start to check configuration with next startup configuration file, please wait.........DONE!

Current configuration will be lost after the reboot, save current configuration? [Y/N]:n

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

Related documentation

·     Configuration file management in the fundamentals configuration guide for the device.

·     Configuration file management commands in the fundamentals command reference for the device.

·     Device management in the fundamentals configuration guide for the device.

·     Device management commands in the fundamentals command reference for the device.

·     File system management in the fundamentals configuration guide for the device.

·     File system management commands in the fundamentals command reference for the device.


Backing up the configuration file

Introduction

The following information uses an example to describe the basic procedure for configuration file backup.

Network configuration

As shown in Figure 1, back up the current configuration file of the device to the FTP server.

Figure 1 Network diagram

 

Prerequisites

Make sure the device can reach the FTP server.

Procedure

# Save the running configuration to a configuration file. By default, the name of the configuration file is startup.cfg.

<Sysname> save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

The output shows that the device has a configuration file named starup.cfg by default.

# Upload the startup.cfg file to the FTP server.

<Sysname> ftp 192.168.10.1

Press CTRL+C to abort.

Connected to 192.168.10.1 (192.168.10.1).

220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user

User (192.168.10.1:(none)): root

331 Give me your password, please

Password:

230 Logged in successfully

Remote system type is MSDOS.

ftp> binary

200 Type is Image (Binary)

ftp> put start.cfg

ftp: No such file or directory

ftp> put startup.cfg

227 Entering Passive Mode (192,168,10,1,235,54)

150 "D:\temp\startup.cfg" file ready to receive in IMAGE / Binary mode    

.                                                                              

226 Transfer finished successfully.

4326 bytes sent in 0.003 seconds (1.49 Mbytes/s)

Verifying the configuration

# Display uploaded configuration files.

ftp> dir

227 Entering Passive Mode (192,168,10,1,252,152)

1 File Listing Follows in ASCII mode

-rwxrwxrwx   1 noone    nogroup     4326 Sep  2 14:00 startup.cfg

The output shows that the startup.cfg file has been uploaded to the FTP server.

Related documentation

·     Configuration file management in the fundamentals configuration guide for the device.

·     Configuration file management commands in the fundamentals command reference for the device.

·     FTP and TFTP configuration in the fundamentals configuration guide for the device.

·     FTP and TFTP commands in the fundamentals command reference for the device.


Skipping automatic configuration

Introduction

When the device starts up without a valid next-startup configuration file, the device searches the root directory of its default file system for the autocfg.py, autocfg.tcl, and autocfg.cfg files. Only one of files might exist in the root directory. If any one of the files exists, the device loads the file. If none of the files exists, the device uses the automatic configuration feature to obtain a set of configuration settings.

With the automatic configuration feature, the device can automatically obtain a set of configuration settings at startup. Automatic configuration simplifies network configuration and maintenance.

If the device is not deployed in a large-scale network, skip automatic configuration.

The following information uses an example to describe the basic procedure for skipping automatic configuration.

Network configuration

As shown in Figure 2, the device starts up with the initial configuration and skips automatic configuration.

Figure 2 Network diagram

 

Prerequisites

When the device starts up with the initial configuration, log in to the device from the console port. For more information about console login, see Login Management Quick Start Configuration Guide.

Procedure

# Power on the device.

Starting......                                                                 

Press Ctrl+D to access BASIC BOOT MENU                                         

Press Ctrl+T to start heavy memory test                                        

                                                                               

********************************************************************************

*                                                                              *

*                 H3C S5570S-28S-HPWR-EI  BOOTROM, Version 105                 *

*                                                                              *

********************************************************************************

Copyright (c) 2004-2021 New H3C Technologies Co., Ltd.                         

                                                                                

Creation Date         : Jul  6 2021                                            

CPU Clock Speed       : 1000MHz                                                

Memory Type           : DDR4 SDRAM                                              

Memory Size           : 1024MB                                                 

Memory Speed          : 800MHz                                                 

CPLD Version          : 001                                                     

PCB Version           : Ver.A                                                  

Mac Address           : b04414cd47a4                                           

                                                                                

                                                                               

BootRom Validating...                                                          

Press Ctrl+B to access EXTENDED BOOT MENU...0                                  

Loading the main image files...                                                

Loading file flash:/s5570s_ei-cmw710-system-e1105p09.bin........................

.......................................................Done.                   

Loading file flash:/s5570s_ei-cmw710-devkit-e1105p09.bin.....Done.             

Loading file flash:/s5570s_ei-cmw710-boot-e1105p09.bin.........Done.           

                                                                               

Image file flash:/s5570s_ei-cmw710-boot-e1105p09.bin is self-decompressing......

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................Done.                                                          

System is starting...                                                           

Cryptographic algorithms tests passed.                                         

                                                                               

Startup configuration file doesn't exist or is invalid.                         

Performing automatic configuration... Press CTRL_C or CTRL_D to break.         

                                                                               

Automatic configuration attempt: 1.                                             

Not ready for automatic configuration: no interface available.                 

Waiting for the next...       

 

Automatic configuration attempt: 2.                                            

Not ready for automatic configuration: no interface available.                 

Waiting for the next...                    

 

Press CTRL+D or Ctrl+C to stop automatic configuration and enter the Comware system.

Related documentation

·     Automatic configuration in the fundamentals configuration guide for the device.

·     Automatic configuration commands in the fundamentals command reference for the device.

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网