Sau đó, ta click vào mũi tên qua phải của policy vừa mới tạo:
Ở phần “Authentication Policy” ta chọn Use: Internal Users:
Tiếp theo, ta cấu hình phần Authorization Policy:
Cấu hình conditions như sau:
Sau đó bấm “Use” để quay lại mục Authorization Policy, ở mục bên phải, ta chọn command set là “adminvnpro” và shell profile là “Shell 15”.
Tương tự vậy, ta cũng tạo Authorization Policy cho account guest:
Sau đó ta save lại.
Chỉ định TACACS+ Server cho Switch:
| Switch(config)#aaa new-model Switch(config)#tacacs server ISE Switch(config)#address ipv4 10.215.27.205 Switch(config)#key 123abc |
Trên Switch, ta dùng các lệnh sau:
| Switch(config)# aaa new-model Switch(config)# aaa group server tacacs+ ISESRV Switch(config-sg-tacacs+)# server 10.215.26.49 (VnPro cấp) Switch(config-sg-tacacs+)# exit Switch(config)#aaa authentication login VTY group ISESRV local Switch(config)#aaa authorization exec VTY group ISESRV local if-authenticated Switch(config)#aaa accounting exec default start-stop group ISESRV Switch(config)#aaa accounting commands 1 default start-stop group ISESRV Switch(config)#aaa accounting commands 15 default start-stop group ISESRV Swtch(config)#aaa accounting network default start-stop group ISESRV Switch(config)#aaa accounting connection default start-stop group ISESRV Switch(config)#aaa accounting system default start-stop group ISESRV |
| Switch(config)#line vty 0 4 Switch(config-line)#login authentication VTY Switch(config-line)#authorization exec VTY Switch(config-line)#exit |
Kết quả: Telet thành công:
Gõ “?” để kiểm tra các lệnh user này có thể sử dụng, ta thấy user adminvnpro có thể dùng tất cả các lệnh:
Ta kiểm tra Tacacs+ log trên cisco ise: Operation->Tacacs->Live logs được như sau:
Hoàn tất bài lab.