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

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

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

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

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

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

Switch(config)#line console 0??進(jìn)入console
Switch(config-line)#password 1234??設(shè)置console 口認(rèn)證的密碼

Switch(config)#line vty 0 4???進(jìn)入虛擬終端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 認(rèn)證
?
?
Switch(config)#line vty 0 4 Switch(config-line)#login authentication TTCC
?
?Tacacs server 認(rèn)證
?
#aaa authentication login default group tacacs+ local aaa authentication enable default group tacacs+ enable 且Tacacs Server正常
?Tacacs server 認(rèn)證
?Tacacs server 認(rèn)證
?
#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 認(rèn)證
?Tacacs server 認(rèn)證
?
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 認(rèn)證
?
?
Switch(config)#line vty 0 4 Switch(config-line)#login authentication TTCC
?
?Tacacs server 認(rèn)證
?
#aaa authentication login default group tacacs+ local aaa authentication enable default group tacacs+ enable 且Tacacs Server正常
?Tacacs server 認(rèn)證
?Tacacs server 認(rèn)證
?
#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 認(rèn)證
?Tacacs server 認(rèn)證
?
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 都是設(shè)置 enable的密碼,只不過有secret 時 password不起作用
2.username user privilege 15 password 123 username user privilege 15 secret 123 不能同時設(shè)置,privilege 后面的數(shù)字 1-15 用來劃分權(quán)限級別,15最高
3.Switch(config)#line vty 0 4 代表終端0到4,最多是0到15一共16個終端,是用來設(shè)置同時允許多少人TELNET,所以一般設(shè)成0 4 ,共五個終端就夠用了。

轉(zhuǎn)載于:https://blog.51cto.com/wangsheng1/193088

總結(jié)

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

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。