授权允许管理员控制允许用户访问哪些服务。此配置使用本地用户数据库进行授权,以便用户可以直接进入特权 EXEC 模式。
命令 |
说明 |
Console# configure terminal |
进入配置模式 |
Console(config)# aaa authorization exec default local |
配置用户以使用本地方法进入特权 EXEC 模式。 |
您可以使用以下命令
验证授权方法: Console# show authorization methods
Exec Authorization List Methods
---------------------------- ------------------------------
dfltExecAuthList local
Command Authorization List Methods
---------------------------- ------------------------------
dfltCmdAuthList none
Line Exec Method Lists Command Method Lists
--------- --------------------- ---------------------Console dfltExecAuthList dfltCmdAuthList
Telnet dfltExecAuthList dfltCmdAuthList
SSH dfltExecAuthList dfltCmdAuthList
Network Authorization Methods
---------------------- -------
Dot1x none