Setting Up User IDs
Problem
You want to assign individual (or group) user IDs and passwords to network staff.
Solution
To enable locally administered user IDs, use the following set of configuration commands:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#usernameijbrownpasswordRouter1(config)#oreillyusernamekdooleypasswordRouter1(config)#cookbookaaa new-modelRouter1(config)#aaa authentication loginlocal_authlocalRouter1(config)#line vty 0 4Router1(config-line)#login authenticationRouter1(config-line)#local_authexitRouter1(config)#endRouter1#
The username command also allows you to create usernames without passwords by specifying the nopassword keyword:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#usernameweaknopasswordRouter1(config)#aaa new-modelRouter1(config)#aaa authentication login default localRouter1(config)#endRouter1#
However, we strongly recommend against doing this because it can severely weaken the router’s security.
Discussion
Enabling locally administered usernames overrides the default VTY password-based authentication system. When you enable the aaa new-model command, as shown in this recipe, the router will immediately begin to prompt for usernames as well as passwords. Assigning unique usernames to individuals or groups provides accountability, as we will show later. The following example shows the login prompt for a router using ...