You wish to force users to use twofactor authentication on t
You wish to force users to use two-factor authentication on the console before gaining a command prompt. Which of the following commands are required?
A. Switch(config)# username Bob password Cisco
B. Switch(config-line)# username Bob password Cisco
C. Switch(config)# login
D. Switch(config-line)# login
E. Switch(config)# login local
F. Switch(config-line)# login local
Solution
A and F are correct. Username and password pairs are created in Global Configuration mode.login local is required to force users on that line to use their username and password, and is entered in Line Configuration mode.
B, C, D, and E are incorrect. B is incorrect because the command is correct but should be in Global Configuration mode, not Line Configuration mode. C and D are incorrect because login does force a password to be used (which would be put on the line with the password password command), but does not force the use of defined username and password pairs. E is incorrect because it is the correct command, but it is not entered in Global Configuration mode.
