No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Configuration Guide - Basic Configuration

S7700 and S9700 V200R011C10

This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Entering Command Views

Entering Command Views

The device has many functions; therefore various configuration commands and query commands are provided to facilitate device management and maintenance. Huawei switch registers commands to different command views based on the functions of the commands so that users can easily use them. To configure a function, enter the corresponding command view and then run corresponding commands.

The device provides various command views. For the methods of entering the command views except the following views, see the S7700 and S9700 V200R011C10 Command Reference.

Common Command Views

Name How To Enter Function
User view

When a user logs in to the device, the user enters the user view and the following prompt is displayed:


In the user view, you can view the running status and statistics of the device.

System view

Run the system-view command and press Enter in the user view. The system view is displayed.

<HUAWEI> system-view
Enter system view, return user view with Ctrl+Z.

In the system view, you can set the system parameters of the device, and enter other function views from this view.

Interface view

Run the interface command and specify an interface type and number to enter the interface view.

[HUAWEI] interface gigabitethernet X/Y/Z

X/Y/Z indicates the number of an interface that needs to be specified. It is in the format of slot number/card number/interface sequence number.

The interface GigabitEthernet is used as an example.

In the interface view, you can configure interface parameters including physical attributes, link layer protocols, and IP addresses.

Routing protocol view

Run a command to activate a routing protocol process in the system view. The corresponding routing protocol view is displayed.

[HUAWEI] isis

In routing protocol views, you can configure most routing protocol parameters. The routing protocol views include the IS-IS view, OSPF view, and RIP view.

The command line prompt HUAWEI is the default host name (sysname). The prompt indicates the current view. For example, <> indicates the user view and [] indicates all other views except the user view.

You can enter ! or # followed by a character string in any view. All entered content (including ! and #) is displayed as comments. That is, the corresponding configuration is not generated.

  • Some commands can be executed in multiple views, but they have different functions after being executed in different views. For example, you can run the lldp enable command in the system view to enable LLDP globally and in the interface view to enable LLDP on an interface.

  • In the system view, you can run the diagnose command to enter the diagnostic view. Diagnostic commands are used for device fault diagnosis. If you run some commands in the diagnostic view, the device may fail to run properly or services may be interrupted. Contact technical support personnel and use these diagnostic commands with caution.
  • You can enter ! or # followed by a character string in any view. All the entered content (including ! and #) is displayed as comments and can be properly. That is, no error message is displayed and no the corresponding configuration is not generated.

Exiting Command Views

You can run the quit command to return from the current view to an upper-level view.

For example, you can run the quit command to return from the AAA view to the system view. You can then run the quit command again to return from the system view to the user view.
[HUAWEI-aaa] quit
[HUAWEI] quit

To return from the AAA view directly to the user view, press Ctrl+Z or run the return command.

# Press Ctrl+Z to return directly to the user view.
[HUAWEI-aaa]           // Enter Ctrl+Z
# Run the return command to return directly to the user view.
[HUAWEI-aaa] return

Intelligent Rollback

Intelligent rollback enables the system to automatically return to the previous view if a command fails to be executed in the current view. The system performs view return attempts until the applicable view of the command is displayed. The system can return to the system view at the maximum extent.

Intelligent rollback cannot be performed in the port group view and VLAN-Range view.

If command matching fails because an ambiguous command is entered in the current view, no intelligent rollback can be performed.

If the intelligent rollback function is enabled, commands may be executed in unexpected views, and services may be interrupted. Before configuring a command, check whether the command to be configured exists in the view. If the command does not exist, run the command in the correct view.

The following provides two application examples for intelligent rollback. The system enters the applicable view of a command after performing one view return attempt in the first example, and performs multiple attempts in the second example.

  1. After entering an OSPF area view, the system allows a user to directly enter another OSPF area view, without the need to manually return to the OSPF view.

    <HUAWEI> system-view
    [HUAWEI] ospf 100
    [HUAWEI-ospf-100] area 1
    [HUAWEI-ospf-100-area-] area 2
  2. After entering an OSPF area view, the system allows a user to directly enter an interface view, without the need to manually return to the system view.

    <HUAWEI> system-view
    [HUAWEI] ospf 100
    [HUAWEI-ospf-100] area 1
    [HUAWEI-ospf-100-area-] interface gigabitEthernet 1/0/3
Updated: 2020-02-04

Document ID: EDOC1000178308

Views: 100961

Downloads: 152

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next