国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 網絡通信 > 正文

Cisco IOS Cookbook 中文精簡版第四章TACAS+

2019-11-05 00:10:05
字體:
來源:轉載
供稿:網友

<!--[if !supportLists]-->第四章    <!--[endif]-->TACAS+

4.1.  用戶登錄集中鑒權

提問 使用集中的鑒權方式對用戶登錄設備進行控制

回答

Router1#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router1(config)#aaa new-model

Router1(config)#aaa authentication login default group tacacs+

Router1(config)#aaa authentication enable default group tacacs+

Router1(config)#tacacs-server host 172.25.1.1

Router1(config)#tacacs-server key COOKBOOK

Router1(config)#end

Router1#

 

注釋 部署集中化鑒權就不需要在每臺設備上配置用戶名密碼了,改密碼也變得簡單了

4.2.  限制特定命令的執行權限

提問 對設備可執行命令權限進行基于用戶的授權

回答

Router1#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router1(config)#aaa new-model

Router1(config)#aaa authorization exec default group tacacs+

Router1(config)#aaa authorization commands 15 default group tacacs+

Router1(config)#tacacs-server host 172.25.1.1

Router1(config)#tacacs-server key neoshi

Router1(config)#end

Router1#

 

注釋 無

4.3.  TACACS+服務器無法訪問

提問 防止出現TACACS+服務器故障導致所有用戶都不能登錄

回答

Router1#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router1(config)#aaa new-model

Router1(config)#aaa authentication login default group tacacs+ enable

Router1(config)#aaa authentication enable default group tacacs+ enable

Router1(config)#aaa authorization commands 15 default group tacacs+ if-authenticated


Router1(config)#tacacs-server host 172.25.1.1

Router1(config)#tacacs-server key COOKBOOK

Router1(config)#end

Router1#

 

注釋 在認證服務器出現故障的情況下使用enable密碼作為備份,同時建議使用if-authenticated參數在你配置授權的時候

4.4.  在特定端口禁用TACACS+鑒權

提問 為了方便禁止在控制口使用TACACS+鑒權

回答

Router1#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router1(config)#aaa new-model

Router1(config)#aaa authentication login default group tacacs+ local

Router1(config)#aaa authentication login NEOSHI line

Router1(config)#line con 0

Router1(config-line)#login authentication NEOSHI

Router1(config-line)#end

Router1#

 

注釋

4.5.  記錄用戶行為

提問 記錄用戶輸入的配置命令和時間

回答

Router1#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router1(config)#aaa new-model

Router1(config)#aaa accounting commands 1 default stop-only group tacacs+

Router1(config)#aaa accounting commands 15 default stop-only group tacacs+

Router1(config)#end

Router1#

 

注釋 下面是一條日志記錄,很詳盡吧

Fri Jan  3 11:08:47 2006        toronto ijbrown tty66   172.25.1.1      stop    task_id=512 start_time=1041610127   timezone=EST    service=shell   PRiv-lvl=15     cmd=configure terminal <cr>

 

4.6.  記錄系統事件

提問 記錄系統事件

回答

Router1#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router1(config)#aaa new-model


Router1(config)#aaa accounting exec default start-stop group tacacs+

Router1(config)#aaa accounting connection default start-stop group tacacs+

Router1(config)#aaa accounting system default stop-only group tacacs+

Router1(config)#end

Router1#

注釋 除了可以記錄用戶輸入命令以外還提供了exec(用戶開始和中止exec會話的時間記錄),connection(用戶發起外部連接的時間,地址,數據包多少等信息記錄比如telnet ssh等)和system(系統重啟,禁用AAA等系統信息)等三種系統事件的記錄

4.7.  設置TACACS+消息的源地址

提問 發送TACACS+消息時只使用特定的源地址

回答

Router1#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router1(config)#ip tacacs source-interface Loopback0

Router1(config)#end

Router1#

 

注釋 所有本設備的記錄都來自于同一地址方便對日志進行匯總和統計

<!--[if !supportLists]-->4.8.       <!--[endif]-->TACACS+服務器配置文件樣本

注釋 可以使用思科免費的TACACS+服務器也可以使用商業的服務器,配置方式略



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 沁阳市| 三台县| 汽车| 射阳县| 靖安县| 杭锦后旗| 石台县| 永春县| 濮阳市| 环江| 安西县| 九江市| 丰顺县| 洛隆县| 资兴市| 北碚区| 泌阳县| 泾阳县| 溧水县| 神池县| 科尔| 德江县| 西乌珠穆沁旗| 江达县| 黔东| 灵寿县| 嵊泗县| 铅山县| 连城县| 宝坻区| 凤台县| 济源市| 霍林郭勒市| 西乌珠穆沁旗| 化隆| 游戏| 安龙县| 北宁市| 垫江县| 将乐县| 科技|