Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

how to solve if there are no username and password but in line console 0 the command is set to login local

I face a problem with cisco router while practicing. In line console 0 I set "login local" and then delete my username and password. Then I exit from router and it prompts me username and password. But I deleted the username and password and I think there is no way to access the router. Is this a cisco router's bug or something else ? I want to know how to get rid of this problem without erasing or resetting nvram. Thanks.

Everyone's tags (2)

Hello Coder,

Hello Coder,

Normally if you set up a AAA line, you may specify besides the Local authentication another AAA method,  or even enable password in case that the primary authentication fails,

aaa authentication login default local enable

 if you dont have user, you may try with the default credentials: cisco/cisco, or access it though console as a last option. if that does not work you will need to do a password recovery on this router, hope it works for you!

Please proceed to rate and mark as correct the helpful posts! keep me posted if something comes up!


David Castro,


You are completely locked out

You are completely locked out in accessing that and there's no workaround to that, you have to execute password recovery on the device

See link for guide: LINK

CreatePlease to create content