cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5229
Views
0
Helpful
1
Replies

TACACS+ and Local-login on Console Port

Ignacio Rios
Level 1
Level 1

Please forgive me  if I don't explain this as clearly as I'm trying to. 

I'm trying to setup local usernames with specific privilege levels that will ONLY work on the console port.  We currently have our ACS server setup and we have usernames there that give us level-15 privileges as soon as we login through SSH.  I have to get rid of the one local username/password we use one our switches when we are on-site working a closet and create user-specific local logins.  

Here is the config on the switch that I am testing:

aaa authentication login default group tacacs+

aaa authentication login console local

aaa authorization exec default group tacacs+

aaa authorization commands 15 default group tacacs+

aaa authorization network default local group tacacs+

username test privilege 0 password cisco

username test2 privilege 1 password cisco

username test3 privilege 15 password cisco

line con 0

login authentication console

line vty 0 4

transport input ssh

line vty 0 5

transport input ssh

**The problem I am running into at the moment is that the privilege levels aren't sticking.  When I enter the privilege level for "test2" which is 1, it automatically reverts to 0.  If I do a show run it will show user "test2" with privilege 0.  Currently in the above setup, if I enter "enable" all the test users get privilege level 15.  I don't want to have the console port authenticate to ACS server because sometimes if the switch gets discoed from the network, local login is a no-go. 

Bottom-line:

-Keep ACS authentication on Line VTY lines

-Add Local-login on Console port.  With users with only privilege-15 being able to enter Privilege EXEC Mode.

1 Reply 1

Hi,

Try these...

(Assuming that you have already configured usernames on Router, to be used as local username)

This will prompt for Username, whenever ACS is available; in case of failure, it will ask for local username.

aaa new-model

!

aaa authentication login default local

aaa authentication login group tacacs+ local

aaa authentication login no-login none

aaa authentication login console group tacacs+ local

aaa authentication username-prompt "Local Username: "

!

aaa session-id common

!

line vty 0 4

login authentication

!

line con 0

login authentication

!

aaa authorization config-commands

aaa authorization exec default group tacacs+ local if-authenticated

aaa accounting exec default start-stop group tacacs+

aaa accounting commands 15 default start-stop group tacacs+

aaa authorization commands 15 default group tacacs+ if-authenticated

HTH,

Smitesh

Review Cisco Networking for a $25 gift card