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