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.


CLI-based Configuration Guide - Basic Configuration

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the Basic configuration supported by the device.
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 router 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 Huawei AR Series Access Routers 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.

  • 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.

Exiting Command Views

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

For example, after you run the quit command to return from the AAA view to the system view, you can 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
Updated: 2019-08-08

Document ID: EDOC1100034066

Views: 83482

Downloads: 466

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next