text stringlengths 0 6.55k |
|---|
A. Use the line vty 0 15 command to enter vty configuration mode for all 16 vty lines (numbered 0 through 15). |
B. Use the password password-value subcommand to set the value of the console password. |
C. Use the login subcommand to enable console password security using a simple password. |
Example 6-2 shows the configuration process as noted in the configuration checklist, along with setting the enable secret password. Note that the lines which begin with a ! are com-ment lines; they are there to guide you through the configuration. |
Example 6-2 Configuring Basic Passwords |
! Enter global configuration mode, set the enable password, and also |
! set the hostname (just because it makes sense to do so) |
! |
Switch# configure terminal |
Switch(config)# enable secret love |
! |
! At Step 2 in the checklist, enter console configuration mode, set the |
! password value to "faith" and enable simple passwords for the console. |
! The exit command moves the user back to global config mode. |
! |
Switch#(config)# line console 0 |
Switch#(config-line)# password faith |
Switch#(config-line)# login |
Switch#(config-line)# exit |
! |
! The next few lines do basically the same configuration, except it is |
! for the vty lines. Telnet users will use "hope" to login. |
! |
Switch#(config)# line vty 0 15 |
Switch#(config-line)# password hope |
Switch#(config-line)# login |
Switch#(config-line)# end |
Switch# |
Example 6-3 shows the resulting configuration in the switch per the show running-config command. The gray lines highlight the new configuration. Note that many unrelated lines of output have been deleted from the output to keep focused on the password configuration. |
Example 6-3 Resulting Running-Config File (Subset) Per Example 6-2 Configuration |
Switch# show running-config |
! |
Building configuration... |
|||||||||||||||||||| Technet24 |
|||||||||||||||||||| |
Chapter 6: Configuring Basic Switch Management 133 |
Current configuration: 1333 bytes |
! |
version 12.2 |
! |
enable secret 5 $1$OwtI$A58c2XgqWyDNeDnv51mNR. |
! |
interface FastEthernet0/1 |
! |
interface FastEthernet0/2 |
! |
! Several lines have been omitted here - in particular, lines for |
! FastEthernet interfaces 0/3 through 0/23. |
! |
interface FastEthernet0/24 |
! |
interface GigabitEthernet0/1 |
! |
interface GigabitEthernet0/2 |
! 6 line con 0 |
password faith |
login |
! |
line vty 0 4 |
password hope |
login |
! |
line vty 5 15 |
password hope |
login |
NOTE For historical reasons, the output of the show running-config command, in the last six lines of Example 6-3, separates the first five vty lines (0 through 4) from the rest (5 through 15). |
Securing User Mode Access with Local Usernames and Passwords Cisco switches support two other login security methods that both use per-user username/ password pairs instead of a shared password with no username. One method, referred to as local usernames and passwords, configures the username/password pairs locally—tha... |
The configuration to migrate from using the simple shared passwords to instead using local usernames/passwords requires only some small configuration changes, as shown in Figure 6-3. |
|||||||||||||||||||| |
|||||||||||||||||||| |
134 CCNA 200-301 Official Cert Guide, Volume 1 |
Console |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.