Cisco – Tacacs VRF authentication

aaaciscocisco-catalysttacacsvrf

We just got a new Supervisor7 with os 3.4.1. I'm trying to configure authentication with tacacs, and I can't understand how to make it work. This configuration works on our other switches, but it doesn't work on this 4500.

aaa new-model
username cisco privilege 15 secret 5 $1$qLGb$VQ7BdaJEpzGFqPeC979Uh1
tacacs-server host 10.4.25.8 key ourKeyIsSecret
aaa authentication login default group tacacs+ local
line vty 0 15
 login authen default

We can only login with the fallback password. The switch is not even trying to contact tacacs.

Can anyone help?

Best Answer

This configuration works on our other switches, but it doesn't work on this 4500.

You're using the on-board Sup7 FastEthernet port, so this is your problem:

aaa authentication login default group tacacs+ local
                                 ^^^^^^^^^^^^^

The Sup7 OOB port is in a VRF; therefore, you have to configure Tacacs+ in a VRF

aaa new-model
!
no tacacs-server host 10.4.25.8
!
aaa group server tacacs+ TacacsVrf
  server-private 10.4.25.8 key 7 ourKeyIsSecret
  ip vrf forwarding mgmtVrf
  ip tacacs source FastEthernet1
!
aaa authentication login default group TacacsVrf local