华为配置-AAA

[R2]aaa
[R2-aaa]authentication-scheme a1            //配置认证方案a1,采用本地认证
[R2-aaa-authen-a1]authentication-mode local
[R2-aaa-authen-a1]quit
[R2-aaa]authorization-scheme a2             //配置授权方案a2,采用本地授权
[R2-aaa-author-a2]authorization-mode local
[R2-aaa-author-a2]quit
[R2-aaa]domain huawei                       //创建域,添加认证方案a1、授权方案a2
[R2-aaa-domain-huawei]authentication-scheme a1
[R2-aaa-domain-huawei]authorization-scheme a2
[R2-aaa-domain-huawei]quit
[R2-aaa]local-user huawei@huawei password cipher huawei123  //创建用户名(所属域)及密码
[R2-aaa]local-user huawei@huawei service-type telnet        //配置服务类型
[R2-aaa]local-user huawei@huawei privilege level 2          //配置权限级别
[R2]user-interface vty 0 4
[R2-ui-vty0-4]authentication-mode aaa

 

你可能感兴趣的:(华为配置-AAA)