Volume 1 - Chapter 6: Configuring Basic Switch Management Flashcards
What are the commands required to configure a console simple password of “faith”?
line console 0
login
password faith
What command is used to enable the use of a simple password (with no username) to the VTY or console sessions?
login
What command is used to enable the use of authentication with both a username and password for the VTY or console sessions?
login local
What is the command to generate a new SSH key with a modulus of 2048?
In Global configuration mode:
crypto key generate rsa modulus 2048
What are the 3 commands required to generate private and public keys for SSH?
hostname
ip domain name
crypto key generate rsa
What is the command to enable the secure web interface for a Cisco switch?
ip http secure-server
What is the command to disable the default non-secure web interface?
no ip http server
What is the command to enable local authentication to the web interface?
ip http authentication local
What is the command to set a DNS server for the switch to use for lookups?
ip name-server serverip
What is the command to enable the IP address to be set dynamically on a VLAN interface?
ip address dhcp
Describe the purpose of the command “show history”
To show the most recent commands entered on the switch
Describe the difference between the following commands:
“terminal history size x”
“history size x”
The terminal command sets the history size for the current session of the user, whereas the other command sets the history default size for all users
What is the command to enable the use of both telnet and SSH on the vty lines?
line vty 0 16
transport input all
What is the command to enable the use of only telnet on the VTY lines?
line vty 0 15
transport input telnet
A technician configures the following login settings on a switch:
username tony secret mypass
!
line vty 0 16
login
transport input all
However, the technician is not successful in establishing an SSH to this switch. Why?
The vty lines are specifying only a password being required (login).
To fix this, the techncian needs to replace login with login local
What is the command to disable both telnet and ssh access to a switch?
line vty 0 16
transport input none
What is the command to enable only version 2 of SSH?
ip ssh version 2
Enable access is equivilent to a user with a privilege of ____.
15
What is the default console/VTY timeout?
5 minutes.
What is the command to set a console timeout of 3 minutes and 15 seconds?
line con 0
exec-timeout 3 15
What is the command to set an unlimited SSH/Telnet timeout?
line vty 0 15
exec-timeout 0 0
What is the command to set a history size for the console of 15?
line con 0
history size 15