text
stringlengths
0
6.55k
00:08:42: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
NOTE The commands that can be used in either user (EXEC) mode or enable (EXEC) mode are called EXEC commands.
|||||||||||||||||||| Technet24
||||||||||||||||||||
Chapter 4: Using the Command-Line Interface 93
This example is the first instance of this book showing you the output from the CLI, so it is worth noting a few conventions. The bold text represents what the user typed, and the non-bold text is what the switch sent back to the terminal emulator. Also, the typed passwords do not show up on the screen for security pur...
Password Security for CLI Access from the Console
A Cisco switch, with default settings, remains relatively secure when locked inside a wir-ing closet, because by default, a switch allows console access only. By default, the console requires no password at all, and no password to reach enable mode for users that happened
to connect from the console. The reason is that if you have access to the physical console 4 port of the switch, you already have pretty much complete control over the switch. You
could literally get out your screwdriver and walk off with it, or you could unplug the power, or follow well-published procedures to go through password recovery to break into the CLI and then configure anything you want to configure.
However, many people go ahead and set up simple password protection for console users. Simple passwords can be configured at two points in the login process from the console: when the user connects from the console, and when any user moves to enable mode (using the enable EXEC command). You may have noticed that back i...
Example 4-2 shows the additional configuration commands that were configured prior to collecting the output in Example 4-1. The output holds an excerpt from the EXEC command show running-config, which lists the current configuration in the switch.
Example 4-2 Nondefault Basic Configuration
Certskills1# show running-config
! Output has been formatted to show only the parts relevant to this discussion
hostname Certskills1
!
enable secret love
!
line console 0
login
password faith
! The rest of the output has been omitted
Certskills1#
Working from top to bottom, note that the first configuration command listed by the show running-config command sets the switch’s hostname to Certskills1. You might have noticed that the command prompts in Example 4-1 all began with Certskills1, and that’s why the command prompt begins with the hostname of the switch.
Next, note that the lines with a ! in them are comment lines, both in the text of this book and in the real switch CLI.
||||||||||||||||||||
||||||||||||||||||||
94 CCNA 200-301 Official Cert Guide, Volume 1
The enable secret love configuration command defines the password that all users must use to reach enable mode. So, no matter whether users connect from the console, Telnet, or SSH, they would use the password love when prompted for a password after typing the enable EXEC command.
Finally, the last three lines configure the console password. The first line (line console 0) is the command that identifies the console, basically meaning “these next commands apply to the console only.” The login command tells IOS to perform simple password checking (at the console). Remember, by default, the switch ...
This example just scratches the surface of the kinds of security configuration you might choose to configure on a switch, but it does give you enough detail to configure switches
in your lab and get started (which is the reason I put these details in this first chapter of Part II). Note that Chapter 6 shows the configuration steps to add support for Telnet and SSH (including password security), and Chapter 5 of the CCNA 200-301 Official Cert Guide, Volume 2, “Securing Network Devices,” shows ad...
CLI Help Features
If you printed the Cisco IOS Command Reference documents, you would end up with a stack of paper several feet tall. No one should expect to memorize all the commands—and no one does. You can use several very easy, convenient tools to help remember commands and save time typing. As you progress through your Cisco certif...
Table 4-2 summarizes command-recall help options available at the CLI. Note that, in the first column, command represents any command. Likewise, parm represents a command’s parameter. For example, the second row lists command ?, which means that commands such as show ? and copy ? would list help for the show and copy c...
Table 4-2 Cisco IOS Software Command Help
What You Enter ?
command ?
com?
command parm?
command parm<Tab>
command parm1 ?
What Help You Get
Provides help for all commands available in this mode.
With a space between the command and the ?, the switch lists text to describe all the first parameter options for the command.
Lists commands that start with com.
Lists all parameters beginning with the parameter typed so far. (Notice that there is no space between parm and the ?.)
Pressing the Tab key causes IOS to spell out the rest of the word, assuming that you have typed enough of the word so there is only one option that begins with that string of characters.
If a space is inserted before the question mark, the CLI lists all the next parameters and gives a brief explanation of each.
|||||||||||||||||||| Technet24
||||||||||||||||||||
Chapter 4: Using the Command-Line Interface 95
When you enter the ?, the Cisco IOS CLI reacts immediately; that is, you don’t need to press the Enter key or any other keys. The device running Cisco IOS also redisplays what you entered before the ? to save you some keystrokes. If you press Enter immediately after the ?, Cisco IOS tries to execute the command with on...
The information supplied by using help depends on the CLI mode. For example, when ? is entered in user mode, the commands allowed in user mode are displayed, but com-mands available only in enable mode (not in user mode) are not displayed. Also, help is