~3 min read • Updated Apr 8, 2026
Introduction
Learning the basic Cisco IOS commands is the first and most important step when working with Cisco routers and switches. These commands allow you to move between different device modes, perform configurations, check the device status, and save or erase changes.
Mode Switching Commands
1. enable
Moves from User EXEC mode to Privileged EXEC mode and grants access to advanced commands.
Router> enable
Router#2. disable
Returns from Privileged EXEC mode back to User EXEC mode.
Router# disable
Router>3. exit
Moves up one level from the current mode (for example, from Interface mode to Global Configuration or from Global Configuration to Privileged EXEC).
Router(config-if)# exit
Router(config)#4. conf or configure terminal
Enters Global Configuration mode to make changes that affect the entire device.
Router# configure terminal
Router(config)#You can also use the short form: conf t
Hostname and Interface Commands
5. hostname
Changes the name of the device.
Router(config)# hostname R1
R1(config)#6. interface gi (or interface GigabitEthernet)
Enters the configuration mode for a specific interface.
R1(config)# interface GigabitEthernet0/0
R1(config-if)#Common short form: int gi0/0
Show Commands
7. show ip interface brief
Displays a summary of all interfaces with their IP addresses and status.
R1# show ip interface brief8. show ip interface
Shows detailed information about a specific interface or all interfaces (status, IP address, subnet mask, etc.).
R1# show ip interface GigabitEthernet0/09. show running-config
Displays the current configuration stored in RAM (running-config).
R1# show running-config10. show startup-config
Displays the saved configuration in NVRAM that will be loaded on the next boot.
R1# show startup-configSaving and Erasing Configuration
Saving the Configuration
To make sure your changes survive a reboot, you must copy the running-config to startup-config.
R1# copy running-config startup-config
or
R1# write memory
or short form:
R1# wrErasing the Configuration
To completely delete the saved configuration:
R1# erase startup-config
or
R1# write eraseAfter this command, you usually reload the device to return it to factory default settings.
Complete Example: Basic Router Configuration
Router> enable
Router# configure terminal
Router(config)# hostname R1
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# exit
R1# show running-config
R1# copy running-config startup-config
R1# show startup-configImportant Tips
- Always run
copy running-config startup-configbefore powering off the device. show ip interface briefis the fastest way to check the status of all interfaces.- Use the
exitcommand to move up one level at a time. - You can quickly exit any mode by typing
endor pressingCtrl + Z.
Conclusion
These basic commands are the fundamental tools for working with Cisco IOS. With regular practice, you will quickly become comfortable in the Cisco CLI and be able to configure, monitor, and troubleshoot devices efficiently.
Written & researched by Dr. Shahin Siami