思科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
如圖所示即爲成功!!輸入名稱和密碼即可進入
在這裏插入圖片描述
做的不太好,請多賜教

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章