思科aaa配置命令
我们将继续使用cisco Packet Tracer进行拓扑搭建,如图所示:
然后我们进入到路由器进行相关配置,
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#line console 0
Router(config-line)#no exec-timeout
Router(config-line)#logging syn
Router(config-line)#hostname R1
R1(config)#int f0/1
R1(config-if)#ip add 192.168.10.3 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
R1(config-if)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#aaa?
aaa
R1(config)#aaa new-model #全局启用AAA
R1(config)#aaa authentication login? #当用户启用AAA认证时,名字是默认的,或者可以自己调用一个
login
R1(config)#aaa authentication login #指定用哪种哪种认证
% Incomplete command.
R1(config)#aaa authentication login default?
default WORD
R1(config)#aaa authentication login default local #使用线路认证
R1(config)#username lalalaname secret nopassword #设置登陆名称和密码
R1(config)#exit
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#debug aaa authentication #测试AAA是否启用
AAA Authentication debugging is on
R1#exit
如图所示即为成功!!输入名称和密码即可进入
做的不太好,请多赐教