09-05-2014 08:35 AM - edited 03-07-2019 08:39 PM
My switch is not asking for enable password
Here is my switch config:
line con 0
line vty 0 4
access-class 101 in
exec-timeout 5 0
transport preferred ssh
transport input ssh
transport output none
line vty 5 15
access-class 101 in
exec-timeout 5 0
transport preferred ssh
transport input ssh
transport output none
Thanks in advance for all your answers
Solved! Go to Solution.
09-08-2014 11:56 AM
If the issue is that you are wanting the switch to prompt you for a password when you attempt to enter privileged exec mode, you have to set one in your initial configuration.
To set an enable password, you have two options:
1. Switch>enable
Switch#config t
Switch(config)#enable password <password>
or
enable secret <password>
I would recommend you follow that with the " Switch(config)#service password-encryption" command. This will encrypt all of you plain-text passwords that you set.
Thanks,
Ray
09-05-2014 08:53 AM
If you want to authenticate to the local user accounts add this to line vty 0 4 and line vty 5 15:
login local
09-05-2014 09:09 AM
Thank you for your answer, what about if I'm using tacacs+ aaa model
09-05-2014 09:19 AM
You would configure AAA authentication login group:
aaa authentication login TACACS_AUTH group tacacs+ local
Then apply it to the vty lines:
line vty 0 15
login authentication TACACS_AUTH
09-05-2014 12:50 PM
Thank you again for your response, Could I use both under the vty lines?
line vty 0 15
login local
login authentication TACACS_AUTH
09-05-2014 02:46 PM
No. What I would do is within the AAA authentication configuration is add local after tacacs+. In the event that your device can no longer reach the TACACS server it will use local authentication.
09-08-2014 11:56 AM
If the issue is that you are wanting the switch to prompt you for a password when you attempt to enter privileged exec mode, you have to set one in your initial configuration.
To set an enable password, you have two options:
1. Switch>enable
Switch#config t
Switch(config)#enable password <password>
or
enable secret <password>
I would recommend you follow that with the " Switch(config)#service password-encryption" command. This will encrypt all of you plain-text passwords that you set.
Thanks,
Ray
09-10-2014 08:05 AM
It appears that you are attempting to set up ssh access. In case you have not already done this, you will additionally need to create at least one user for ssh by using this command:
"Switch(config)# username <user> secret <password>"
"secret" or "password" can be used, but "secret" will encrypt the password.
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