1、在aaa中设置系统域“default_admin”的认证模板为本地认证。
aaa
authentication-scheme  local-auth        //建立认证模板
 authentication-mode local                  //设置认证模式为本地认证
domain default_admin
 authentication-scheme local-auth       //在域中应用模板
2、在local-aaa-server中添加用户名、密码及认证类型和级别。
local-aaa-server
user  用户名  password  cipher  密码 authentication-type  T  level 3
3、在vty接口中设置认证模式为aaa
user-interface vty 0 4
 authentication-mode aaa