AAA與RADIUS應用一login登入服務驗證

來源:互聯網
上載者:User

標籤:ccf   安全模型   本機使用者   down   串連伺服器   min   mina   login   auth   

AAA與RADIUS應用一login登入服務驗證

1、 根據拓撲串連裝置,並設定IP地址及網關
2、 配置RADIUS服務

RADIUS伺服器配置參數:
用戶端地址為200.1.1.1,用戶端名稱為R1,與NAS伺服器的口令是666,servertype為RADIUS.
使用者佈建:
使用者名稱為bbb,密碼為222。
注意NAS路由器上的主機名稱為R1,配置口令和RADIUS伺服器上的口令一定要一致即可。
3、 NAS伺服器上的配置(路由器配置)
Router>enable
Router#configure terminal
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#ip address 200.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)# exit
Router(config)#
Router(config)#hostname R1
R1(config)#aaa new-model 啟用AAA安全模型
R1(config)#username 123 password 333 設定本機使用者名和密碼

R1(config)#aaa authentication login test group radius local
定義驗證方法列表名稱為test,使用者行為為login,驗證方法1為伺服器驗證,失敗後用local驗證。
R1(config)#line vty 0 4
R1(config-line)#login authentication test 應用驗證方法列表到0-4線路上
R1(config-line)#exit
R1(config)#radius-server host 200.1.1.2 指明RADIUS服務的地址
R1(config)#radius-server key 666 定義與伺服器之間的口令

在PC端驗證實驗;

製造故障,把串連伺服器的連接埠關閉

R1(config)#interface FastEthernet0/1
R1(config-if)#shutdown
R1(config-if)#exit

當伺服器的鏈路故障後 ,在用伺服器上的使用者名稱和密碼做驗證必然失敗,失敗後可以用本地驗證,123密碼333是路由器的使用者名稱和密碼,即local驗證成功。

觀看更多網路技術視頻課程請掃碼進入51CTO課程首頁

AAA與RADIUS應用一login登入服務驗證

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.