So while configuring a line console 0, if I user login local command I am locked out of the switch!
What is the difference between "login local" and "login" commands? I tried this in packet tracer and every time I use the login local it asks for username that I havent setup.
login is used on vty and console and means that the password that is user for its authentication, is configured under vty and console as well.
Login local, means that authentication uses locally configured credentials using the
username <joebloggs> privilege <15> secret 0 password command in global configuration mode
Hope this helps
Can you leave the privilege level out for the default value? Also, what does the zero define after secret?
Configuring Enhanced Security Password
Router(config)# username name secret 0 password
Router(config)# username name secret 5 encrypted-secret
Configures a username and encrypts a clear text password with MD5 encryption.
Configures a username and enters an MD5 encrypted text string which is stored as
I made a mistake while configuring router 4451 line console 0 by adding login local anwithout adding any command before for username ....pass command. And now I am locked out of router and its asking for username and password. What should I do?
Have you configured vty line? If so, we can access the router using telnet / ssh rather than Console.
After logging in, either we can create local usernames and password or we can replace login local with login based on requirement.