Cisco IOS command modes organize router and switch access by privilege level and configuration context. Recognizing the prompt is essential because it tells you which commands are available and where a configuration change will be applied.
1. User EXEC Mode
User EXEC is the initial mode after logging in. The prompt normally ends with a greater-than symbol:
Switch>
This mode provides limited monitoring commands and does not allow configuration changes. Type enable to move to privileged EXEC mode.
2. Privileged EXEC Mode
The prompt in privileged EXEC mode ends with a hash symbol:
Switch#
This mode provides access to detailed show commands, debugging, file operations, reload functions, and configuration entry. Protect it with an enable secret and secure administrative access.
To enter global configuration mode:
Switch# configure terminal
Switch(config)#
3. Global Configuration Mode
Global configuration commands affect the device as a whole. Examples include changing the hostname, creating users, enabling services, and entering more specific configuration modes.
Switch(config)# hostname SW1
SW1(config)#
Use end or press Ctrl+Z to return directly to privileged EXEC mode. The exit command normally moves back one level.
Common Subconfiguration Modes
Interface Configuration Mode
SW1(config)# interface gigabitEthernet 0/1
SW1(config-if)#
Use this mode for interface-specific settings such as descriptions, IP addresses, VLAN membership, duplex, speed, and shutdown state.
Line Configuration Mode
SW1(config)# line vty 0 4
SW1(config-line)#
Line configuration controls console, auxiliary, and virtual terminal access. Secure remote management normally uses SSH, local user authentication, and appropriate access restrictions.
Router Configuration Mode
R1(config)# router ospf 1
R1(config-router)#
This mode is used for routing-protocol settings such as router IDs, networks, passive interfaces, and protocol-specific options.
VLAN Configuration Mode
SW1(config)# vlan 10
SW1(config-vlan)# name STAFF
This context creates and names a VLAN on supported Cisco switches.
How to Get Command Help
- Type
?to list commands available in the current mode. - Enter part of a command followed by
?to view matching options. - Press Tab to complete a unique command.
- Use the up arrow to recall previous commands.
- Use
show historyto review the command history.
Saving the Configuration
Changes affect the running configuration immediately, but they are lost after a reload unless saved. From privileged EXEC mode, use:
SW1# copy running-config startup-config
Verify the running configuration before saving and avoid making untested remote-access changes that could lock you out of the device.
Frequently Asked Questions
What does the # prompt mean?
It normally indicates privileged EXEC mode, although configuration submodes also include a hash after their context.
What is the difference between exit and end?
exit usually moves back one mode, while end returns directly to privileged EXEC mode.
Where can I practice more Cisco IOS questions?
Review our CCNA interview questions and answers. For focused preparation, use the Cisco 200-301 Premium PDF with the latest available questions and answers.
CiscoForAll provides independent study and practice material. Always use official Cisco documentation as a primary preparation source.

