
Explanation/Reference:
Explanation:
There are four major CLI access modes:
User: When a user accesses the command-line interface (CLI) of a Cisco switch IOS, the IOS puts the user in user mode. The user mode allows the user to look around; it does not permit the user to change or break any configuration. When the user enters a command, the switch executes the command and displays the command result. A Limited set of commands is available for use in the user mode. User mode is also called user EXEC mode. The prompt in this mode is displayed as hostname > Enable: Privileged EXEC mode is an area from where more powerful commands can be run while accessing CLI of a switch IOS. In this mode, more commands are added to the set of commands available in user mode. Privileged EXEC mode is also known as privileged mode or enable mode. For reaching privileged EXEC mode, the enable command is required to be run from user mode. By default, a user cannot get into privileged EXEC mode through SSH and Telnet sessions. The prompt changes from hostname > to hostname # when a user moves to privileged EXEC mode from user mode.
Global configuration: Global configuration mode is an access mode of Cisco command-line interface (CLI).
The configuration commands can be run in this mode only. Commands run in this mode update the active configuration file as soon as the Enter key is pressed at the end of a command. The config command is required to be run from the enable mode to switch to the global configuration mode. The prompt changes to hostname (config)# from hostname# when access mode is changed to global configuration mode from enable mode.
Interface configuration: Interface configuration mode is a subcommand mode of the global configuration access mode of Cisco command-line interface (CLI). The interface command is used to move from global configuration mode to the interface configuration mode. The prompt changes to hostname (config-if)# from hostname (config)# when a user moves from global configuration mode to interface configuration mode.
After entering the interface configuration mode, the commands executed affects only the interface that the user has selected. For example, the interface FastEthernet 0/1 command will put a user in the interface configuration mode.
Commands executed afterwards will affect only the FastEthernet 0/1.