Huawei command line, file system, VRP system basics

1. The following interface will appear when the Huawei device is initialized. After hardware detection, you will be prompted whether you want to configure it automatically? General Choice: No N

     

2. Command line view

     Device startup: Enter the user view, displayed as <huawei> —— Purpose: Check the running status        

     Enter the command: system-view to enter the system view, which is displayed as [huawei] —— Purpose: To configure the system parameters of the device

           For example, after modifying the device name sysname R1 and pressing Enter, the system name is changed from the original default to R1.

           

     Input interface: interface Enter interface view - purpose: configure interface parameters, such as IP address

           For example, enter the G 0/0/0 interface

           

     Protocol View - Purpose: To configure routing protocols

           For example, enter the ospf routing protocol

           

 

    

3. Common shortcut keys of the command line

     3.1 quit to exit the current view

     3.2 Ctrl+A moves the cursor to the front of the current command line

     3.3 Ctrl+Z return to user view

     3.4 Ctrl+C stops the running of the current command

     3.5 Ctrl+] Terminate the current connection or switch connections

     3.6 Ctrl+F or → Move the cursor one position to the right

     3.7 Ctrl+B or ← Move the cursor one position to the left

     3.8 Backspace deletes a character to the left of the cursor

     3.9 Tab Enter an incomplete command and press the Tab key to complete the command

4, command line online help (the difference is how many letters are typed, through? Achieved)

        

5. Basic configuration steps

5.1 sysname configure the device name

      

5.2 Configuring the system clock

      clock timezone BJ add 08:00:00 Set the time zone Beijing +8 zone

      clock datetime hour:minute:second year:month:day  

      display clock View clock settings.

      

5.3 Configure the title message (Warning message: equivalent to a disclaimer, less domestic use, more foreign.)

      

5.4 Command level: The default level after logging in to the system is level 15

     For example: command-privilege level 3 view user save view mode authorizes the save command to level 3

             (The system default save level is 3)

      

5.5 User Interface (Remote Login)

      The console interface is connected with a console cable, and there is only one interface numbered 0

      VTY interface: telnet connection is generally used for a total of 16 interfaces from 0 to 15, which supports 16 logins at the same time.

      VTY interface: Huawei equipment supports a total of 15 interfaces from 0 to 14.

      

5.6 Configure user interface commands (take the console interface as an example)

      Note: screen-length must not be set to 0 lines, otherwise the screen will not be able to display commands.

      

5.7 Configuring Login Permissions

       

      Command analysis in the figure:

            enter user view

            Connect the device using vty 0 port

            Specifies that the user level under the user interface is 2

            Configure the local authentication password as huawei (cipher means cipher text display)

5.8 Configuring the IP Address of the Router Interface

      Command description: int g0/0/0 is equivalent to interface gigabitethernet 0/0/0 (the former is a shorthand for the latter)

     

      Graphical command analysis:

             system-view enters user view

             int g0/0/0 enters port g0/0/0

             ip address 10.0.12.1 24 Set the IP as the mask as (24 has the same effect as 255.255.255.0)

6. File System Basics

6.1 Basic query commands

      

6.2 Directory operations (similar to Linux system commands)

      

6.3 File Operations

      

      

7. Configuration file

7.1 Configuration file management

      Current-Configuration File

      Saved-Configuration File Saved-Configuration File

      When the device starts, the saved configuration file will be loaded into RAM as the current configuration file.

      

7.2 Configuration file query

      

7.3 Save the configuration file (it needs to be saved in user mode to take effect)

      

7.4 System startup file query

      

7.5 System startup configuration file modification

      

7.6 Comparing the current configuration with the saved configuration

      

7.7 Configuration file reset: Empty the saved configuration file, which is equivalent to restoring the initial settings

      

8. Common storage devices

8.1 Common storage devices of switches

      Flash storage is VRP SD Card storage is VRP NVRAM storage configuration file    

       

8.2 Storage device repair (If the storage device fails, the system will prompt.)

      When the file system of the storage device is abnormal, you can use the fixdisk command to repair it.

      

8.3 Format the storage device format: Data will be lost after formatting.

      

9. Huawei VRP system management

     In order to meet the needs of the business on the network, the system files in the network devices will be continuously upgraded; in addition, the files in the network devices also need to be backed up frequently to prevent damage caused by sudden device failures. When upgrading or backing up system files and configurations, FTP or TFTP transfer is often used.

9.1 Upgrade VRP

      

9.2 File transfer:

      The network device can obtain VRP system files from the server, and can also save log files and configuration files to the server as backup.

      

9.3 File Transfer Protocol

      Two commonly used file transfer protocols are FTP and TFTP.

      FTP transfer: uses the TCP protocol; a connection is required to upload or download files. The stability is better and there is no error.

      TFTP transmission: The UDP protocol is used. No connection is required to upload or download files.

      

9.4 Example: Update VRP system files through FTP server

      

           Command interpretation: system-view for user view mode - change machine name - enter port - configure IP

      

         Command interpretation: View the remaining storage space of the device (if the remaining space is insufficient, you can delete irrelevant VRP files or other files)

          Special attention: Once the VRP file is deleted, the device must not be restarted, otherwise the device cannot be started. (ie operation, do not power off)

          

          Command interpretation: establish a connection with FTP, enter the account password, and get the VRP file name . (download via FTP)

         

          Command interpretation: (download via TFTP) TFTP IP address get VRP file name .

      

      After the VRP file is downloaded, run the startup system-software VRP file name command to  specify the VRP to be loaded at the next startup.

      After the formulation is completed, enter the command reboot to restart the device.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325022370&siteId=291194637