08-19-2004 05:10 PM - edited 03-10-2019 01:45 PM
I'm playing with lock and key on a 3750 IOS 12.1(19)EA1. The console works fine (and there is no AAA or ACLs on the switch) until I add the following commands:
!
aaa new-model
aaa authentication login TestLK group tacacs+ local
aaa authorization exec default group tacacs+ local
!
username xxx password xxx
!
access-list 100 dynamic TestLK timeout 5 permit ip any 10.204.1.0 0.0.0.255 log
access-list 100 permit tcp any host 10.204.0.199 eq telnet
access-list 100 deny ip any 10.204.1.0 0.0.0.255 log
access-list 100 permit ip any any
!
tacacs-server host xxx.4.104.245
tacacs-server key testkey
!
line vty 0 4
password xxx
login authentication TestLK
!
interface Vlan400
ip access-group 100 in
! The console exists with no configuration i.e.
line con 0
!
At this point my lock and key does more-or-less what I want (ignore the strange IP address in the access list - it shouldn't be part of the problem) and I can telnet to the 3750 OK, but I suddenly can't get into the console.
When I hit RETURN it displays the "unwelcome" banner and then seems to rush off to the ACS server and have a look for something and then comes back with the message "authorisation failed" At no point do I get a prompt.
Disabling the ACS server doesn't help. nor does adding an EXEC-TIMEOUT and/or password to the console line. Nor does adding the dreaded AAA AUTHORISATION CONSOLE.
Its got to be something embarrassingly simple.
Cheers
Solved! Go to Solution.
08-19-2004 09:33 PM
Hi!
aaa authentication login default group tacacs+ local
aaa authorization network default group tacacs+
Add the above command.
Your console will not lock.
HTH.
Rgds
Vimal
08-19-2004 09:33 PM
Hi!
aaa authentication login default group tacacs+ local
aaa authorization network default group tacacs+
Add the above command.
Your console will not lock.
HTH.
Rgds
Vimal
08-22-2004 02:05 PM
Thanks. That did the trick. The final configuration (in order to keep lock & key working properly) reads:
!
aaa new-model
aaa authentication login default group tacacs+ local
aaa authentication login TestLK group tacacs+ local
aaa authorization exec default group tacacs+ local
aaa authorization network default group tacacs+
!
Much appreciated
08-22-2004 03:01 PM
I get similar results just using:
!
aaa new-model
aaa authentication login default group tacacs+ local
aaa authentication login TestLK group tacacs+ local
aaa authorization exec default group tacacs+ local
!
Anyway the problem is solved.
Cheers
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide