日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

PASSWORD,ENABLE,CONSOLE,VTY及TACACS认证顺序及区别

發布時間:2024/4/15 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 PASSWORD,ENABLE,CONSOLE,VTY及TACACS认证顺序及区别 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
交換機的登錄,用戶名,密碼是最基礎的問題,然而由于很少有人去關心它,所以用的時候難免手忙腳亂,本文講述了PASSWORD,ENABLECONSOLE,VTYTACACS認證順序及區別

我們先做如下配置
Switch(config)#aaa authentication login BBDD local????新建個認證方式BBDD為本地認證
Switch(config)#aaa authentication login CCSS line??????新建個認證方式CCSSline認證
Switch(config)#aaa authentication login TTCC group tacacs+??新建個認證方式TTCCtacacs認證

Switch(config)#username user privilege 15 password 123 在交換機上建個用戶名密碼

Switch(config)#enable secret 123456??設定enable的密碼

Switch(config)#line console 0??進入console
Switch(config-line)#password 1234??設置console 口認證的密碼

Switch(config)#line vty 0 4???進入虛擬終端0-4 Switch(config)#line console 0 Switch(config-line)#login authentication BBDD
?Username:user Pssword:123 Enable:123456
?
?
Switch(config)#line vty 0 4 Switch(config-line)#login authentication BBDD
?
?Username:user Pssword:123 Enable:123456
?
Switch(config)#line console 0 Switch(config-line)#login authentication CCSS
?Pssword:1234 Enable:123456
?
?
Switch(config)#line vty 0 4 Switch(config-line)#login authentication CCSS
?
?Pssword:12345 Enable:123456
?
Switch(config)#line console 0 Switch(config-line)#login authentication TTCC
?Tacacs server 認證
?
?
Switch(config)#line vty 0 4 Switch(config-line)#login authentication TTCC
?
?Tacacs server 認證
?
#aaa authentication login default group tacacs+ local aaa authentication enable default group tacacs+ enable 且Tacacs Server正常
?Tacacs server 認證
?Tacacs server 認證
?
#aaa authentication login default group tacacs+ local aaa authentication enable default group tacacs+ enable 且Tacacs Serverr 掛掉
?Username:user Pssword:123 Enable:123456
?Username:user Pssword:123 Enable:123456
?
aaa authentication login default group tacacs+ line aaa authentication enable default group tacacs+ enable 且Tacacs Server正常
?Tacacs server 認證
?Tacacs server 認證
?
aaa authentication login default group tacacs+ line aaa authentication enable default group tacacs+ enable 且Tacacs Serverr 掛掉
?Pssword:1234 Enable:123456
?Pssword:12345 Enable:123456
?
Switch(config)#line console 0 Switch(config-line)#login authentication BBDD
?Username:user Pssword:123 Enable:123456
?
?
Switch(config)#line vty 0 4 Switch(config-line)#login authentication BBDD
?
?Username:user Pssword:123 Enable:123456
?
Switch(config)#line console 0 Switch(config-line)#login authentication CCSS
?Pssword:1234 Enable:123456
?
?
Switch(config)#line vty 0 4 Switch(config-line)#login authentication CCSS
?
?Pssword:12345 Enable:123456
?
Switch(config)#line console 0 Switch(config-line)#login authentication TTCC
?Tacacs server 認證
?
?
Switch(config)#line vty 0 4 Switch(config-line)#login authentication TTCC
?
?Tacacs server 認證
?
#aaa authentication login default group tacacs+ local aaa authentication enable default group tacacs+ enable 且Tacacs Server正常
?Tacacs server 認證
?Tacacs server 認證
?
#aaa authentication login default group tacacs+ local aaa authentication enable default group tacacs+ enable 且Tacacs Serverr 掛掉
?Username:user Pssword:123 Enable:123456
?Username:user Pssword:123 Enable:123456
?
aaa authentication login default group tacacs+ line aaa authentication enable default group tacacs+ enable 且Tacacs Server正常
?Tacacs server 認證
?Tacacs server 認證
?
aaa authentication login default group tacacs+ line aaa authentication enable default group tacacs+ enable 且Tacacs Serverr 掛掉
?Pssword:1234 Enable:123456
?Pssword:12345 Enable:123456
?
幾點說明: 1. Switch(config)#enable password123456 Switch(config)#enable secret 123456 都是設置 enable的密碼,只不過有secret 時 password不起作用
2.username user privilege 15 password 123 username user privilege 15 secret 123 不能同時設置,privilege 后面的數字 1-15 用來劃分權限級別,15最高
3.Switch(config)#line vty 0 4 代表終端0到4,最多是0到15一共16個終端,是用來設置同時允許多少人TELNET,所以一般設成0 4 ,共五個終端就夠用了。

轉載于:https://blog.51cto.com/wangsheng1/193088

總結

以上是生活随笔為你收集整理的PASSWORD,ENABLE,CONSOLE,VTY及TACACS认证顺序及区别的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。