Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Command Operating Modes

The device provides a command processing subsystem for management and execution of system commands. The subsystem shell provides the following main functions:

  • Registration of system commands
  • Editing of system configuration commands by users
  • Parsing of the commands that have been inputted by users
  • Execution of system commands

If a user configures the device through shell commands, the system provides multiple operating modes for the execution of the commands. Each command mode supports specific configuration commands. In this way, hierarchical protection is provided to the system, protecting the system from unauthorized access.

The shell subsystem provides multiple modes for the operating of configuration commands. These modes have different system prompts, prompting the current system mode of the user. The following lists common configuration modes:

  • Common user mode (user EXEC)
  • Privileged user mode (privilege EXEC)
  • Global configuration mode (global configuration)
  • Interface configuration mode (interface configuration)
  • File system configuration mode (file system configuration)
  • Access list configuration mode (access list configuration)
  • Other configuration modes (They will be described in the related sections and chapters.)

The following table shows how to enter the common command modes and switch over between the modes.

Table 1‑2 System Modes and Methods of Switching Over Between the Modes

Mode

How to Enter the Mode

System Prompt

How to Exit the Mode

Functions

Common user mode

Log in to the device.

Hostname>

Run the exit command to exit the mode.

Changes the terminal settings.

Performs basic tests.

Display the system information.

Privileged user mode

In common user mode, run the enable command.

Hostname#

Run the disable or exit command to exit to the common user mode.

Configure the operating parameters of the device.

Display the operating information of the device.

Global configuration mode

In privileged user mode, run the configure terminal command.

Hostname(config)#

Run the exit command to exit to the privileged user mode.

Configures the global parameters that are required for the device operation.

Interface configuration mode

In global configuration mode, run the interface command (while specifying the corresponding interface or interface group).

Hostname(config-if-xxx[number])#

or

Hostname(config-if-group[number])#

Run the exit command to exit to the global configuration mode.

Run the end command to exit to the privileged user mode.

In this mode, configures device interfaces, including:

Interfaces of different types

Interface groups

File system configuration mode

In the privileged user mode, run the filesystem command.

Hostname(config-fs)#

Run the exit command to exit to the privileged user mode.

Manages the file system of the device.

Access list configuration mode

In global configuration mode, run the ip access-list standard or ip access-list extended command.

Hostname(config-std-nacl)#

Hostname(config-ext-nacl)#

Run the exit command to exit to the global configuration mode.

Run the end command to exit to the privileged user mode.

Configures the Access Control List (ACL). The configuration tasks include:

Configuring standard access control lists.

Configuring extended access control lists.

note


  • Hostname is the system name. In global configuration mode, a user can run the hostname command to modify the system name, and the modification takes effect immediately.
  • If a user is not in privileged user mode while the user wants to run a privileged mode command, the user can use the do command to run the required command without the need to returning back to the privileged mode. (For details, refer to the related sections in "System Operation Basics" of the command manual.) Note that the mode switchover command such as do configure terminal is not included.