Chapter 3 - Command Line Modes On Cisco Routers and Switches Command Line Modes On Cisco Routers and Switches
Chapter 3 - Command Line Modes On Cisco Routers and Switches Command Line Modes On Cisco Routers and Switches
3
Chapter 3 – Command Line Modes on Cisco Routers and
Switches
itexamanswers.net/chapter-3-command-line-modes-cisco-routers-switches.html
1/12
Hover on the switch to see its ports.
Select a Computer from the End Devices and connect Console port on Switch to RS 232
port on PC with a Console wire. What we are simulating here is connecting to the switch
from a PC through console.
2/12
Click on the Host device( Computer ). On the window that opens, click on Desktop tab and
Click on Terminal.
3/12
The console opens with the switch booting. Switch finishes its booting operation and loads
into user EXEC mode.
4/12
Coming to the modes of Cisco IOS, the Cisco IOS has five command line modes. Setup mode
User EXEC mode.
Setup mode
User EXEC mode
Privileged EXEC mode
Global configuration mode
Specific Configuration mode
Setup mode
Setup mode is the initial configuration mode of Cisco switches and routers. They start in
setup mode when no startup configuration exists in NVRAM. After completion of the setup
mode, the Cisco IOS transitions to user EXEC mode.
6/12
To see the commands available in privileged EXEC prompt, type?.
7/12
Global Configuration mode
The global configuration mode is comprised of commands pertaining to the entire Cisco
device. In other words, if we need to execute commands to modify the behavior of either
the whole switch or the whole router we need to set the IOS in global configuration mode.
Global configuration mode can only be enabled from privileged EXEC mode by typing
“config t” or “conf t” commands. The prompt in this mode is comprised of the device name
followed by “( config)#”.
8/12
See the commands available in this mode by typing ‘?’. If we need to execute a command not
available in the global configuration mode we should prefix the command by “do”.
9/12
Specific configuration mode
The specific configuration mode is used for commands that affect the configuration of
either just one part or range of components of the Cisco device. Suppose we want to work
on a few interfaces (or ports) on our switch or router we need to enable specific
configuration mode. We can enable specific configuration mode only from the global
configuration mode by selecting the components we want to work with. The prompt in this
mode is comprised of the router or switch host name followed by “( config-< component
>)#”. Let’s select interface fastethernet 0/ 1 by typing “interface fastethernet 0/ 1” or “int
f0/ 1”.
10/12
If we want to run a command not available in specific configuration mode prefix the
command by “do”. For example, run the command “do show running-config” or “do show
runn” in specific configuration mode
11/12
12/12