Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

authentication via console

I have the next configuration:

aaa new-model

!

!

aaa authentication login default group tacacs+ local

aaa authentication login no_tacacs local

aaa authentication enable default group tacacs+ enable

aaa authorization exec default group tacacs+ local

aaa authorization commands 15 default group tacacs+ local

aaa accounting commands 15 default start-stop group tacacs+

enable secret xxxxxxxxxxxxxxxxxxxxxxxx

username user password 7 yyyyyyyyyyyyyyyyyyyyyyyyyyyyy

line con 0

-----------------------------------------------

If i need to connect through console, the router requested username defined in server tacacs?

if I lose connection to the server tacacs, when i connect via console, the router requested username local "user"?

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: authentication via console

Maria

If the console is set for default authentication then this line in the config from your original post is the one that will operate:

aaa authentication login default group tacacs+ local

and what it will do is that it will first attempt to authenticate with the TACACS server (so it will prompt for user name and password, which should be the name and password as configured in TACACS) and if it has lost connection to the TACACS server then it will prompt for user name and password to authenticate the local user name from the config.

HTH

Rick

4 REPLIES
Hall of Fame Super Silver

Re: authentication via console

Maria

Your configuration includes an authentication named method list of no_tacacs. But you do not show us where (if anywhere) that method is associated with interfaces or lines. And your post shows line con 0 and suggests that there are no config parameters under that line. Is this really the case?

If we accept the posted config at face value then we would believe that when you initiate login at the console that it would attempt to authenticate with tacacs and if it could not communicate with tacacs that it would authenticate with a locally configured user name.

HTH

Rick

Re: authentication via console

Adding to Rick's,

1st you need to define which policy u are going to apply under Line consol 0.

this achieved by:

line con 0

login authentication default

or

login authentication (no_tacacs)

2nd u will need to define Tacacs server host and the Key to be used for encrypting the messages between the router and Tacacs server

HTH

Mohamed

New Member

Re: authentication via console

hi,

Yes in this conf i forget put this lines:

tacacs-server host 1.1.1.1

tacacs-server directed-request

tacacs-server key 7 xxxxxxxxxxxx

That conf was maked by before network administrator.

the method list no_tacacs is not referenced in the config.

I need authenticate in console by tacacs when i have conexion whith tacacs, when that is up, and authenticate with user local when tacacs is down.

With command:

line con 0

login authentication default

I can do this?

Hall of Fame Super Silver

Re: authentication via console

Maria

If the console is set for default authentication then this line in the config from your original post is the one that will operate:

aaa authentication login default group tacacs+ local

and what it will do is that it will first attempt to authenticate with the TACACS server (so it will prompt for user name and password, which should be the name and password as configured in TACACS) and if it has lost connection to the TACACS server then it will prompt for user name and password to authenticate the local user name from the config.

HTH

Rick

155
Views
8
Helpful
4
Replies