To enhance the usability of the device, its numerous commands are categorized based on their functions, streamlining their application. The Command Line Interface (CLI) encompasses various command modes, each hosting one or more commands. It is imperative to switch to the relevant command mode before executing a command, as these modes share a relationship but maintain distinctions.
Upon initiating a new session between a user and the network device's management interface, the entry point is the user EXEC mode. In this mode, only a limited set of commands is available, such as the display command, with the caveat that command execution results are not saved.
For a broader range of commands, accessing privileged EXEC mode is necessary. Typically, a password is required to enter this mode. In privileged EXEC mode, all registered commands are accessible, and users can proceed to enter the global configuration mode for further configurations.
Executing commands in configuration modes, such as global configuration mode and interface configuration mode, directly impacts the operational configurations. These changes can be saved and will persist upon system restart. To transition to another configuration mode, users can enter global configuration mode, from which they can access various configuration sub-modes, like interface configuration mode.
Command Mode |
Access Method |
Prompt |
Exit or Entering Next Mode |
Function Description of the Mode |
---|---|---|---|---|
User EXEC mode | A user enters user EXEC mode by default when accessing a network device. | Micas> | Run the exit command to exit this mode. Run the privilege command to enter privileged EXEC mode. |
Use this command mode to conduct basic tests or display system information. |
Privileged EXEC mode | In User EXEC mode, run the privilege command to enter privileged EXEC mode. | Micas# | Run the disable command to return to user EXEC mode. Run the config-system command to enter global configuration mode. |
Use this command mode to check whether the configurations take effect. This mode is password-protected. |
Global configuration mode | In Privileged EXEC mode, run the config-systemcommand to enter global configuration mode. | Micas(cfg)# | Run the exit or end command, or press Ctrl+C to return to privileged EXEC mode. Run the interface command to enter interface configuration mode. In the interface command, you must specify the interface configuration sub-mode you want to enter. Run the vlan vlan-id command to enter VLAN configuration mode. |
Use commands in this mode to configure global parameters that affect the entire network device. |
Interface configuration mode | In global configuration mode, run the interface gigabitethernet 0/1 command to enter interface configuration mode. | Micas(cfg-if- gigabitethernet 0/1)# | Run the end command or press Ctrl+C to return to privileged EXEC mode. Run the exit command to return to global configuration mode. In the interface command, you must specify the interface configuration sub-mode you want to enter. |
Use this command mode to configure various interfaces of the network device. |
Config-vlan (VLAN configuration mode) |
In global configuration mode, run the vlan vlan-id command to enter VLAN configuration mode. | Micas(cfg-vlan)# | Run the end command or press Ctrl+C to return to privileged EXEC mode. Run the exit command to return to global configuration mode. |
Use this command mode to configure VLAN parameters. |
Comments
0 comments
Please sign in to leave a comment.