Config AAA, CoPP, SSH Flashcards
What are the commands to set a password on a router’s console port (two commands)?
Router(config)# line console 0
Router(config-line)# password {the-password}
What are the commands to set a password on a router’s auxiliary port (two commands)?
Router(config)# line aux 0
Router(config-line)# password {the-password}
What are the commands to set a password on a router’s ssh/telnet ports (two commands)?
Router(config)# line vty 0 4
Router(config-line)# password {the-password}
What is the command to create a local username and password on a router?
Router(config)# username {user} [privilege {0-15}] algorithm-type {md5 | sha256 | scrypt} secret {the-password}
Example:
Router(config)# username adminxx privilege 15 algorithm-type sha256 secret p@$$W0rd!
What is the command to specific use of the local username and password for logging into a telnet or ssh session?
Router(config-line)# login local
What is the command to set a session timeout on a telnet/ssh port?
Router(config)# line vty 0 4
Router(config-line)# exec-timeout {number in minutes}
What are the commands to setup SSH on a router including local login? (7 commands)
Router(config)# username {user} password {password}
Router(config)# ip domain-name {domain.com}
Router(config)# crypto key generate rsa modulus {bits}
Router(config)# ip ssh version 2
Router(config)# line vty 0 4
Router(config-line)# transport input ssh
Router(config-line)# login local
When configuring privilege levels for a user account, what do the built-in privilege levels 0, 1, and 15 mean?
0 - only allows five commands: logout, enable, disable, help and exit.
1 - read only and “ping”
15 - full access to all commands
What is the command to set a CLI command to a custom privilege level?
Router(config)# privilege {mode-name} level {#} {command}
Examples:
Router(config)# privilege exec level 5 configure terminal
Router(config)# privilege configure level 5 interface
Router(config)# privilege interface level 5 shutdown
When configuring privilege levels for a user account, what do levels 2 through 14 do?
Privilege 2 through 14 are custom configurable levels. In theory the higher levels would have more access but this depends on what was configured.
What command enables AAA services on a Cisco device?
Router1(config)# aaa new-model
What are the commands to set a TACACS server on a Cisco device?
(3 commands)
Router1(config)# tacacs server NAME
Router1(config-server-tacacs)# address ipv4 {ip-address}
Router1(config-server-tacacs)# key {key-string}
What are the commands to create a TACACS server group?
(2 commands)
Router1(config)# aaa group server tacacs+ GROUP-NAME
Router1(config-sg-tacacs+)# server name SERVER-NAME
What is the command to set AAA authentication to look at the TACACS group for all interface types (con, aux, vty)?
Router1(config)# aaa authentication login default group GROUP-NAME [local]
What is the command to set AAA authorization for exec mode to look at the TACACS group for all interface types (con, aux, vty)?
Router1(config)# aaa authorization exec default group TACACS-GRP1 [if-authenticated]