PASSWORD,ENABLE,CONSOLE,VTY及TACACS认证顺序及区别
生活随笔
收集整理的這篇文章主要介紹了
PASSWORD,ENABLE,CONSOLE,VTY及TACACS认证顺序及区别
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
交換機的登錄,用戶名,密碼是最基礎(chǔ)的問題,然而由于很少有人去關(guān)心它,所以用的時候難免手忙腳亂,本文講述了PASSWORD,ENABLE,CONSOLE,VTY及TACACS認(rèn)證順序及區(qū)別
我們先做如下配置
Switch(config)#aaa authentication login BBDD local????新建個認(rèn)證方式BBDD為本地認(rèn)證
Switch(config)#aaa authentication login CCSS line??????新建個認(rèn)證方式CCSS為line認(rèn)證
Switch(config)#aaa authentication login TTCC group tacacs+??新建個認(rèn)證方式TTCC為tacacs認(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 ,共五個終端就夠用了。
我們先做如下配置
Switch(config)#aaa authentication login BBDD local????新建個認(rèn)證方式BBDD為本地認(rèn)證
Switch(config)#aaa authentication login CCSS line??????新建個認(rèn)證方式CCSS為line認(rèn)證
Switch(config)#aaa authentication login TTCC group tacacs+??新建個認(rèn)證方式TTCC為tacacs認(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)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JMeter性能测试入门
- 下一篇: 对于XLS碎片提取的深入研究