cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
564
Views
0
Helpful
4
Replies

router usernames and passwords

carl_townshend
Spotlight
Spotlight

Hi all

when creating usernames for my routers/switches etc, what will happen if instead of using the line vty 0 4 password command, I type from global config, username "" password ""

will this prompt me for a username and password? or do i need to configure aaa authentication local first ?

4 Replies 4

pciaccio
Level 4
Level 4

In order to use the local USERNAME command for local database then you need to add the LOGIN LOCAL to your VTY lines to use it. You can also enable AAA and set up Authentication to log you in locally as well...

Goutam Sanyal
Level 4
Level 4

Hi,

U can try the following:

conf t

!

line vty 0 4

password carl_townshend

transport input telnet ssh

transport output telnet ssh

!

!

aaa authentication login default local

aaa authorization exec default local

!

username [carl_townshend] privilege 15 secret [carl_townshend]

!

Thanks

Goutam

Pls rate if it helps!!!

what exactly is that achieving ? why have you put the password under the vty line ? if there is already a username configured ?

Hi carl_townshend

Can u clarify me why I'll not put the password under line vty? When Cisco IOS providing that with out any extra cost. :)

Pls correct me if i am wrong!!!

10x

Goutam

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco