aaa new-model
but you definately want to setup your AAA lists at the same time!
Its important to have those defined before you exist out, or you may
lock yourself out altogether.
First you'll need to create usernames and passwords using the username
command (e.g. username routeradmin privilege 15 password
routerAdminPass08). The privilige command gives the username
administrative privileges (priv 1 is user and priv 15 is admin and
privs 2 through 14 are customizable).
Second you instruct the console and telnet virtual terminals to use
local for authentication using the login command.
Example
line con 0
login local
line vty 0 4
login local
This configuration tells the router and switch to use the local
account database for usernames and passwords. The better idea would
be to implement RADIUS or TACACS+ but that's a bit more complex and
requires a RADIUS or TACACS+ server.
username <username> secret <password>